summaryrefslogtreecommitdiff
path: root/source3/smbd/service.c
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2001-01-23 22:13:41 +0000
committerGerald Carter <jerry@samba.org>2001-01-23 22:13:41 +0000
commit42571a656f458d9a60850d08202b8daebdcb0bc1 (patch)
treebd50b9075e396a768f8f13d31473ebe313af0d57 /source3/smbd/service.c
parenteee29958f5cacc753f3fa324327e0d8b14ac3006 (diff)
downloadsamba-42571a656f458d9a60850d08202b8daebdcb0bc1.tar.gz
samba-42571a656f458d9a60850d08202b8daebdcb0bc1.tar.bz2
samba-42571a656f458d9a60850d08202b8daebdcb0bc1.zip
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 22d6c2c163dd578365bff85ef95abfa59fe356ea)
Diffstat (limited to 'source3/smbd/service.c')
-rw-r--r--source3/smbd/service.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/source3/smbd/service.c b/source3/smbd/service.c
index a6e66965c3..96f00eef12 100644
--- a/source3/smbd/service.c
+++ b/source3/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)) {