Afternoon all,
I'm trying to get smtpauth working with ldap using the email address
stored in ldap ("mail") as the username, I thought the following should
work
--8<--
plain:
driver= plaintext
public_name = PLAIN
server_condition = ${if ldapauth \
{user="mail=${quote_ldap_dn:$2},o=mistral,c=uk" \
pass=${quote:$3} \
ldap://ldap.mistral.net/}{yes}{no}}
server_set_id=$2
--8<--
The following does work (using the username as the key)
--8<--
plain:
driver= plaintext
public_name = PLAIN
server_condition = ${if ldapauth \
{user="cn=${quote_ldap_dn:$2},o=mistral,c=uk" \
pass=${quote:$3} \
ldap://ldap.mistral.net/}{yes}{no}}
server_set_id=$2
--8<--
Anyone got any ideas?
--
Mark Lowes <hamster@???>