[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
proxycache with error "no objectClass attribute"
Hi:
I follow "http://www.openldap.org/doc/admin22/proxycache.html", but
there is something wrong. When the result is cached, an error shows "no
objectClass attribute". But If I use ldapsearch to the original LDAP server,
objectClass attribute is there. What's wrong with my setting?
BTW, the online document about 15.2.4 Example should be
uri ldap://ldap.example.com instead of
uri ldap://ldap.example.com/dc=example%2cdc=com ?
ldap01% ldapsearch -h ldapserver -s sub -b "o=myorg" "cn=h0131"
# extended LDIF
#
# LDAPv3
# base <o=myorg> with scope sub
# filter: cn=h0131
# requesting: ALL
#
# h0131, members, myorg
dn: cn=h0131,ou=members,o=myorg
cn: h0131
objectClass: hostinguser
accountStatus: 1
mail: h0131@mail.myorg.org
# search result
search: 2
result: 0 Success
# numResponses: 2
# numEntries: 1
slapd.conf about ldap backend:
database ldap
suffix "o=myorg"
uri "ldap://ldapserver:389"
lastmod off
map attribute mail *
map attribute cn *
map attribute *
overlay proxycache
proxyCache bdb 100000 1 1000 100
proxyAttrset 0 mail cn
proxyTemplate (cn=) 0 3600
proxyTemplate (&(cn=)(accountstatus=)) 0 3600
cachesize 20
directory /var/db/openldap-data
index objectClass eq
index mail,cn eq
Log :
Nov 2 10:03:30 ldap01 slapd[92425]: @(#) $OpenLDAP: slapd 2.2.18 (Nov 2
2004 09:53:48) $ root@ldap01:/tmp/openldap-2.2.18/servers/slapd
Nov 2 10:03:30 ldap01 slapd[92425]: bdb_initialize: Sleepycat Software:
Berkeley DB 4.2.52: (December 3, 2003)
Nov 2 10:03:30 ldap01 slapd[92425]: bdb_initialize: Sleepycat Software:
Berkeley DB 4.2.52: (December 3, 2003)
Nov 2 10:03:30 ldap01 slapd[92425]: bdb_db_init: Initializing bdb database
Nov 2 10:03:30 ldap01 slapd[92425]: Total # of attribute sets to be cached
= 1
Nov 2 10:03:30 ldap01 slapd[92425]: Attribute Set # 0
Nov 2 10:03:30 ldap01 slapd[92425]: mail
Nov 2 10:03:30 ldap01 slapd[92425]: cn
Nov 2 10:03:30 ldap01 slapd[92425]: Template:
Nov 2 10:03:30 ldap01 slapd[92425]: query template: (cn=)
Nov 2 10:03:30 ldap01 slapd[92425]: attributes:
Nov 2 10:03:30 ldap01 slapd[92425]: mail
Nov 2 10:03:30 ldap01 slapd[92425]: cn
Nov 2 10:03:30 ldap01 slapd[92425]: Template:
Nov 2 10:03:30 ldap01 slapd[92425]: query template:
(&(cn=)(accountstatus=))
Nov 2 10:03:30 ldap01 slapd[92425]: attributes:
Nov 2 10:03:30 ldap01 slapd[92425]: mail
Nov 2 10:03:30 ldap01 slapd[92425]: cn
Nov 2 10:03:30 ldap01 slapd[92426]: slapd starting
Nov 2 10:03:33 ldap01 slapd[92426]: conn=0 fd=12 ACCEPT from
IP=127.0.0.1:2562 (IP=0.0.0.0:389)
Nov 2 10:03:33 ldap01 slapd[92426]: conn=0 op=0 BIND dn="" method=128
Nov 2 10:03:33 ldap01 slapd[92426]: conn=0 op=0 RESULT tag=97 err=0 text=
Nov 2 10:03:33 ldap01 slapd[92426]: conn=0 op=1 SRCH base="o=myorg" scope=2
deref=0 filter="(cn=h0131)"
Nov 2 10:03:33 ldap01 slapd[92426]: conn=0 op=1 SRCH attr=cn mail
Nov 2 10:03:33 ldap01 slapd[92426]: query template of incoming query =
(cn=)
Nov 2 10:03:33 ldap01 slapd[92426]: Lock QC index = 0
Nov 2 10:03:33 ldap01 slapd[92426]: Not answerable: Unlock QC index=0
Nov 2 10:03:33 ldap01 slapd[92426]: QUERY NOT ANSWERABLE
Nov 2 10:03:33 ldap01 slapd[92426]: QUERY CACHEABLE
Nov 2 10:03:33 ldap01 slapd[92426]: UUID for query being added =
24ca4d16-c0bf-1028-9b70-ff7530f769b6
Nov 2 10:03:33 ldap01 slapd[92426]:
is_entry_objectclass("cn=h0131,ou=members,o=myorg", "2.5.17.0") no
objectClass attribute
Nov 2 10:03:33 ldap01 slapd[92426]:
is_entry_objectclass("cn=h0131,ou=members,o=myorg", "2.5.17.0") no
objectClass attribute
Nov 2 10:03:33 ldap01 slapd[92426]:
is_entry_objectclass("cn=h0131,ou=members,o=myorg",
"1.3.6.1.4.1.4203.666.3.4") no objectClass attribute
Nov 2 10:03:33 ldap01 slapd[92426]: null_callback : error code 0x32
Nov 2 10:03:33 ldap01 slapd[92426]: null_callback : error code 0x32
Nov 2 10:03:33 ldap01 slapd[92426]:
is_entry_objectclass("cn=h0131,ou=members,o=myorg", "2.5.17.0") no
objectClass attribute
Nov 2 10:03:33 ldap01 slapd[92426]:
is_entry_objectclass("cn=h0131,ou=members,o=myorg", "2.5.17.0") no
objectClass attribute
Nov 2 10:03:33 ldap01 slapd[92426]:
is_entry_objectclass("cn=h0131,ou=members,o=myorg",
"1.3.6.1.4.1.4203.666.3.4") no objectClass attribute
Nov 2 10:03:33 ldap01 slapd[92426]: ENTRY ADDED/MERGED, CACHED ENTRIES=1
Nov 2 10:03:33 ldap01 slapd[92426]: STORED QUERIES = 1
Nov 2 10:03:33 ldap01 slapd[92426]: Added query expires at 1099364613
Nov 2 10:03:33 ldap01 slapd[92426]: Lock AQ index = 0
Nov 2 10:03:33 ldap01 slapd[92426]: TEMPLATE 0 QUERIES++ 1
Nov 2 10:03:33 ldap01 slapd[92426]: Unlock AQ index = 0
Nov 2 10:03:33 ldap01 slapd[92426]: Base of added query = o=myorg
Nov 2 10:03:33 ldap01 slapd[92426]: conn=0 op=1 SEARCH RESULT tag=101 err=0
nentries=1 text=
Nov 2 10:03:33 ldap01 slapd[92426]: conn=0 op=2 UNBIND
Nov 2 10:03:33 ldap01 slapd[92426]: conn=0 fd=12 closed
Nov 2 10:03:34 ldap01 slapd[92426]: conn=1 fd=12 ACCEPT from
IP=127.0.0.1:2565 (IP=0.0.0.0:389)
Nov 2 10:03:34 ldap01 slapd[92426]: conn=1 op=0 BIND dn="" method=128
Nov 2 10:03:34 ldap01 slapd[92426]: conn=1 op=0 RESULT tag=97 err=0 text=
Nov 2 10:03:34 ldap01 slapd[92426]: conn=1 op=1 SRCH base="o=myorg" scope=2
deref=0 filter="(cn=h0131)"
Nov 2 10:03:34 ldap01 slapd[92426]: conn=1 op=1 SRCH attr=cn mail
Nov 2 10:03:34 ldap01 slapd[92426]: query template of incoming query =
(cn=)
Nov 2 10:03:34 ldap01 slapd[92426]: Lock QC index = 0
Nov 2 10:03:34 ldap01 slapd[92426]: QUERY ANSWERABLE
Nov 2 10:03:34 ldap01 slapd[92426]: conn=1 op=1 SEARCH RESULT tag=101
err=32 nentries=0 text=
Nov 2 10:03:34 ldap01 slapd[92426]: conn=1 op=2 UNBIND
Nov 2 10:03:34 ldap01 slapd[92426]: conn=1 fd=12 closed
Thanks.
_________________________________________________________________
FREE pop-up blocking with the new MSN Toolbar - get it now!
http://toolbar.msn.com/