On 4/20/06, Selim Jahangir <[EMAIL PROTECTED]> wrote:
>
> Hey
>
> I have changed the password by typing following, still having invalid
> credentials 49.
[..snip..]
> slappasswd -s foo >rootpass
>
> [EMAIL PROTECTED] ~]# vi rootpass
> [EMAIL PROTECTED] ~]# cat rootpass>>/etc/openldap/slapd.conf
> [EMAIL PROTECTED] ~]#

Selim,

That's not right. You put the root password on it's own line in
slapd.conf. Edit slapd.conf, remove the line which contains the
password on it's own, edit the rootpw line and paste the password
generated by slappasswd. Alternatively, if you really want to do it
from command line, remove the rootpw line altogether then save
slapd.conf, and type something like the following in:

# echo -e 'rootpw\t\t' `slappasswd -s foo` >> /etc/openldap/slapd.conf
&& service ldap restart

Cheers,
Gonzalo.
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

Reply via email to