mirror of
https://github.com/samba-team/samba.git
synced 2025-01-12 09:18:10 +03:00
only add the service name and client machine name to list of users names
for a session when in share mode security
--jerry
(This used to be commit 22d6c2c163
)
This commit is contained in:
parent
eee29958f5
commit
42571a656f
@ -115,7 +115,12 @@ int reply_special(char *inbuf,char *outbuf)
|
||||
break;
|
||||
}
|
||||
|
||||
add_session_user(remote_machine);
|
||||
/* only add the client's machine name to the list
|
||||
of possibly valid usernames if we are operating
|
||||
in share mode security */
|
||||
if (lp_security() == SEC_SHARE) {
|
||||
add_session_user(remote_machine);
|
||||
}
|
||||
|
||||
reload_services(True);
|
||||
reopen_logs();
|
||||
|
@ -301,8 +301,11 @@ connection_struct *make_connection(char *service,char *user,char *password, int
|
||||
/* lowercase the user name */
|
||||
strlower(user);
|
||||
|
||||
/* add it as a possible user name */
|
||||
add_session_user(service);
|
||||
/* add it as a possible user name if we
|
||||
are in share mode security */
|
||||
if (lp_security() == SEC_SHARE) {
|
||||
add_session_user(service);
|
||||
}
|
||||
|
||||
/* shall we let them in? */
|
||||
if (!authorise_login(snum,user,password,pwlen,&guest,&force,vuid)) {
|
||||
|
Loading…
Reference in New Issue
Block a user