From d613f91a74be13cde375ad742b9dab3af2a75935 Mon Sep 17 00:00:00 2001 From: Matthias Dieter Wallnöfer Date: Sat, 27 Nov 2010 14:17:53 +0100 Subject: 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. --- source4/dsdb/samdb/ldb_modules/samba3sam.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); } -- cgit