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

Re: setting up admin password on openldap




On Tue, 30 Oct 2007, Naufal Sheikh wrote:

> Hi Piotr,
> 
> Here is my ldif file.
> 
> dn: cn=nsadmin
> changetype: modify
> userpassword: {SHA}R0f182La8UTJewHKUWIr2ltHPXc=
>  and the command I used is:
> 
> [root@syru156 bin]# ./ldapmodify -x -v -f /main/backup/nsadmin.ldif
> ldap_initialize( <DEFAULT> )
> replace userpassword:
>         {SHA}R0f182La8UTJewHKUWIr2ltHPXc=
> modifying entry "cn=nsadmin"
> modify complete
> ldap_modify: Strong(er) authentication required (8)
>         additional info: modifications require authentication
> 
> and I cannot still connect bind to ldap through credentials. It says invalid
> credentials when I try to connect it through ldap browser.
> 
> 
> Regards
> 

instead, try:

cat modify-pass.ldif | ldapmodify -vcxWh localhost -D "cn=admin,dc=foo"

and type-in password you've put into rootpw in slapd.conf,
when asked.

You should really look into ldapmodify manpage, and
admin guide :)

Regards,
Piotr