diff options
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; |