[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
messed up id mapping
I got LDAP working on our phone list with:
dn: o=NEC-P, c=US
I just changed it to:
dn: dc=nec, dc=com
If I now test it from netscape's address book, I can search it and get the
right
listing. However, if I want to get a detailed page on a particular entry I
get
it for the wrong person!
----
do_bind
do_bind: version 2 dn () method 128
send_ldap_result 0::
do_search
SRCH "CN=MAXIMILIAN OTT,DC=NEC,DC=COM" 0 0 0 0 0
filter: (objectclass=*)
attrs:
=> ldbm_back_search
using base "CN=MAXIMILIAN OTT,DC=NEC,DC=COM"
base_candidates: base: "CN=MAXIMILIAN OTT,DC=NEC,DC=COM"
dn2entry_r: dn: "CN=MAXIMILIAN OTT,DC=NEC,DC=COM"
=> dn2id( "CN=MAXIMILIAN OTT,DC=NEC,DC=COM" )
=> ldbm_cache_open( "./DB/dn2id.dbb", 7, 600 )
<= ldbm_cache_open (cache 0)
<= dn2id 104
=> id2entry_r( 104 )
====> cache_find_entry_dn2id: found id: 104 rw: 0
entry_rdwr_rtrylock: ID: 104
<= id2entry_r 0x809f720 (cache)
====> cache_return_entry_r
entry_rdwr_runlock: ID: 104
=> id2entry_r( 104 )
====> cache_find_entry_dn2id: found id: 104 rw: 0
entry_rdwr_rtrylock: ID: 104
<= id2entry_r 0x809f720 (cache)
=> acl_get: edn CN=ALEKSANDER KOLAROV,DC=NEC,DC=COM
=> send_search_entry (cn=Aleksander Kolarov, dc=nec, dc=com)
=> acl_get: edn CN=ALEKSANDER KOLAROV,DC=NEC,DC=COM
=> acl_get: edn CN=ALEKSANDER KOLAROV,DC=NEC,DC=COM
=> acl_get: edn CN=ALEKSANDER KOLAROV,DC=NEC,DC=COM
-----
My slapd.conf looks like:
include /usr/local/etc/openldap/slapd.at.conf
include /usr/local/etc/openldap/slapd.oc.conf
schemacheck on
pidfile ./DB/slapd.pid
argsfile ./DB/slapd.args
#######################################################################
# ldbm database definitions
#######################################################################
database ldbm
cachesize 4
#suffix "o=NEC-P, c=US"
#suffix "dc=nj, dc=nec, dc=com"
suffix "dc=nec, dc=com"
directory ./DB
#rootdn "cn=Manager, o=NEC-P, c=US"
#rootpw ert45ase
index cn,sn,mail pres,eq,approx
index default none
lastmod on
---
And the entry for Max Ott in the ldif file looks like:
dn: cn=Maximilian Ott, dc=nec, dc=com
cn: Maximilian Ott
mail: max@ccrl.nj.nec.com
o: C&C Research Laboratories, NEC USA, Inc.
givenname: Maximilian
sn: Ott
locality: Princeton
st: NJ
streetaddress:: NCBJbmRlcGVuZGVuY2UgV2F5CQ==
postalcode: 08540
countryname: USA
title: Technical Manager
telephonenumber: (609) 951-2469
objectclass: top
objectclass: person
-----
I build the database with
SLAPD=/usr/local/src/OpenLDAP/openldap-1.2.9/servers/slapd
LDIF2LDBM=$SLAPD/tools/ldif2ldbm
$LDIF2LDBM -f slapd.conf -i ph.ldif -e $SLAPD/tools
and start slapd with:
/usr/local/libexec/slapd -p 2000 -f slapd.conf -d 7
I'm the first one to admit that I don't understand a lot, but this seems
to
be rather odd.
Thanks in advance for any help,
-max