Whoops, forgot to reply-to-all, resent to list..
abhilash s wrote:
Here is the actual problem . The username is '[EMAIL PROTECTED]' not
'abhilash' . Before when I tried thunderbird and using the PLAIN
authentication type it shows the same problem of finding user name
(abhilash) . The PLAIN authentication discards the result from @ sign
and shows only 'uid=abhilash'
But when I used Login Authentication type it shows '[EMAIL PROTECTED]'
After a quick read through lib/Qpsmtpd/Auth.pm, I can't see any reason
why PLAIN would strip the domain portion but LOGIN wouldn't.
You're using your email address as the uid? I wouldn't do that
personally. Is that something pre-existing, or is this something new
you're implementing?
Also, if you look at the auth_ldap_bind plugin, it discards anything
after the first @ sign.
So it looks like (at the very least) that auth_ldap_bind would need to
be modified to fit with your setup.
or
ldapsearch -x -D cn=admin,dc=achu,dc=com -W -s sub -b dc=achu,dc=com
'uid=abhilash'
I tried the above command I got the following result :
# extended LDIF
#
# LDAPv3
# base <dc=achu,dc=com> with scope sub
# filter: uid=abhilash
# requesting: ALL
#
It would really help if you could do a dump of the LDAP entry you're
trying to auth with. From what you've said so far, it sounds like the
full email address is the uid you're using, which seems to be
incompatible with the auth_ldap_bind plugin (but that can be fixed.)
Elliot