diff options
author | Rich Megginson <rmeggins@redhat.com> | 2005-02-09 22:09:20 +0000 |
---|---|---|
committer | Rich Megginson <rmeggins@redhat.com> | 2005-02-09 22:09:20 +0000 |
commit | 73ea0816dabff27277f4b991535e2d9218a1f128 (patch) | |
tree | e55015b130c47558db9566aaa5660f6f9feee984 /ldap/servers/slapd/psearch.c | |
parent | 75b43f1f288542ce3c83b58037e55759b25042d4 (diff) | |
download | ds-73ea0816dabff27277f4b991535e2d9218a1f128.tar.gz ds-73ea0816dabff27277f4b991535e2d9218a1f128.tar.xz ds-73ea0816dabff27277f4b991535e2d9218a1f128.zip |
Bug(s) fixed: 147585
Bug Description: The TARGET dn is normalized before the search plugins get the DN. We should provide the original DN. For all other operations we pass in the SLAPI_ORIGINAL_TARGET_DN in the pblock - we can do the same for search as well. This bug was reported by Verisign.
Reviewed by: Noriko (Thanks!)
Fix Description: Use the pblock param SLAPI_ORIGINAL_TARGET_DN for search operations.
Platforms tested: RHEL3
Flag Day: no
Doc impact: Yes. Need to document this in the SLAPI doc.
QA impact: should be covered by regular nightly and manual testing
New Tests integrated into TET: none
Diffstat (limited to 'ldap/servers/slapd/psearch.c')
-rw-r--r-- | ldap/servers/slapd/psearch.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ldap/servers/slapd/psearch.c b/ldap/servers/slapd/psearch.c index f1df43a6..d7b89495 100644 --- a/ldap/servers/slapd/psearch.c +++ b/ldap/servers/slapd/psearch.c @@ -360,6 +360,11 @@ ps_send_results( void *arg ) slapi_pblock_set( ps->ps_pblock, SLAPI_SEARCH_TARGET, NULL ); slapi_ch_free_string(&base); + /* we strdup'd this in search.c - need to free */ + slapi_pblock_get( ps->ps_pblock, SLAPI_ORIGINAL_TARGET_DN, &base ); + slapi_pblock_set( ps->ps_pblock, SLAPI_ORIGINAL_TARGET_DN, NULL ); + slapi_ch_free_string(&base); + slapi_pblock_get( ps->ps_pblock, SLAPI_SEARCH_STRFILTER, &fstr ); slapi_pblock_set( ps->ps_pblock, SLAPI_SEARCH_STRFILTER, NULL ); slapi_ch_free_string(&fstr); |