git.samba.org
/
ira
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
3fa6943
)
Fix the last few format arg missmatches I missed.
author
Jeremy Allison
<jra@samba.org>
Tue, 12 May 2009 17:38:00 +0000
(10:38 -0700)
committer
Jeremy Allison
<jra@samba.org>
Tue, 12 May 2009 17:38:00 +0000
(10:38 -0700)
Jeremy.
source3/passdb/pdb_ldap.c
patch
|
blob
|
history
diff --git
a/source3/passdb/pdb_ldap.c
b/source3/passdb/pdb_ldap.c
index a8fdbdae336b888a2beee452d83dab72e421454b..c853258a34ebe47457a659d8b5c81d0cf703c210 100644
(file)
--- 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);
}
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) {
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;
}
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) {
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;
}
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;
if (!gidstr) {
DEBUG(0,("ldapsam_set_primary_group: Out of Memory!\n"));
return NT_STATUS_NO_MEMORY;