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

RE: passwd transformation ##!



slapd has not modified the password in any way, it is merely the ldapsearch
command that displays it in base64 encoding because the userpassword
attribute is a binary attribute, not printable text. You can see that the
value is unchanged:

% echo "e2NyeXB0fXBHY0hyd241Qk9xUjY=" | openssl base64 -d
{crypt}pGcHrwn5BOqR6

If you are having authentication problems, the trouble is somewhere else.

  -- Howard Chu
  Chief Architect, Symas Corp.       Director, Highland Sun
  http://www.symas.com               http://highlandsun.com/hyc
  Symas: Premier OpenSource Development and Support

> -----Original Message-----
> From: owner-openldap-software@OpenLDAP.org
> [mailto:owner-openldap-software@OpenLDAP.org]On Behalf Of briner

> hi,
>
> I get the following problem:
> To be able to log in as a user, the system is going to ask the shadow
> informations.
>
> I've finally found that when I add an user entry to the
> ldapserver, the
> ldapserver transform the passwd!
>
> So when the system compare the encrypted password, it see them as
> different and don't ly user to log in...
>
> here is my example:
>
> > ldapadd -x -h obslin9 -D 'cn=manager,dc=test,dc=com' -w foo
> dn: uid=pipo,ou=People,dc=test,dc=com
> uid: pipo
> cn: pipo Cedric
> objectClass: account
> objectClass: posixAccount
> objectClass: shadowAccount
> objectClass: top
> userPassword: {crypt}pGcHrwn5BOqR6             <------ here
> loginShell: /bin/tcsh
> uidNumber: 4799
> gidNumber: 4700
> homeDirectory: /home/system/pipo
> gecos: pipo Cedric
>
> adding new entry "uid=pipo,ou=People,dc=obs,dc=unige,dc=ch"
>
> $ ldapsearch -x -L uid=pipo
> dn: uid=pipo,ou=People,dc=obs,dc=unige,dc=ch
> uid: pipo
> cn: pipo Cedric
> objectClass: account
> objectClass: posixAccount
> objectClass: shadowAccount
> objectClass: top
> userPassword:: e2NyeXB0fXBHY0hyd241Qk9xUjY=     <------ here
> loginShell: /bin/tcsh
> uidNumber: 4799
> gidNumber: 4700
> homeDirectory: /home/system/pipo
> gecos: pipo Cedric
>
> So How can I ask the slapd to not convert the shadow information ??
>
> thanks in advance
>
> briner 2002-10-24
>
>
>
>