diff options
Diffstat (limited to 'source3/smbd')
-rw-r--r-- | source3/smbd/map_username.c | 2 | ||||
-rw-r--r-- | source3/smbd/password.c | 9 |
2 files changed, 5 insertions, 6 deletions
diff --git a/source3/smbd/map_username.c b/source3/smbd/map_username.c index dc5d48efaa..4d2a9db307 100644 --- a/source3/smbd/map_username.c +++ b/source3/smbd/map_username.c @@ -239,7 +239,7 @@ bool map_username(struct smbd_server_connection *sconn, fstring user) } if (strchr_m(dosname,'*') || - user_in_list(sconn, user, (const char **)dosuserlist)) { + user_in_list(user, (const char **)dosuserlist)) { DEBUG(3,("Mapped user %s to %s\n",user,unixname)); mapped_user = True; diff --git a/source3/smbd/password.c b/source3/smbd/password.c index 6919e8bb3a..95191af1be 100644 --- a/source3/smbd/password.c +++ b/source3/smbd/password.c @@ -459,8 +459,7 @@ bool user_in_netgroup(const char *user, const char *ngname) and netgroup lists. ****************************************************************************/ -bool user_in_list(struct smbd_server_connection *sconn, - const char *user,const char **list) +bool user_in_list(const char *user,const char **list) { if (!list || !*list) return False; @@ -558,7 +557,7 @@ static bool user_ok(struct smbd_server_connection *sconn, * around to pass to str_list_sub_basic() */ if ( invalid && str_list_sub_basic(invalid, "", "") ) { - ret = !user_in_list(sconn, user, + ret = !user_in_list(user, (const char **)invalid); } } @@ -575,7 +574,7 @@ static bool user_ok(struct smbd_server_connection *sconn, * around to pass to str_list_sub_basic() */ if ( valid && str_list_sub_basic(valid, "", "") ) { - ret = user_in_list(sconn, user, + ret = user_in_list(user, (const char **)valid); } } @@ -588,7 +587,7 @@ static bool user_ok(struct smbd_server_connection *sconn, if (user_list && str_list_substitute(user_list, "%S", lp_servicename(snum))) { - ret = user_in_list(sconn, user, + ret = user_in_list(user, (const char **)user_list); } TALLOC_FREE(user_list); |