summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorMatthieu Patou <mat@matws.net>2011-11-14 18:32:41 +0100
committerMatthieu Patou <mat@samba.org>2011-12-23 07:57:21 +0100
commit7d13f7d4a1c01513702beeb4f62892a86238b283 (patch)
tree2d5ec12e4c6489b66df113ab21764ea73b603d9a /source4
parent34d549de34a10129dfb1d3a2f788f15c8110d3d4 (diff)
downloadsamba-7d13f7d4a1c01513702beeb4f62892a86238b283.tar.gz
samba-7d13f7d4a1c01513702beeb4f62892a86238b283.tar.bz2
samba-7d13f7d4a1c01513702beeb4f62892a86238b283.zip
s4-drsuapi: we store boolean in upppercase so we need to test them in uppercase
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'source4')
-rw-r--r--source4/rpc_server/drsuapi/getncchanges.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source4/rpc_server/drsuapi/getncchanges.c b/source4/rpc_server/drsuapi/getncchanges.c
index f6e4573942..32e155c5fa 100644
--- a/source4/rpc_server/drsuapi/getncchanges.c
+++ b/source4/rpc_server/drsuapi/getncchanges.c
@@ -375,15 +375,15 @@ static WERROR get_nc_changes_add_la(TALLOC_CTX *mem_ctx,
int ret;
const char *v;
- v = ldb_msg_find_attr_as_string(msg, "isDeleted", "false");
- if (strncasecmp(v, "true", 4) == 0) {
+ v = ldb_msg_find_attr_as_string(msg, "isDeleted", "FALSE");
+ if (strncmp(v, "TRUE", 4) == 0) {
/*
* Note: we skip the transmition of the deleted link even if the other part used to
* know about it because when we transmit the deletion of the object, the link will
* be deleted too due to deletion of object where link points and Windows do so.
*/
if (dsdb_functional_level(sam_ctx) >= DS_DOMAIN_FUNCTION_2008_R2) {
- v = ldb_msg_find_attr_as_string(msg, "isRecycled", "true");
+ v = ldb_msg_find_attr_as_string(msg, "isRecycled", "TRUE");
/*
* On Windows 2008R2 isRecycled is always present even if FL or DL are < FL 2K8R2
* if it join an existing domain with deleted objets, it firsts impose to have a
@@ -396,7 +396,7 @@ static WERROR get_nc_changes_add_la(TALLOC_CTX *mem_ctx,
* For this kind of forest level we do not return the link if the object is recycled
* (isRecycled = true).
*/
- if (strncasecmp(v, "true", 4) == 0) {
+ if (strncmp(v, "TRUE", 4) == 0) {
DEBUG(2, (" object %s is recycled, not returning linked attribute !\n",
ldb_dn_get_linearized(msg->dn)));
return WERR_OK;