Hi,
On 11/14/2012 06:21 PM, Csányi Pál wrote:
Hi,
I have Ubuntu 12.10 operating system.
I just installed slapd and want to use it as my e-mail AddressBook.
I'm following the tutorial:
http://linsec.ca/Using_OpenLDAP_as_an_Address_Book
When I'm trying to run the following command:
ldapadd -h localhost -D "cn=root,dc=mylan,dc=net" \
-W -x -f addr-skel.ldif
Enter LDAP Password:
and when I add here the slapd administrator password that I was enter
when I was installed slapd and was asked for, I get error message:
ldap_bind: Invalid credentials (49)
How can I solve this problem?
When you're absolutely sure about the correctness of the password you
provide, then you may want to look into the 'flavour' of ldapadd you're
using. It is my experience that there are a lot of
ldapsearch/ldapmodify/ldapadd's around and some of them require the use
of -W (capital W) to prompt for the password, some of them require the
use of -w - (lowercase w with dash) to prompt for the password and some
of them work perfect when you provide -D and leave out the -w/-W stuff
entirely. So try the same with:
ldapadd -h localhost -D "cn=root,dc=mylan,dc=net" \
-x -f addr-skel.ldif
or
ldapadd -h localhost -D "cn=root,dc=mylan,dc=net" \
-w - -x -f addr-skel.ldif
and see whether it still results in 'error 49'.
/rolf