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

RE : a small problem.



Hi,
 
> ldapadd -h ldap://0.0.0.0:399 -f /etc/openldap/slapd-2.conf -v -x -D
> "cn=Manager,o=corp.guers.com" -W < /root/DIT.ldif
> ldap_init( ldap://0.0.0.0:399, 0 )

Aren't you mixing the slapadd command with the ldapadd one.

man ldapadd:
       -f file
              Read the entry modification information from  file  instead of
              from standard input.
Example:  something like "ldapadd -h ldap://127.0.0.1:399 -v -x -D
"cn=Manager,o=corp.guers.com" -W -f /root/DIT.ldif"

man slapdd:
       -f slapd.conf
              specify an alternative slapd.conf(5) file.
Example: something like "slapadd  -f /etc/openldap/slapd-2.conf -l /
root/DIT.ldif"

Hope this helps,
Thibault