Hello,
I have been trying to install ldap3.3 on a freebsd 2.2.2. machine.
I followed the instructions on the slapd homepage:
http://www.umich.edu/~dirsvcs/ldap/doc/guides/slapd/2.html
Here are the files I created:
mercury:/usr/local/etc# cat myslapd.conf
referral ldap://ldap.itd.umich.edu
database ldbm
suffix "o=Nokia, c=US"
directory /usr/tmp
rootdn "cn=Ray, o=Nokia, c=US"
rootpw secret
mercury:/usr/local/etc# cat myldif
dn: o=Nokia, c=US
o: Nokia
objectclass: organization
dn: cn=Ray, o=Nokia, c=US
cn: Ray
sn: Chin
objectclass: person
mercury:/usr/local/etc#
The conversion worked fine:
mercury:/usr/local/etc# ./ldif2ldbm -f ./myslapd.conf -i ./myldif
mercury:/usr/local/etc#
mercury:/usr/local/etc# cd /usr/tmp
mercury:/usr/tmp# ls
NEXTID dn2id.ndbm.db id2entry.ndbm.db
dn.ndbm.db id2children.ndbm.db objectclass.ndbm.db
mercury:/usr/tmp#
After starting slapd:
mercury:/usr/local/etc# ./slapd -f ./myslapd.conf
mercury:/usr/local/etc#
This is the result of an ldapsearch on that database:
mercury:/usr/local/etc# ldapsearch -h 127.0.0.1 'objectclass=*'
ldap_search: No such object
ldap_search: matched: c=US
mercury:/usr/local/etc#
And if I try to use ud, this is what I get:
mercury:/usr/local/etc# ud -s localhost -f ./myslapd.conf
X.500 UserDirectory 3.3 (Tue Mar 3 12:14:04 PST 1998)
?? -> referral ldap://ldap.itd.umich.edu
?? -> database ldbm
?? -> suffix "o=Nokia, c=US"
?? -> directory /usr/tmp
?? -> rootdn "cn=Ray, o=Nokia, c=US"
?? -> rootpw secret
Enter a command. If you need help, type 'h' or '?' and hit RETURN.
* status
Current server is localhost
Search base is Your Organization Name, United States of America
Group base is
Bound as Nobody
Verbose mode is enabled
Aliases are being dereferenced
*
I am not sure what I am doing wrong......I am running freebsd 2.2.2 and
compiled ldap3.3 using the source. If anyone can shed any light onto why
I am having these problems I would greatly appreciate it.
merc