Re: [exim] LDAP and SMTP Authentication

Etusivu
Poista viesti
Vastaa
Lähettäjä: James Davis
Päiväys:  
Vastaanottaja: Jan-Piet Mens
Kopio: exim-users
Aihe: 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/