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/

-- 
## List details at http://www.exim.org/mailman/listinfo/exim-users 
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://www.exim.org/eximwiki/

Reply via email to