[Date Prev][Date Next] [Chronological] [Thread] [Top]

auth error with lanman password


I have installed OpenLDAP 2.2.19 on gentoo with samba USE flag (needed
for lanman password support). But i cannot authenticate user with a
lanman password. 

 I managed it as following: 

I have generated a password with smbpasswd command. 
With password set to "toto" i have this line
in /etc/samba/private/smbpasswd : 

root:0:BAC14D04669EE1D1AAD3B435B51404EE:FBBF55D0EF0E34D39593F55C5F2CA5F2:[U ]:LCT-41DEC29B: 

I use this ldif file : 
dn: uid=myuser,dc=example,dc=com 
userPassword: {lanman}BAC14D04669EE1D1AAD3B435B51404EE 

But when i test that with ldapsearch: 
ldapsearch - D "uid=myuser,dc=example,dc=com" -w toto -v -x 

I obtain this message :
ldap_initialize( <DEFAULT> )
ldap_bind: Invalid credentials (49)

When i see user Password in LDAP, i have this entry: 
userPassword: e2xhbm1hbn00NjM1OUFGQUQwRUFBMTNBRkYxNzM2NUZBRjFGRkU4OQ== 

I thought also that password would not be encrypted in OpenLDAP with
parameter "password-hash {CLEARTEXT}" specified in slapd.conf. 

I don't know how to investigate this problem. How can i see (if even
possible)which password mech is supported in a running OpenLDAP
server ? 

If someone has a idea. 

Thanks by advance,