Re: [exim] LDAP and SMTP Authentication

Góra strony
Delete this message
Reply to this message
Autor: James Davis
Data:  
Dla: Jan-Piet Mens
CC: exim-users
Temat: Re: [exim] LDAP and SMTP Authentication
Jan-Piet Mens wrote:

> I do hope that is a typo ... ;-)


Yes it was :-) I meant username. Here's my customised version of your code.

ldap_plain:
   driver = plaintext
   public_name = PLAIN
   server_prompts = "LDAP Username:: : LDAP Password::"
   server_condition = \
        ${\
           lookup ldap { \
               user="${lookup ldapdn {
ldap:///dc=jolt,dc=co,dc=uk?dn?sub?(uid=${quote_ldap:$2})}}" \
               pass="$3" \


ldap://localhost/dc=jolt,dc=co,dc=uk?uid?sub?(uid=${quote_ldap:$2}) \
         }{yes}fail \
    }
   # value for $authenticated_id
   server_set_id = $2


What do I need for the server_prompts line though? I'm confused now
after reading the other message in the thread.

James

--
http://www.freecharity.org.uk/ - Free hosting for charities
http://jamesd.ukgeeks.co.uk/