Dear Gonzalo
Thank you so much. You have done the great work. Actually your command
# echo -e 'rootpw\t\t' `slappasswd -s foo` >> /etc/openldap/slapd.conf

Solved the problem. I have understood that the password I generated
using slappasswd -s foo >>/etc/rootpass and then cat it to
/etc/openldap/slapd.conf did not work because it adds some extra
character , I realized now. 

Thanks again

Wish you all the best

Cheers
selim

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Gonzalo Servat
Sent: Thursday, 20 April 2006 2:05 PM
To: [email protected]
Subject: Re: [SLUG] Invalid credentials error code 49

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
--
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