I can't search on my database. Here are the debugs
and confs:
slapd debug:
# daemon: activity on 1 descriptors
daemon: new connection on 7 daemon: conn=5 fd=7 connection from IP=127.0.0.1:49362 (IP=0.0.0.0:389) accepted. daemon: added 7r daemon: activity on: daemon: select: listen=6 active_threads=0 tvp=NULL daemon: activity on 1 descriptors daemon: activity on: 7r daemon: read activity on 7 connection_get(7) connection_get(7): got connid=5 connection_read(7): checking for input on id=5 ber_get_next ldap_read: want=1, got=1 0000: 30 0 ldap_read: want=1, got=1 0000: 0c . ldap_read: want=12, got=12 0000: 02 01 01 60 07 02 01 03 04 00 80 00 ...`........ ber_get_next: tag 0x30 len 12 contents: ber_dump: buf=0x00113750 ptr=0x00113750 end=0x0011375c len=12 0000: 02 01 01 60 07 02 01 03 04 00 80 00 ...`........ ber_get_next ldap_read: want=1 error=Resource temporarily unavailable ber_get_next on fd 7 failed errno=11 (Resource temporarily unavailable) do_bind ber_scanf fmt ({iat) ber: ber_dump: buf=0x00113750 ptr=0x00113753 end=0x0011375c len=9 0000: 60 07 02 01 03 04 00 80 00 `........ ber_scanf fmt (o}) ber: ber_dump: buf=0x00113750 ptr=0x0011375a end=0x0011375c len=2 0000: 80 00 .. do_bind: version=3 dn="" method=128 conn=5 op=0 BIND dn="" method=128 send_ldap_result: conn=5 op=0 p=3 send_ldap_result: 0:: slapd.conf:
...
database
ldbm
suffix "o=SIU" rootdn "cn=Manager,o=SIU" # Cleartext passwords, especially for the rootdn, should # be avoid. See slappasswd(8) and slapd.conf(5) for details. # Use of strong authentication encouraged. rootpw secret # The database directory MUST exist prior to running slapd AND # should only be accessible by the slapd/tools. Mode 700 recommended. directory /export/home/prueba/PROXY_IPLANET/bin1/nsapi/pruebas/binopenldap/var/openldap-ldbm # Indices to maintain index objectClass eq The search I run:
ldapsearch -x -b '' -s base
'objectclass=EntidadUsuario' MSISDN
My .ldif file:
dn: o=SIU
objectclass: top objectclass: organization o: SIU dn: cn=entrada1,o=SIU
objectclass: EntidadUsuario LOGIN-IP: 16779811 MSISDN: 654993112 USER-ID: 789 I don't know what index are for either, or what base
should I use. Based on the .ldif I'd like to query the database with something
like:
ldapsearch -b o=SIU "LOGIN-IP=16779811"
MSISDN
... and get the matched MSISDN,
All help is welcomed!,
|