[tpop3d-discuss] ldap auth problems
jh
jari.huuskonen at peecee.com
Sun, 27 Apr 2003 09:39:09 +0300
This is a multi-part message in MIME format.
------=_NextPart_000_001B_01C30CA0.DA7EF580
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Hello all.
>> How do your users log in will depend on how you search. Can you
>> give me an example of how the users log in?
Login process
I'm trying to get users authenticated with only (uid=3Dusername)
nothing else, regardless anything else, not for examble john@domain.com.
Only (uid=3D*) is given when users login into mailserver.
Ldap is working because i authenticate exim users with ldap and
it works.=20
>> Can you manually do a search with this?
Ok, here is my ldapsearch result, manual search works fine.
ldapsearch -b ou=3Dusers,dc=3Ddomain,dc=3Dcom "(uid=3Djohn)"
search works with this too, of course.
ldapsearch -b dc=3Ddomain,dc=3Dcom "(uid=3Djohn)"
search result.
# extended LDIF
#
# LDAPv3
# base <ou=3Dusers,dc=3Ddomain,dc=3Dcom> with scope sub
# filter: (uid=3Djohn)
# requesting: ALL
#
# john, users, domain.com
dn: uid=3Djohn,ou=3Dusers,dc=3Ddomain,dc=3Dcom
uid: john
cn: john
objectClass: InetOrgPerson
objectClass: posixAccount
objectClass: top
loginShell: /bin/false
uidNumber: 502
gidNumber: 502
homeDirectory: /home/Domain/John
sn: Doe
mail: john@domain.com
userPassword:: 12345
# search result
search: 2
result: 0 Success
# numResponses: 2
# numEntries: 1
~
------=_NextPart_000_001B_01C30CA0.DA7EF580
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2800.1141" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff><FONT face=3DArial size=3D2>
<DIV>Hello all.</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>>> How do your users log in will depend on how you =
search. Can=20
you<BR>>> give me an example of how the users log in?<BR></DIV>
<DIV>Login process</DIV>
<DIV> </DIV>
<DIV>I'm trying to get users authenticated with only =
(uid=3Dusername)</DIV>
<DIV>nothing else, regardless anything else, not for examble <A=20
href=3D"mailto:john@domain.com">john@domain.com</A>.</DIV>
<DIV>Only (uid=3D*) is given when users login into =
mailserver.</DIV>
<DIV> </DIV>
<DIV>Ldap is working because i authenticate exim users with ldap =
and</DIV>
<DIV>it works. </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>>> Can you manually do a search with this?</DIV>
<DIV> </DIV>
<DIV>
<DIV>Ok, here is my ldapsearch result, manual search works fine.</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>ldapsearch -b ou=3Dusers,dc=3Ddomain,dc=3Dcom =
"(uid=3Djohn)"</DIV></DIV>
<DIV> </DIV>
<DIV>search works with this too, of course.</DIV>
<DIV> </DIV>
<DIV>
<DIV>ldapsearch -b dc=3Ddomain,dc=3Dcom "(uid=3Djohn)"</DIV></DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>search result.</DIV>
<DIV><BR># extended LDIF<BR>#<BR># LDAPv3<BR># base=20
<ou=3Dusers,dc=3Ddomain,dc=3Dcom> with scope sub<BR># filter: =
(uid=3Djohn)<BR>#=20
requesting: ALL<BR>#</DIV>
<DIV> </DIV>
<DIV># john, users, domain.com<BR>dn: =
uid=3Djohn,ou=3Dusers,dc=3Ddomain,dc=3Dcom<BR>uid:=20
john<BR>cn: john<BR>objectClass: InetOrgPerson<BR>objectClass:=20
posixAccount<BR>objectClass: top<BR>loginShell: /bin/false<BR>uidNumber: =
502<BR>gidNumber: 502<BR>homeDirectory: /home/Domain/John<BR>sn: =
Doe<BR>mail: <A=20
href=3D"mailto:john@domain.com">john@domain.com</A><BR>userPassword:: =
12345</DIV>
<DIV> </DIV>
<DIV># search result<BR>search: 2<BR>result: 0 Success</DIV>
<DIV> </DIV>
<DIV># numResponses: 2<BR># numEntries: =
1<BR>~</FONT></DIV></BODY></HTML>
------=_NextPart_000_001B_01C30CA0.DA7EF580--