git.samba.org
/
kai
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6b6bb48
)
With force user, we have the same base token for all vuids
author
Volker Lendecke
<vl@samba.org>
Sat, 10 May 2008 22:25:27 +0000
(
00:25
+0200)
committer
Volker Lendecke
<vl@samba.org>
Sat, 10 May 2008 22:25:27 +0000
(
00:25
+0200)
(This used to be commit
0f19bc3f65bfc132aea1de1e76fcb4ee625a050f
)
source3/smbd/uid.c
patch
|
blob
|
history
diff --git
a/source3/smbd/uid.c
b/source3/smbd/uid.c
index 004e48a44f25188f916d63057e492ec8694d841e..310ad4d23a93e61ed24cb2e067635c4b667956b0 100644
(file)
--- a/
source3/smbd/uid.c
+++ b/
source3/smbd/uid.c
@@
-109,7
+109,15
@@
static bool check_user_ok(connection_struct *conn, user_struct *vuser,int snum)
TALLOC_FREE(ent->server_info);
- ent->server_info = copy_serverinfo(conn, vuser->server_info);
+ /*
+ * If force_user was set, all server_info's are based on the same
+ * username-based faked one.
+ */
+
+ ent->server_info = copy_serverinfo(
+ conn,
+ conn->force_user ? conn->server_info : vuser->server_info);
+
if (ent->server_info == NULL) {
ent->vuid = UID_FIELD_INVALID;
return false;