[Exim] SMTP Auth from LDAP

Top Page
Delete this message
Reply to this message
Author: Mark Hynes
Date:  
To: exim-users
Subject: [Exim] SMTP Auth from LDAP
Hi,

I'm relatively new to Exim, so I've probably over looked something very basic.

I'm trying to get SMTP Auth working from an LDAP database. Testing it with
Outlook Express (v 5.50) the LDAP query is incomplete however.

From my config:

fixed_login:
driver = plaintext
public_name = LOGIN
server_prompts = "Username : Password"
server_condition = ${if eq{$2}{${lookup ldap {user="...." pass=.... ldap://hostname/o=....?userpassword?sub?(uid=$1)}}{1}{0}}
server_set_id = $1

However the '$1' parameter from the auth doesn't seem to get through to
the query:

250 HELP
SMTP<< AUTH LOGIN
SMTP>> 334 VXNlcm5hbWU=
SMTP>> 334 UGFzc3dvcmQ=

search_open: ldap "NULL"
search_find: file="NULL"
key="user="...." pass=.... ldap://hostname/o=....?userpassword?sub?(uid=)" partial=-1
LRU list:
internal_search_find: file="NULL"
type=ldap key="user="...." pass=.... ldap://hostname/o=....?userpassword?sub?(uid=)"
database lookup required for user="...." pass=.... ldap://hostname/o=....?userpassword?sub?(uid=)
LDAP parameters: user=.... pass=.... size=0 time=0
perform_ldap_search: ldap URL ="ldap://hostname/o=....?userpassword?sub?(uid=)" server=NULL port=0 sizelimit=0 timelimit=0
Opened connection to LDAP server hostname:389
Binding with user=.... password=....
Start search
search ended by ldap_result yielding 101
LDAP search: no results
lookup failed
fixed_login authenticator:
expanded string:
SMTP>> 535 Incorrect authentication data

LOG: 0 MAIN REJECT


I've searches through the list archive, and can't find any (obvious) mention
of what the problem may be - a number of people seem to be using very
similar configurations?

Many thanks,
Mark.

--
| Mark Hynes           mark.hynes@??? |
| Systems Developer   http://www.uk.easynet.net/ |
| Easynet Ltd   --   a part of Easynet Group plc |