summaryrefslogtreecommitdiff
path: root/source3/passdb
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2009-05-12 10:38:00 -0700
committerJeremy Allison <jra@samba.org>2009-05-12 10:38:00 -0700
commit196084d641bf5ede94373c3681835d28b3ac9ee3 (patch)
tree64cc1f1bca281d7923cbdbb66d9d0d6559071996 /source3/passdb
parent3fa69438b9fafc13d522720e188e82455856fc1d (diff)
downloadsamba-196084d641bf5ede94373c3681835d28b3ac9ee3.tar.gz
samba-196084d641bf5ede94373c3681835d28b3ac9ee3.tar.bz2
samba-196084d641bf5ede94373c3681835d28b3ac9ee3.zip
Fix the last few format arg missmatches I missed.
Jeremy.
Diffstat (limited to 'source3/passdb')
-rw-r--r--source3/passdb/pdb_ldap.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source3/passdb/pdb_ldap.c b/source3/passdb/pdb_ldap.c
index a8fdbdae33..c853258a34 100644
--- a/source3/passdb/pdb_ldap.c
+++ b/source3/passdb/pdb_ldap.c
@@ -5119,8 +5119,8 @@ static NTSTATUS ldapsam_create_user(struct pdb_methods *my_methods,
homedir = talloc_sub_specified(tmp_ctx, lp_template_homedir(), name, ldap_state->domain_name, uid, gid);
shell = talloc_sub_specified(tmp_ctx, lp_template_shell(), name, ldap_state->domain_name, uid, gid);
}
- uidstr = talloc_asprintf(tmp_ctx, "%d", uid);
- gidstr = talloc_asprintf(tmp_ctx, "%d", gid);
+ uidstr = talloc_asprintf(tmp_ctx, "%u", (unsigned int)uid);
+ gidstr = talloc_asprintf(tmp_ctx, "%u", (unsigned int)gid);
escape_name = escape_rdn_val_string_alloc(name);
if (!escape_name) {
@@ -5329,7 +5329,7 @@ static NTSTATUS ldapsam_create_dom_group(struct pdb_methods *my_methods,
return NT_STATUS_UNSUCCESSFUL;
}
- gidstr = talloc_asprintf(tmp_ctx, "%d", gid);
+ gidstr = talloc_asprintf(tmp_ctx, "%u", (unsigned int)gid);
escape_name = escape_rdn_val_string_alloc(name);
if (!escape_name) {
@@ -5690,7 +5690,7 @@ static NTSTATUS ldapsam_set_primary_group(struct pdb_methods *my_methods,
DEBUG(0,("ldapsam_set_primary_group: failed to retrieve gid from user's group SID!\n"));
return NT_STATUS_UNSUCCESSFUL;
}
- gidstr = talloc_asprintf(mem_ctx, "%d", gid);
+ gidstr = talloc_asprintf(mem_ctx, "%u", (unsigned int)gid);
if (!gidstr) {
DEBUG(0,("ldapsam_set_primary_group: Out of Memory!\n"));
return NT_STATUS_NO_MEMORY;