Hi everyone,
I'm trying to auth using nss_ldap(1.265_4) and pam_ldap(1.8.5) against zimbra openldap. I'm using zcs 6.0.6 on FreeBSD 8.1RELEASE. ldap.conf is the same for pam_ldap, nss_ldap. pam_ldap throws this error:
Code:
pam_ldap: ldap_starttls_s: Can't contact LDAP server
nss_ldap throws this:
Code:
nss_ldap: failed to bind to LDAP server ldap://myhost.net: Invalid credentials
here is the config of ldap:
Code:
base dc=myhost,dc=net
host myhost.net
binddn uid=zmposix,cn=appaccts,cn=zimbra
bindpw mypw
rootbinddn uid=zmposixroot,cn=appaccts,cn=zimbra
uri ldap://myhost.com
bind_policy soft
ssl start_tls
tls_cacertdir /opt/zimbra/conf/ca
tls_checkpeer no
pam_password md5
nss_base_passwd ou=people,dc=dc=myhost,dc=net?one
nss_base_shadow ou=people,dc=dc=myhost,dc=net?one
nss_base_group ou=groups,dc=myhost,dc=net?one
nss_base_hosts ou=machines,dc=myhost,dc=net?one
the bindpw is set to the password that was provided by zmlocalconfig (and the root and ldap passwords are the same). I spent good two days trying to resolve these issues. samba seems to connect to the openldap server with no problems at all but is unable to auth users. relevant parts of the log are probably these:
Code:
ntlm_password_check: NO NT password stored for user ciny.
ntlm_password_check: Lanman passwords NOT PERMITTED for user ciny
check_ntlm_password: Authentication for user [ciny] -> [ciny] FAILED with erro NT_STATUS_WRONG_PASSWORD
error packet at smbd/sesssetup.c(122) cmd=115 (SMBsesssetupX) NT_STATUS_LOGON_FILURE
I'm getting desperate here if anyone has any suggestions I would be glad.
thanks
EDIT1:
when I try
Code:
ldapsearch -H ldap://myhost.net:389 -w ldaprootpass -D uid=zimbra,cn=admins,cn=zimbra -x 'objectclass=*'
everything works but when I try
Code:
ldapsearch -H ldap://172.24.1.15:389 -w myuserpass -D uid=ciny,ou=people,dc=myhost,dc=net -x 'objectclass=*'
I get
Code:
ldap_sasl_bind(SIMPLE): Can't contact LDAP server (-1)
am I missing something crucial?