[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
(ITS#3395) rw-overlay is not rewriting
Full_Name: Dieter Kluenter
Version: HEAD
OS: Linux
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (80.129.255.84)
Hello,
I experience a strange behaviour of rw overlay.If overlay rw is explicitly
declared in slapd.conf suffixmassage values are not rewritten, if I don't
declare overlay rw, the module is still loaded (as intended) and suffixmassage
values are rewritten.
The not working slapd.conf
.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.
database ldap
lastmod off
overlay rwm
suffix "dc=ORANGE,dc=DE"
suffixmassage "dc=ORANGE,dc=DE" "o=avci,c=de"
rootdn "cn=admin,dc=orange,dc=de"
rootpw xxxx
binddn "cn=admanager,o=avci,c=de"
bindpw xxxx
uri ldapi://%2fusr%2flocal%2fvar%2frun%2fldapi
overlay proxycache
proxycache hdb 50000 2 500 3600
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
An erroneous slapd.log
>>> dnPrettyNormal: <ou=adressbuch,dc=orange,dc=de>
=> ldap_bv2dn(ou=adressbuch,dc=orange,dc=de,0)
ldap_err2string
<= ldap_bv2dn(ou=adressbuch,dc=orange,dc=de)=0 Success
=> ldap_dn2bv(272)
ldap_err2string
<= ldap_dn2bv(ou=adressbuch,dc=orange,dc=de)=0 Success
=> ldap_dn2bv(272)
ldap_err2string
<= ldap_dn2bv(ou=adressbuch,dc=orange,dc=de)=0 Success
<<< dnPrettyNormal: <ou=adressbuch,dc=orange,dc=de>,
<ou=adressbuch,dc=orange,dc=de>
SRCH "ou=adressbuch,dc=orange,dc=de" 2 3 0 0 0
put_simple_filter: "sn=hein"
ber_scanf fmt ({mm}) ber:
ber_scanf fmt ({mm}) ber:
[rw] searchDN: "ou=adressbuch,dc=orange,dc=de" ->
"ou=adressbuch,dc=orange,dc=de"
[rw] searchFilterAttrDN: "(&(objectClass=evolutionPerson)(sn=hein))" ->
"(&(objectClass=evolutionPerson)(sn=hein))"
put_filter: "(&(objectClass=evolutionPerson)(sn=hein))"
put_filter: AND
put_filter_list "(objectClass=evolutionPerson)(sn=hein)"
put_filter: "(objectClass=evolutionPerson)"
put_filter: simple
put_simple_filter: "objectClass=evolutionPerson"
put_filter: "(sn=hein)"
-.-.-.-.-.-.-.-.-.-.-.-.-.-.--
And here a successful rewrite log
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.
==> rewrite_context_apply [depth=1] string='ou=adressbuch,dc=orange,dc=de'
==> rewrite_rule_apply rule='((.+),)?dc=ORANGE,[ ]?dc=DE$'
string='ou=adressbuch,dc=orange,dc=de' [1 pass(es)]
==> rewrite_context_apply [depth=1] res={0,'ou=adressbuch,o=avci,c=de'}
>>> dnPrettyNormal: <ou=adressbuch,o=avci,c=de>
=> ldap_bv2dn(ou=adressbuch,o=avci,c=de,0)
ldap_err2string
<= ldap_bv2dn(ou=adressbuch,o=avci,c=de)=0 Success
=> ldap_dn2bv(272)
ldap_err2string
<= ldap_dn2bv(ou=adressbuch,o=avci,c=de)=0 Success
=> ldap_dn2bv(272)
ldap_err2string
<= ldap_dn2bv(ou=adressbuch,o=avci,c=de)=0 Success
<<< dnPrettyNormal: <ou=adressbuch,o=avci,c=de>, <ou=adressbuch,o=avci,c=de>
[rw] searchDN: "ou=adressbuch,dc=orange,dc=de" -> "ou=adressbuch,o=avci,c=de"
==> rewrite_context_apply [depth=1]
string='(&(objectClass=evolutionPerson)(sn=hein))'
==> rewrite_context_apply [depth=1] res={0,'NULL'}
[rw] searchFilterAttrDN: "(&(objectClass=evolutionPerson)(sn=hein))" ->
"(&(objectClass=evolutionPerson)(sn=h
.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.--
-Dieter