diff options
author | Matthias Dieter Wallnöfer <mdw@samba.org> | 2010-11-27 14:17:53 +0100 |
---|---|---|
committer | Matthias Dieter Wallnöfer <mdw@samba.org> | 2010-11-27 15:17:18 +0100 |
commit | d613f91a74be13cde375ad742b9dab3af2a75935 (patch) | |
tree | 8c054e2e350d0b77b0def531a5b2028cbc6b8ccf | |
parent | 2163c7a2985b750218661552760400ce485bf894 (diff) | |
download | samba-d613f91a74be13cde375ad742b9dab3af2a75935.tar.gz samba-d613f91a74be13cde375ad742b9dab3af2a75935.tar.bz2 samba-d613f91a74be13cde375ad742b9dab3af2a75935.zip |
s4:samba3sam LDB module - correctly print out an unsigned value
Here we can print it out as unsigned since we are generating a string
attribute.
-rw-r--r-- | source4/dsdb/samdb/ldb_modules/samba3sam.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source4/dsdb/samdb/ldb_modules/samba3sam.c b/source4/dsdb/samdb/ldb_modules/samba3sam.c index 3a8521dbde..e9830c9045 100644 --- a/source4/dsdb/samdb/ldb_modules/samba3sam.c +++ b/source4/dsdb/samdb/ldb_modules/samba3sam.c @@ -106,7 +106,8 @@ static void generate_sambaPrimaryGroupSID(struct ldb_module *module, const char sidstring = dom_sid_string(remote_mp, sid); talloc_free(sid); - ldb_msg_add_fmt(remote_mp, "sambaPrimaryGroupSID", "%s-%d", sidstring, ldb_msg_find_attr_as_uint(local, "primaryGroupID", 0)); + ldb_msg_add_fmt(remote_mp, "sambaPrimaryGroupSID", "%s-%u", sidstring, + ldb_msg_find_attr_as_uint(local, "primaryGroupID", 0)); talloc_free(sidstring); } |