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

Testing new installation



 
I have just compiled the server and successfully completed the test suite. When tried to test the configuration using the attached coinfig, here is what I received:
 
[root@linuxdev1 openldap]# ldapadd -v -D "cn=Manager, o=foo.com" -W < foo.ldif
Enter LDAP Password:
add dc:
        <foo>
add o:
        <foo.com>
add objectclass:
        organization
        dcObject
adding new entry "dc=<foo>, dc=<com>"
ldap_add: No such object
 
ldif_record() = 32
[root@linuxdev1 openldap]#
 
Setting the debug level up, I discovered that this seems to be a failed (bad credentials) authentication.
After tweaking the slapd rootdn, here's what I get
 
[root@linuxdev1 openldap]# ldapadd -v -D "cn=Manager, dc=foo, dc=com" -W < initialentry.ldif
Enter LDAP Password:
ldapadd: no attributes to change or add (entry="(null)")
ldif_record() = 89
 
.... then I search.......

[root@linuxdev1 openldap]# ldapsearch -L -b "dc=foo, dc=com" -W "(objectclass=*)"
Enter LDAP Password:
version: 1
 
#
# filter: (objectclass=*)
# requesting: ALL
#
 
# search result
No such object (32)
 
# numResponses: 1
[root@linuxdev1 openldap]#
 
 
Any suggestions or pointers to docs that would help? I'm certain its operator error. I'm going to dig into the docs now......
 
Thanks,
 
David Dabbs
 
 
 
#slapd.conf
#
#######################################################################
# ldbm database definitions
#######################################################################
 
database        ldbm
suffix         "dc=foo, dc=com"
#suffix          "o=foo.com"
rootdn          "cn=Manager, dc=foo, dc=com"
#rootdn         "cn=Manager, o=My Organization Name, c=US"
# cleartext passwords, especially for the rootdn, should
# be avoid.  See slappasswd(8) and slapd.conf(5) for details.
rootpw          secret
# database directory
# this directory MUST exist prior to running slapd AND
# should only be accessable by the slapd/tools. Mode 700 recommended.
directory       /usr/local/var/openldap-ldbm
 
 
#foo.ldif
#------------------------------------------
dn: dc=<foo>, dc=<com>
dc: <foo>
o: <foo.com>
objectclass: organization
objectclass: dcObject
 
dn: cn=Manager, dc=foo, dc=com
cn: Manager
sn: Manager
objectclass: person