Hello everybody,

I have a trouble here to make my authtest access my LDAP (Active Directory).
In authldaprc I have this:

LDAP_URI ldap://192.168.100.30
LDAP_SERVER 192.168.100.30
LDAP_PORT 389
LDAP_PROTOCOL_VERSION 3
LDAP_BASEDN ou=2396,dc=jab,dc=br
LDAP_BINDDN cn=linuxbind,ou=Login_Anonimous,dc=jab,dc=br
LDAP_BINDPW password
LDAP_AUTHBIND 1
LDAP_MAILROOT
LDAP_MAIL mail
LDAP_HOMEDIR msSFUHomeDirectory
LDAP_MAILDIR msSFUHomeDirectory
LDAP_GLOB_UID 1003
LDAP_GLOB_GID 1003
LDAP_TLS 0
LDAP_CLEARPW userPassword
LDAP_MAILDIRQUOTA mobile

Using authtest: 

# authtest [EMAIL PROTECTED]
Authentication succeeded.

     Authenticated: [EMAIL PROTECTED]  (uid 1003, gid 1003)
    Home Directory: /home/jab/Maildir/
           Maildir: /home/jab/Maildir/
             Quota: 100000000S
Encrypted Password: (none)
Cleartext Password: (none)
           Options: (none)

In syslog:

Jan 17 10:45:39 mare authdaemond: received userid lookup request: [EMAIL 
PROTECTED]
Jan 17 10:45:39 mare authdaemond: authldap: trying this module
Jan 17 10:45:39 mare authdaemond: selected ldap protocol version 3
Jan 17 10:45:39 mare authdaemond: binding to LDAP server as DN
'cn=linuxbind,ou=Login_Anonimous,dc=jab,dc=br', password 'password'
Jan 17 10:45:39 mare authdaemond: using search filter: ([EMAIL PROTECTED])
Jan 17 10:45:39 mare authdaemond: one entry returned, DN:
CN=jab,OU=2396,DC=jab,DC=br
Jan 17 10:45:39 mare authdaemond: raw ldap entry returned:
Jan 17 10:45:39 mare authdaemond: | cn: jab
Jan 17 10:45:39 mare authdaemond: | mail: [EMAIL PROTECTED]
Jan 17 10:45:39 mare authdaemond: | mobile: 100000000S
Jan 17 10:45:39 mare authdaemond: | msSFUHomeDirectory: /home/jab/Maildir/
Jan 17 10:45:39 mare authdaemond: authldaplib: sysusername=<null>,
sysuserid=1003, sysgroupid=1003, homedir=/home/jab/Maildir/,
[EMAIL PROTECTED], fullname=jab, maildir=/home/jab/Maildir/,
quota=100000000S, options=<null>
Jan 17 10:45:39 mare authdaemond: authldaplib: clearpasswd=<null>,
passwd=<null>
Jan 17 10:45:39 mare authdaemond: Authenticated: sysusername=<null>,
sysuserid=1003, sysgroupid=1003, homedir=/home/jab/Maildir/,
[EMAIL PROTECTED], fullname=jab, maildir=/home/jab/Maildir/,
quota=100000000S, options=<null>
Jan 17 10:45:39 mare authdaemond: Authenticated: clearpasswd=<null>,
passwd=<null>


In this example is working, but I don't have just one "OU" (Organization
Unit) in my LDAP Directory, I have about 60. In authldaprc I HAD to put 

LDAP_BASEDN ou=2396,dc=jab,dc=br

Without ou=2396(my OU) it doesn't work. Follow:

authtest [EMAIL PROTECTED]
Authentication FAILED: Input/output error

Jan 17 10:56:52 mare authdaemond: received userid lookup request: [EMAIL 
PROTECTED]
Jan 17 10:56:52 mare authdaemond: authldap: trying this module
Jan 17 10:56:52 mare authdaemond: selected ldap protocol version 3
Jan 17 10:56:52 mare authdaemond: binding to LDAP server as DN
'cn=linuxbind,ou=Login_Anonimous,dc=jab,dc=br', password 'password'
Jan 17 10:56:52 mare authdaemond: using search filter: ([EMAIL PROTECTED])
Jan 17 10:56:52 mare authdaemond: ldap_search_st() failed
Jan 17 10:56:52 mare authdaemond: selected ldap protocol version 3
Jan 17 10:56:52 mare authdaemond: binding to LDAP server as DN
'cn=linuxbind,ou=Login_Anonimous,dc=jab,dc=br', password 'linuxbind'
Jan 17 10:56:52 mare authdaemond: using search filter: ([EMAIL PROTECTED])
Jan 17 10:56:57 mare authdaemond: ldap_search_st() failed
Jan 17 10:56:57 mare authdaemond: authldap: TEMPFAIL - no more modules will
be tried

My ldapsearch works without OU, my pam_ldap works, but authlib doesn't.
My system is Debian Sarge, authlib is courier-authlib-0.59.1.tar.bz2.

I intent to use it with Maildrop and Postfix.

Please guys, I need some help!!! :)

Thanks for any help!!!!

Jeronimo


-------------------------------------------------------------------------
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-users mailing list
[email protected]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to