From 96e1632d4aa250079c5e4d9ee0010ccd9c90bf1d Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Mon, 7 Apr 2003 16:59:56 +0000 Subject: [PATCH] default remapping from target to server aliases searchResult --- servers/slapd/back-ldap/config.c | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/servers/slapd/back-ldap/config.c b/servers/slapd/back-ldap/config.c index e3174d74c4..d03c1ea08f 100644 --- a/servers/slapd/back-ldap/config.c +++ b/servers/slapd/back-ldap/config.c @@ -676,11 +676,22 @@ suffix_massage_config( rargv[ 4 ] = NULL; rewrite_parse( info, "", ++line, 4, rargv ); #else /* normalize "matched" */ + rargv[ 0 ] = "rewriteContext"; - rargv[ 1 ] = "matchedDn"; - rargv[ 2 ] = NULL; - rewrite_parse( info, "", ++line, 2, rargv ); + rargv[ 1 ] = "matchedDN"; + rargv[ 2 ] = "alias"; + rargv[ 3 ] = "searchResult"; + rargv[ 4 ] = NULL; + rewrite_parse( info, "", ++line, 4, rargv ); + rargv[ 0 ] = "rewriteContext"; + rargv[ 1 ] = "searchAttrDN"; + rargv[ 2 ] = "alias"; + rargv[ 3 ] = "searchResult"; + rargv[ 4 ] = NULL; + rewrite_parse( info, "", ++line, 4, rargv ); + +#if 0 rargv[ 0 ] = "rewriteRule"; rargv[ 1 ] = suffix_massage_regexize( prnc->bv_val ); rargv[ 2 ] = suffix_massage_patternize( nvnc->bv_val ); @@ -689,6 +700,7 @@ suffix_massage_config( rewrite_parse( info, "", ++line, 4, rargv ); ch_free( rargv[ 1 ] ); ch_free( rargv[ 2 ] ); +#endif /* 0 */ #endif /* normalize "matched" */ return 0; -- 2.39.5