git.samba.org
/
nivanova
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d923907
)
s3:net sam provision: compose sid before getting uid for Guest
author
Michael Adam
<obnox@samba.org>
Thu, 22 Jan 2009 11:20:46 +0000
(12:20 +0100)
committer
Michael Adam
<obnox@samba.org>
Sat, 14 Aug 2010 00:10:30 +0000
(
02:10
+0200)
Michael
source3/utils/net_sam.c
patch
|
blob
|
history
diff --git
a/source3/utils/net_sam.c
b/source3/utils/net_sam.c
index bd88a526029c3f4261a7c6e6f82519087cc7277e..44a0b79e185fe4b6c0f00c0d1f2ede401d87e3e5 100644
(file)
--- a/
source3/utils/net_sam.c
+++ b/
source3/utils/net_sam.c
@@
-1853,6
+1853,8
@@
doma_done:
d_printf(_("Adding the Guest user.\n"));
+ sid_compose(&sid, get_global_sam_sid(), DOMAIN_RID_GUEST);
+
pwd = getpwnam_alloc(tc, lp_guestaccount());
if (!pwd) {
@@
-1882,8
+1884,6
@@
doma_done:
}
}
- sid_compose(&sid, get_global_sam_sid(), DOMAIN_RID_GUEST);
-
dn = talloc_asprintf(tc, "uid=%s,%s", pwd->pw_name, lp_ldap_user_suffix ());
uidstr = talloc_asprintf(tc, "%u", (unsigned int)pwd->pw_uid);
gidstr = talloc_asprintf(tc, "%u", (unsigned int)pwd->pw_gid);