r5588: We currently use a string representing an hex number so conform to that.
authorSimo Sorce <idra@samba.org>
Sun, 27 Feb 2005 19:57:03 +0000 (19:57 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:10:55 +0000 (13:10 -0500)
But we should move to a signed integer in future to be AD compatible.
(This used to be commit b67512c5139af121b6579a5c6318a489c2132ebb)

source4/dsdb/samdb/ldb_modules/samldb.c

index 1e110afc2ed3026d5ed3ca16738f0bfff91509f5..ddd878070d498f91b1b5d5fffb68f1e60f32fe15 100644 (file)
@@ -413,11 +413,11 @@ static struct ldb_message *samldb_manage_group_object(struct ldb_module *module,
                return NULL;
        }
 
-       if ( ! samldb_find_or_add_attribute(msg2, "sAMAccountType", NULL, "268435456")) {
+       if ( ! samldb_find_or_add_attribute(msg2, "sAMAccountType", NULL, "0x10000000")) {
                return NULL;
        }
 
-       if ( ! samldb_find_or_add_attribute(msg2, "groupType", NULL, "-2147483646")) {
+       if ( ! samldb_find_or_add_attribute(msg2, "groupType", NULL, "0x80000002")) {
                return NULL;
        }
 
@@ -539,7 +539,7 @@ static struct ldb_message *samldb_manage_user_object(struct ldb_module *module,
                return NULL;
        }
 
-       if ( ! samldb_find_or_add_attribute(msg2, "sAMAccountType", NULL, "805306368")) {
+       if ( ! samldb_find_or_add_attribute(msg2, "sAMAccountType", NULL, "0x30000000")) {
                talloc_free(msg2);
                return NULL;
        }