diff options
author | Stefan Metzmacher <metze@samba.org> | 2009-05-26 16:38:45 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2009-06-03 17:54:37 +0200 |
commit | 75d03970b78538346308c612ca6be15559e15b5b (patch) | |
tree | 889269e996fffd10cfd3b9f0c359b97c48117f4b /source3/smbd/share_access.c | |
parent | 356f0336e558465318450da8936ebfef3f1f4eb1 (diff) | |
download | samba-75d03970b78538346308c612ca6be15559e15b5b.tar.gz samba-75d03970b78538346308c612ca6be15559e15b5b.tar.bz2 samba-75d03970b78538346308c612ca6be15559e15b5b.zip |
s3:smbd: move more session specific globals to struct smbd_server_connection
metze
Diffstat (limited to 'source3/smbd/share_access.c')
-rw-r--r-- | source3/smbd/share_access.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/smbd/share_access.c b/source3/smbd/share_access.c index c72251b5a7..5d779b9c81 100644 --- a/source3/smbd/share_access.c +++ b/source3/smbd/share_access.c @@ -18,6 +18,7 @@ */ #include "includes.h" +#include "smbd/globals.h" /* * No prefix means direct username @@ -72,6 +73,7 @@ static bool token_contains_name(TALLOC_CTX *mem_ctx, const char *prefix; DOM_SID sid; enum lsa_SidType type; + struct smbd_server_connection *sconn = smbd_server_conn; if (username != NULL) { name = talloc_sub_basic(mem_ctx, username, domain, name); @@ -128,7 +130,7 @@ static bool token_contains_name(TALLOC_CTX *mem_ctx, continue; } if (*prefix == '&') { - if (user_in_netgroup(username, name)) { + if (user_in_netgroup(sconn, username, name)) { return True; } continue; |