git.samba.org
/
ira
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7c8b346
)
s3:idmap_ldap: trim the " chars from the location string in idmap_ldap_alloc_init
author
Michael Adam
<obnox@samba.org>
Fri, 20 Nov 2009 11:38:44 +0000
(12:38 +0100)
committer
Michael Adam
<obnox@samba.org>
Fri, 20 Nov 2009 12:17:22 +0000
(13:17 +0100)
When idmap alloc backend is specified as
idmap alloc backend = ldap:"ldap://server1 ldap://server2"
then currently "ldap://server1 ldap://server2" was passed to
ldap_initialize including the quotes, leading to an ldap error.
Michael
source3/winbindd/idmap_ldap.c
patch
|
blob
|
history
diff --git
a/source3/winbindd/idmap_ldap.c
b/source3/winbindd/idmap_ldap.c
index 375c04a0bf05fa5681a02692e62ba1f64e97fc46..99265594b96810e5935c9be12768eb3d92e97804 100644
(file)
--- a/
source3/winbindd/idmap_ldap.c
+++ b/
source3/winbindd/idmap_ldap.c
@@
-306,6
+306,8
@@
static NTSTATUS idmap_ldap_alloc_init(const char *params)
}
CHECK_ALLOC_DONE( idmap_alloc_ldap->url );
+ trim_char(idmap_alloc_ldap->url, '\"', '\"');
+
tmp = lp_parm_const_string(-1, "idmap alloc config",
"ldap_base_dn", NULL);
if ( ! tmp || ! *tmp) {