git.samba.org
/
kai
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fae229a
)
s4: do not change the critical flag when it's on a dirsync control
author
Matthieu Patou
<mat@matws.net>
Mon, 7 Feb 2011 06:58:17 +0000
(09:58 +0300)
committer
Matthieu Patou
<mat@matws.net>
Sat, 21 May 2011 10:39:12 +0000
(14:39 +0400)
Signed-off-by: Andrew Tridgell <tridge@samba.org>
source4/dsdb/samdb/ldb_modules/rootdse.c
patch
|
blob
|
history
diff --git
a/source4/dsdb/samdb/ldb_modules/rootdse.c
b/source4/dsdb/samdb/ldb_modules/rootdse.c
index 7bc27b46b46a98f16ca98cbcdbbc12474bb822c6..c584a11b2c6e9f389003feaec9f2014e3216ad64 100644
(file)
--- a/
source4/dsdb/samdb/ldb_modules/rootdse.c
+++ b/
source4/dsdb/samdb/ldb_modules/rootdse.c
@@
-612,7
+612,11
@@
static int rootdse_filter_controls(struct ldb_module *module, struct ldb_request
continue;
}
- if (is_registered) {
+ /* If the control is DIRSYNC control then we keep the critical
+ * flag as the dirsync module will need to act upon it
+ */
+ if (is_registered && strcmp(req->controls[i]->oid,
+ LDB_CONTROL_DIRSYNC_OID)!= 0) {
req->controls[i]->critical = 0;
}
}