summaryrefslogtreecommitdiff
path: root/source4/dsdb/samdb/ldb_modules/samba_dsdb.c
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2010-10-19 22:29:04 +1100
committerAndrew Bartlett <abartlet@samba.org>2010-10-19 22:34:58 +1100
commit439a1fe2d0db8a784431a4dbc070faef6e4f788e (patch)
tree11f78b611df0f2e3c5881d1d3fa7df151b699e13 /source4/dsdb/samdb/ldb_modules/samba_dsdb.c
parent5650e8558eb703a5660cb3cef79bec89dc6ac5fc (diff)
downloadsamba-439a1fe2d0db8a784431a4dbc070faef6e4f788e.tar.gz
samba-439a1fe2d0db8a784431a4dbc070faef6e4f788e.tar.bz2
samba-439a1fe2d0db8a784431a4dbc070faef6e4f788e.zip
s4-dsdb Add module to send only 'simple' DNs to OpenLDAP backends
If we send the full extended DN, then we risk standards-complient LDAP servers rejecting it as invalid. Only the DN portion is needed to resolve the record in any case, and any SID or GUID componenets have already been evaluated into the DN. Andrew Bartlett
Diffstat (limited to 'source4/dsdb/samdb/ldb_modules/samba_dsdb.c')
-rw-r--r--source4/dsdb/samdb/ldb_modules/samba_dsdb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/dsdb/samdb/ldb_modules/samba_dsdb.c b/source4/dsdb/samdb/ldb_modules/samba_dsdb.c
index 4d0f9465b0..9536981393 100644
--- a/source4/dsdb/samdb/ldb_modules/samba_dsdb.c
+++ b/source4/dsdb/samdb/ldb_modules/samba_dsdb.c
@@ -209,9 +209,9 @@ static int samba_dsdb_init(struct ldb_module *module)
const char **backend_modules;
static const char *fedora_ds_backend_modules[] = {
- "nsuniqueid", "paged_searches", NULL };
+ "nsuniqueid", "paged_searches", "simple_dn", NULL };
static const char *openldap_backend_modules[] = {
- "entryuuid", "paged_searches", NULL };
+ "entryuuid", "paged_searches", "simple_dn", NULL };
static const char *samba_dsdb_attrs[] = { "backendType", "serverRole", NULL };
const char *backendType, *serverRole;