diff options
author | Gerald Carter <jerry@samba.org> | 2001-01-23 22:13:41 +0000 |
---|---|---|
committer | Gerald Carter <jerry@samba.org> | 2001-01-23 22:13:41 +0000 |
commit | 22d6c2c163dd578365bff85ef95abfa59fe356ea (patch) | |
tree | f9bef811b4058bb33cd9eef9e2d4a6e0884a3f9a /source/smbd/service.c | |
parent | 02f154e729b0e8465d3e1e2ac794e6ab3844ce57 (diff) | |
download | samba-22d6c2c163dd578365bff85ef95abfa59fe356ea.tar.gz samba-22d6c2c163dd578365bff85ef95abfa59fe356ea.tar.xz samba-22d6c2c163dd578365bff85ef95abfa59fe356ea.zip |
only add the service name and client machine name to list of users names
for a session when in share mode security
--jerry
Diffstat (limited to 'source/smbd/service.c')
-rw-r--r-- | source/smbd/service.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/source/smbd/service.c b/source/smbd/service.c index a6e66965c32..96f00eef129 100644 --- a/source/smbd/service.c +++ b/source/smbd/service.c @@ -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)) { |