List Info

Thread: Problems authenticanting with ldap




Problems authenticanting with ldap
country flaguser name
Portugal
2007-03-02 05:40:49
Hi,

I'm having troubles authenticating in courier-imap with or
without SSL.
Always tells me wrong credentials

I send you here my stuff in case you can help me.

Any help would be appreciated.

Warm Regards,
Mário Gamito
----------------------------------------------------
[rootemail openldap]# telnet email.telbit.pt <http://email.telbit.pt>
 143
Trying 192.168.30.240...
Connected to email.telbit.pt <http://email.telbit.pt>
 ( 192.168.30.240
<http://192.168.30.240>).
Escape character is '^]'.
* OK [CAPABILITY IMAP4rev1 UIDPLUS CHILDREN NAMESPACE
THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE ACL
ACL2=UNION
STARTTLS] Courier-IMAP ready. Copyright 1998-2005 Double
Precision,
Inc.  See COPYING for distribution information.
1 login mgamito belfast
1 NO Login failed.
1 logout
* BYE Courier-IMAP server shutting down
1 OK LOGOUT completed
------------------------------------------------------------
--------------------------- 



----------------------------------------------------------
[rootemail authlib]# tail -f /var/log/maillog
Mar  2 09:28:26 email imapd: Connection, ip=[
192.168.30.198
<http://192.168.30.198>]
Mar  2 09:28:29 email authdaemond: received auth request,
service=imap,
authtype=login
Mar  2 09:28:29 email authdaemond: authldap: trying this
module
Mar  2 09:28:29 email authdaemond: selected ldap protocol
version 3
Mar  2 09:28:29 email authdaemond: binding to LDAP server as
DN
'cn=admin,dc=telbit,dc=pt', password 'n3xus6'
Mar  2 09:28:29 email authdaemond: using search filter:
(uid=mgamitoemail.telbit.pt <mailto:mgamitoemail.telbit.pt>)
Mar  2 09:28:29 email authdaemond: number of entries
returned: 0 (but we
need exactly 1)
Mar  2 09:28:29 email authdaemond: authldap: REJECT - try
next module
Mar  2 09:28:29 email authdaemond: FAIL, all modules
rejected
Mar  2 09:28:29 email imapd: LOGIN FAILED, user=mgamito,
ip=[
192.168.30.198 <http://192.168.30.198>]
--------------------------------------------------------

ldif:
----------------------------------------------------------
dn: uid=mgamito,ou=users,ou=accounts,dc=telbit,dc=pt
objectClass: top
objectClass: person
objectClass: inetOrgPerson
objectClass: qmailUser
o: Telbit
uid: mgamito
mailMessageStore: /var/qmail/maildirs/mgamito
telbit.pt <http://telbit.pt>
mailAlternateAddress: mgamitomail.telbit.pt
<mailto:mgamitomail.telbit.pt>
mailAlternateAddress: mgamitometropolis.telbit.pt
<mailto:mgamitometropolis.telbit.pt>
mailQuotaSize: 1048576
sn: Gamito
cn: Mario
mail: mgamitoemail.telbit.pt <mailto:mgamitoemail.telbit.pt>
userPassword: 8ZhajFEFWYD3mQjH9MKqnQ==
------------------------------------------------------------
---------------------- 




------------------------------------------------------------
-------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the
chance to share your
opinions on IT & business topics through brief
surveys-and earn cash
http://www.techsay.com/default.
php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Courier-imap mailing list
Courier-imaplists.sourceforge.net
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-im
ap

  
  
Re: Problems authenticanting with ldap
country flaguser name
United Kingdom
2007-03-02 06:27:16
Le vendredi 02 mars 2007, Mário Gamito a écrit :
> Hi,
> 
> I'm having troubles authenticating in courier-imap with
or without SSL.
> Always tells me wrong credentials
> 
> I send you here my stuff in case you can help me.
> 
> Any help would be appreciated.
> 
[...]

> Mar  2 09:28:29 email authdaemond: using search
filter:
> (uid=mgamitoemail.telbit.pt <mailto:mgamitoemail.telbit.pt>)
> Mar  2 09:28:29 email authdaemond: number of entries
returned: 0 (but we
> need exactly 1)

[...]
> ldif:
>
----------------------------------------------------------
> dn: uid=mgamito,ou=users,ou=accounts,dc=telbit,dc=pt

The module looks up the wrong uid: it tries to find the
email address whereas 
the LDAP entry only contains the left part of it.

Looks like your problem is with your authdaemond
configuration.

-- 
Francis Galiegue, fgone2team.com
12bis rue de la Pierre Levée, 75011 PARIS
+33143381980, +33683877875

------------------------------------------------------------
-------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the
chance to share your
opinions on IT & business topics through brief
surveys-and earn cash
http://www.techsay.com/default.
php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Courier-imap mailing list
Courier-imaplists.sourceforge.net
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-im
ap

Re: Problems authenticanting with ldap
country flaguser name
United States
2007-03-02 06:01:12
Mário Gamito writes:

> Hi,
> 
> I'm having troubles authenticating in courier-imap with
or without SSL.
> Always tells me wrong credentials
> 
> I send you here my stuff in case you can help me.
> 
> Any help would be appreciated.
> 
> Warm Regards,
> Mário Gamito

> Mar  2 09:28:29 email authdaemond: using search
filter:
> (uid=mgamitoemail.telbit.pt <mailto:mgamitoemail.telbit.pt>)

Your search key is (uid=mgamitoemail.telbit.pt)

> uid: mgamito

Which, obviously, does not match your LDIF record.

> LDAP_DOMAIN             email.telbit.pt

Remove this setting from authldaprc.



------------------------------------------------------------
-------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the
chance to share your
opinions on IT & business topics through brief
surveys-and earn cash
http://www.techsay.com/default.
php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Courier-imap mailing list
Courier-imaplists.sourceforge.net
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-im
ap

[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )