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

result: 32 No such object



Hello,

I'm trying  to make openldap work  on a SuSE 8.2.   I've initialized a
database from  a ldif file, and  I've the server running,  but it does
not return anything to the requests.

What could be wrong?


janus-1:~/ldap # ldapsearch -b dc=afaa,dc=asso,dc=fr -h ldap.intra.afaa.asso.fr -P 2 -x -s sub 'uid=acc'
# extended LDIF
#
# LDAPv2
# base <dc=afaa,dc=asso,dc=fr> with scope sub
# filter: uid=acc
# requesting: ALL
#

# search result
search: 2
result: 32 No such object

# numResponses: 1



Jul 30 07:39:25 janus-1 slapd[799]: slapd starting 
Jul 30 07:39:25 janus-1 slapd[801]: daemon: added 6r 
Jul 30 07:39:25 janus-1 slapd[801]: daemon: Attempt to listen to 0.0.0.0 failed, already listening on ::, assuming IPv4 included 
Jul 30 07:39:25 janus-1 slapd[801]: daemon: closing 7 
Jul 30 07:39:25 janus-1 slapd[801]: daemon: select: listen=6 active_threads=0 tvp=NULL 
Jul 30 07:39:29 janus-1 slapd[801]: daemon: activity on 1 descriptors 
Jul 30 07:39:29 janus-1 slapd[801]: daemon: new connection on 7 
Jul 30 07:39:29 janus-1 slapd[801]: str2filter "(objectclass=*)" 
Jul 30 07:39:29 janus-1 slapd[801]: begin get_filter 
Jul 30 07:39:29 janus-1 slapd[801]: PRESENT 
Jul 30 07:39:29 janus-1 slapd[801]: end get_filter 0 
Jul 30 07:39:29 janus-1 slapd[801]: conn=0 fd=7 ACCEPT from IP=10.0.0.145:35723 (IP=:: 389) 
Jul 30 07:39:29 janus-1 slapd[801]: daemon: added 7r 
Jul 30 07:39:29 janus-1 slapd[801]: daemon: activity on:
Jul 30 07:39:29 janus-1 slapd[801]:  
Jul 30 07:39:29 janus-1 slapd[801]: daemon: select: listen=6 active_threads=0 tvp=NULL 
Jul 30 07:39:29 janus-1 slapd[801]: daemon: activity on 1 descriptors 
Jul 30 07:39:29 janus-1 slapd[801]: daemon: activity on:
Jul 30 07:39:29 janus-1 slapd[801]:  7r
Jul 30 07:39:29 janus-1 slapd[801]:  
Jul 30 07:39:29 janus-1 slapd[801]: daemon: read activity on 7 
Jul 30 07:39:29 janus-1 slapd[801]: connection_get(7): got connid=0 
Jul 30 07:39:29 janus-1 slapd[801]: connection_read(7): checking for input on id=0 
Jul 30 07:39:29 janus-1 slapd[803]: do_bind 
Jul 30 07:39:29 janus-1 slapd[801]: ber_get_next on fd 7 failed errno=11 (Resource temporarily unavailable) 
Jul 30 07:39:29 janus-1 slapd[801]: daemon: select: listen=6 active_threads=1 tvp=NULL 
Jul 30 07:39:29 janus-1 slapd[803]: >>> dnPrettyNormal: <> 
Jul 30 07:39:29 janus-1 slapd[803]: <<< dnPrettyNormal: <>, <> 
Jul 30 07:39:29 janus-1 slapd[803]: do_bind: version=2 dn="" method=128 
Jul 30 07:39:29 janus-1 slapd[803]: conn=0 op=0 BIND dn="" method=128 
Jul 30 07:39:29 janus-1 slapd[803]: send_ldap_result: conn=0 op=0 p=2 
Jul 30 07:39:29 janus-1 slapd[803]: send_ldap_response: msgid=1 tag=97 err=0 
Jul 30 07:39:29 janus-1 slapd[803]: conn=0 op=0 RESULT tag=97 err=0 text= 
Jul 30 07:39:29 janus-1 slapd[803]: do_bind: v2 anonymous bind 
Jul 30 07:39:29 janus-1 slapd[801]: daemon: activity on 1 descriptors 
Jul 30 07:39:29 janus-1 slapd[801]: daemon: activity on:
Jul 30 07:39:29 janus-1 slapd[801]:  7r
Jul 30 07:39:29 janus-1 slapd[801]:  
Jul 30 07:39:29 janus-1 slapd[801]: daemon: read activity on 7 
Jul 30 07:39:29 janus-1 slapd[801]: connection_get(7): got connid=0 
Jul 30 07:39:29 janus-1 slapd[801]: connection_read(7): checking for input on id=0 
Jul 30 07:39:29 janus-1 slapd[804]: do_search 
Jul 30 07:39:29 janus-1 slapd[801]: ber_get_next on fd 7 failed errno=11 (Resource temporarily unavailable) 
Jul 30 07:39:29 janus-1 slapd[801]: daemon: select: listen=6 active_threads=2 tvp=NULL 
Jul 30 07:39:29 janus-1 slapd[804]: >>> dnPrettyNormal: <dc=afaa,dc=asso,dc=fr> 
Jul 30 07:39:29 janus-1 slapd[804]: <<< dnPrettyNormal: <dc=afaa,dc=asso,dc=fr>, <dc=afaa,dc=asso,dc=fr> 
Jul 30 07:39:29 janus-1 slapd[804]: begin get_filter 
Jul 30 07:39:29 janus-1 slapd[804]: EQUALITY 
Jul 30 07:39:29 janus-1 slapd[804]: end get_filter 0 
Jul 30 07:39:29 janus-1 slapd[804]: conn=0 op=1 SRCH base="dc=afaa,dc=asso,dc=fr" scope=2 filter="(uid=acc)" 
Jul 30 07:39:29 janus-1 slapd[804]: => ldbm_back_search 
Jul 30 07:39:29 janus-1 slapd[804]: dn2entry_r: dn: "dc=afaa,dc=asso,dc=fr" 
Jul 30 07:39:29 janus-1 slapd[804]: => dn2id( "dc=afaa,dc=asso,dc=fr" ) 
Jul 30 07:39:29 janus-1 slapd[804]: => ldbm_cache_open( "dn2id.dbb", 73, 600 ) 
Jul 30 07:39:29 janus-1 slapd[804]: <= ldbm_cache_open (opened 0) 
Jul 30 07:39:29 janus-1 slapd[804]: <= dn2id NOID 
Jul 30 07:39:29 janus-1 slapd[804]: send_ldap_result: conn=0 op=1 p=2 
Jul 30 07:39:29 janus-1 slapd[804]: send_ldap_response: msgid=2 tag=101 err=32 
Jul 30 07:39:29 janus-1 slapd[804]: conn=0 op=1 RESULT tag=101 err=32 text= 
Jul 30 07:39:29 janus-1 slapd[801]: daemon: activity on 1 descriptors 
Jul 30 07:39:29 janus-1 slapd[801]: daemon: activity on:
Jul 30 07:39:29 janus-1 slapd[801]:  7r
Jul 30 07:39:29 janus-1 slapd[801]:  
Jul 30 07:39:29 janus-1 slapd[801]: daemon: read activity on 7 
Jul 30 07:39:29 janus-1 slapd[801]: connection_get(7): got connid=0 
Jul 30 07:39:29 janus-1 slapd[801]: connection_read(7): checking for input on id=0 
Jul 30 07:39:29 janus-1 slapd[805]: do_unbind 
Jul 30 07:39:29 janus-1 slapd[801]: ber_get_next on fd 7 failed errno=11 (Resource temporarily unavailable) 
Jul 30 07:39:29 janus-1 slapd[801]: daemon: select: listen=6 active_threads=3 tvp=NULL 
Jul 30 07:39:29 janus-1 slapd[805]: conn=0 op=2 UNBIND 
Jul 30 07:39:29 janus-1 slapd[805]: connection_closing: readying conn=0 sd=7 for close 
Jul 30 07:39:29 janus-1 slapd[801]: daemon: activity on 1 descriptors 
Jul 30 07:39:29 janus-1 slapd[801]: daemon: select: listen=6 active_threads=3 tvp=NULL 
Jul 30 07:39:29 janus-1 slapd[801]: daemon: activity on 1 descriptors 
Jul 30 07:39:29 janus-1 slapd[801]: daemon: select: listen=6 active_threads=3 tvp=NULL 
Jul 30 07:39:29 janus-1 slapd[805]: connection_resched: attempting closing conn=0 sd=7 
Jul 30 07:39:29 janus-1 slapd[805]: connection_close: conn=0 sd=7 
Jul 30 07:39:29 janus-1 slapd[805]: daemon: removing 7 
Jul 30 07:39:29 janus-1 slapd[805]: conn=0 fd=7 closed 




/etc/openldap/slapd.conf:
------------------------------------------------------------------------
include	/etc/openldap/schema/core.schema
include /etc/openldap/schema/cosine.schema
include /etc/openldap/schema/inetorgperson.schema

pidfile		/var/run/slapd/slapd.pid
argsfile	/var/run/slapd/slapd.args

allow bind_v2
loglevel 4075
timelimit 10
sizelimit 500

database	ldbm
suffix		"dc=afaa,dc=asso,dc=fr"
rootdn		"cn=root,dc=afaa,dc=asso,dc=fr"
rootpw      {SSHA}xxxxxxxxxxxxxxxxxxxxxxxxxxxx
directory	/var/lib/ldap/afaa
index   cn,sn,uid pres,eq,sub
index	objectClass	eq
replica  host=janus-2.janus.infra.afaa.asso.fr
         bindmethod=simple credential=lduster2
         binddn="cn=ldap,dc=intra,dc=afaa,dc=asso,dc=fr"
replica  host=janus-3.janus.infra.afaa.asso.fr
         bindmethod=simple credential=lduster3
         binddn="cn=ldap,dc=intra,dc=afaa,dc=asso,dc=fr"
replica  host=janus-4.janus.infra.afaa.asso.fr
         bindmethod=simple credential=lduster4
         binddn="cn=ldap,dc=intra,dc=afaa,dc=asso,dc=fr"
------------------------------------------------------------------------


The database is initialized with:

Makefile
------------------------------------------------------------------------
CONF=/etc/openldap/slapd.conf
SUFFIX=dc=afaa,dc=asso,dc=fr

db:afaa.ldif
	/etc/init.d/ldap stop
	rm -rf /var/lib/ldap/afaa/*
	slapadd -l afaa.ldif -f $(CONF) -b $(SUFFIX)
	chown -R ldap.ldap /var/lib/ldap
	/etc/init.d/ldap start
------------------------------------------------------------------------



afaa.ldif:
------------------------------------------------------------------------
1
# root
dn:cn=root,dc=afaa,dc=asso,dc=fr
cn:root
uid:root
sn:root
mail:root@afaa.asso.fr
userPassword:{crypt}xxxxxxxxxxxxx
o:AFAA
objectclass:top
objectclass:person
objectclass:organizationalPerson
objectclass:inetOrgPerson

# acc
dn:cn=Accueil,dc=afaa,dc=asso,dc=fr
cn:Accueil
uid:acc
sn:Accueil
mail:acc@afaa.asso.fr
userPassword:{crypt}xxxxxxxxxxxxx
o:AFAA
objectclass:top
objectclass:person
objectclass:organizationalPerson
objectclass:inetOrgPerson

# al
dn:cn=Alain LACROIX,dc=afaa,dc=asso,dc=fr
cn:Alain LACROIX
uid:al
sn:LACROIX
givenName:Alain
mail:al@afaa.asso.fr
userPassword:{crypt}xxxxxxxxxxxxx
o:AFAA
objectclass:top
objectclass:person
objectclass:organizationalPerson
objectclass:inetOrgPerson

# ...
------------------------------------------------------------------------


janus-1:/var/lib/ldap/afaa # ls -la
total 412
drwxr-xr-x    2 ldap     ldap         4096 Jul 30 07:02 ./
drwx------    3 ldap     ldap         4096 Jul 30 02:11 ../
-rw-------    1 ldap     ldap        98304 Jul 30 07:39 cn.dbb
-rw-------    1 ldap     ldap        49152 Jul 30 07:39 dn2id.dbb
-rw-------    1 ldap     ldap       110592 Jul 30 07:35 id2entry.dbb
-rw-------    1 ldap     ldap         8192 Jul 30 07:02 nextid.dbb
-rw-------    1 ldap     ldap        24576 Jul 30 07:39 objectClass.dbb
-rw-------    1 ldap     ldap        77824 Jul 30 07:39 sn.dbb
-rw-------    1 ldap     ldap        32768 Jul 30 07:39 uid.dbb


-- 
__Pascal Bourguignon__
mailto:pascal@afaa.asso.fr
mailto:pjb@informatimago.com