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

Help, please!



I've just installed openldap-1.0.2-3.rpm in my Redhat 5.2 machine.

I've changed the /etc/ldap/slapd.conf file and left it like this:

------------------------------------------------------------------------
include         /etc/ldap/slapd.at.conf
include         /etc/ldap/slapd.oc.conf
schemacheck     off
referral        ldap://ldap.itd.umich.edu

#######################################################################
# ldbm database definitions
#######################################################################

database        ldbm
suffix          "o=ZUNIBAL, c=ES"
directory       /usr/tmp
rootdn          "cn=root, o=ZUNIBAL, c=ES"
rootpw          secret
--------------------------------------------------------------------------

I've also wrote a file called /tmp/aliases like this:

--------------------------------------------------------------------------
dn: "o=ZUNIBAL, c=ES"
o: Zunibal S.L
objectclass: organization

dn: cn=Alex Rojo, o=ZUNIBAL, c=ES
cn: Alex Rojo
sn: Rojo
mail: alex@zunibal.com
objectclass: person

dn: cn=Ivan Eyara, o=ZUNIBAL, c=ES
cn: Ivan Eyara
sn: Eyara
mail: ivan@zunibal.com
objectclass: person
--------------------------------------------------------------------------

And i've executed following command:

ldif2ldbm -i /tmp/aliases -f /etc/ldap/slapd.conf

After this I've got these files in the /usr/tmp directory:

--------------------------------------------------------------------------
/usr/tmp/NEXTID
/usr/tmp/dn.gdbm
/usr/tmp/dn2id.gdbm
/usr/tmp/id2children.gdbm
/usr/tmp/id2entry.gdbm
/usr/tmp/objectclass.gdbm
--------------------------------------------------------------------------

After doing everything, i've started slapd with this command:
/usr/libexec/slapd -d 256

I've tried to do a search like this:
ldapsearch -b "o=ZUNIBAL, c=ES" "cn=*" -s one
and also
ldapsearch -b "o=ZUNIBAL, c=ES" "cn=*" 

With both of them i've got the same message:
ldap_search: No such object

Slapd debug message were these:
-------------------------------------------------------------------
conn=0 fd=8 connection from localhost (127.0.0.1) accepted.
conn=0 op=0 BIND dn="" method=128
conn=0 op=0 RESULT err=0 tag=97 nentries=0
conn=0 op=1 SRCH base="o=ZUNIBAL,c=ES" scope=1 filter="(cn=*)"
conn=0 op=1 RESULT err=32 tag=101 nentries=0
conn=0 op=2 UNBIND
conn=0 op=2 fd=8 closed errno=0
conn=1 fd=8 connection from localhost (127.0.0.1) accepted.
conn=1 op=0 BIND dn="" method=128
conn=1 op=0 RESULT err=0 tag=97 nentries=0
conn=1 op=1 SRCH base="o=ZUNIBAL,c=ES" scope=2 filter="(cn=*)"
conn=1 op=1 RESULT err=32 tag=101 nentries=0
conn=1 op=2 UNBIND
conn=1 op=2 fd=8 closed errno=0
slapd got shutdown signal
slapd got shutdown signal
slapd shutting down - waiting for 0 threads to terminate
slapd stopping
--------------------------------------------------------------------

Can anybody tell me what is wrong with this?
Forgive me for writting such a long message but I thought it could be
usefull to let you help me.


TIA