Re: [Exim] LDAP Lookup

Top Page
Delete this message
Reply to this message
Author: Stephen Gran
Date:  
To: exim-users
Subject: Re: [Exim] LDAP Lookup
On Thu, Jan 15, 2004 at 09:27:14AM +0100, Thomas Hager said:
> --
> On Wed, 2004-01-14 at 20:27, Stephen Gran wrote:
> > Hello all,
> hi,
>
> [...]
>
> > Can someone point me to a better $lookup{...} that will return 5xx for a
> > failed lookup? I haven't seen one yet, so I'm sorry if I've missed the
> > obvious.
> the ldap lookup is not suitable for authenticating users, use the
> ldapauth condition:
> http://www.exim.org/exim-html-4.30/doc/html/spec_11.html#IX888
>
> hth,
> tom.


Yes, it did. Thanks, Tom. Just for others looking, this is what I'm
now using:

login_ldap_server:
driver = plaintext
public_name= LOGIN
server_prompts = "Username:: : Password::"
server_condition="${if ldapauth {user=\"uid=${quote_ldap_dn:$1},ou=People,dc=mail,dc=lobefin,dc=net\" pass=${quote:$2} lda
p://localhost/}{yes}{no}}"
server_set_id=$1

--
--------------------------------------------------------------------------
|  Stephen Gran                  | Our swords shall play the orators for   |
|  steve@???             | us.   -- Christopher Marlowe            |
|  http://www.lobefin.net/~steve |                                         |

--------------------------------------------------------------------------