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

Re: ldappasswd use for admin



Florian Götz wrote:
Hi Gustavo,

another solution is to use slappasswd to generate a new password and copy this
into the slapd.conf.
There must be a section where the database is defined. In this section there´s
the rootdn and rootpw part. Replace the old rootpw-string with the one you
just generated and you´re done.

It's a bit difficult to understand his question, but I think he was actually asking how to use the ldappasswd command such that an admin can change the password of some other user.

And the answer of course is in the ldappasswd(1) manpage.

ldappasswd -D cn=admin,dc=domain,dc=com -W -S "cn=some user,dc=domain,dc=com"

And as a side note, my original intention in creating this mailing list was for discussing deep technical questions, not trivial stuff whose answers are in the current manpages. Questions like this still belong on the -software list.

On Monday 29 June 2009 03:07:58 Gustavo Mendes de Carvalho wrote:
Hi there,

Does anybody know which parameters to use in ldappasswd command when admin
user (cn=admin,dc=domain,dc=com) has to reset user's password ?

The situation is: LDAP user forgot his/her password and LDAP Admin has to
reset it, allowing his/her to login and then to change his/her password.

Thanks in advance

--
  -- Howard Chu
  CTO, Symas Corp.           http://www.symas.com
  Director, Highland Sun     http://highlandsun.com/hyc/
  Chief Architect, OpenLDAP  http://www.openldap.org/project/