summaryrefslogtreecommitdiffstats
path: root/source/smbd/reply.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
commit22d6c2c163dd578365bff85ef95abfa59fe356ea (patch)
treef9bef811b4058bb33cd9eef9e2d4a6e0884a3f9a /source/smbd/reply.c
parent02f154e729b0e8465d3e1e2ac794e6ab3844ce57 (diff)
downloadsamba-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/reply.c')
-rw-r--r--source/smbd/reply.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/source/smbd/reply.c b/source/smbd/reply.c
index 624dc59084d..dc604cf49b1 100644
--- a/source/smbd/reply.c
+++ b/source/smbd/reply.c
@@ -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();