contents of file.ldif
(le file.ldif)
dn: dc=ircoms,dc=com
changetype: add
objectclass: top
objectclass: dcObject
objectclass: organization
o: ircoms
dc: ircoms
dn: ou=People,dc=ircoms,dc=com
changetype: add
objectclass: top
objectclass: organizationalUnit
ou: People
dn: ou=Group,dc=ircoms,dc=com
changetype: add
objectclass: top
objectclass: organizationalUnit
ou: Group
dn: ou=addressbook,dc=ircoms,dc=com
changetype: add
objectClass: top
objectClass: organizationalUnit
ou: addressbook
I followed some advises on this site, but didn't get some interesting things:
$ usr/sbin/slapd -f /etc/openldap/slapd.conf
$ ldapadd -x -D 'cn=Manager,dc=ircoms,dc=com' -f file.ldif -W
Enter LDAP Password:
ldap_sasl_bind(SIMPLE): Can't contact LDAP server (-1)
[root@bob openldap]# /etc/init.d/slapd start
Starting slapd (via systemctl): [ OK ]
$ ldapadd -x -D 'cn=Manager,dc=ircoms,dc=com' -f file.ldif -W
Enter LDAP Password:
ldap_bind: Invalid credentials (49)
content of /etc/openldap
cacerts file.ldif ldap.conf schema slapd.conf slapd.d.bak
containts of /var/lib/ldap
DB_CONFIG
I still get:
Enter LDAP Password:
ldap_bind: Invalid credentials (49)
cn=Manager,dc=ircoms,dc=comdefined in your slapd.conf asrootdn? – Tim Jan 20 '12 at 15:33