From 42571a656f458d9a60850d08202b8daebdcb0bc1 Mon Sep 17 00:00:00 2001 From: Gerald Carter Date: Tue, 23 Jan 2001 22:13:41 +0000 Subject: 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) --- source3/smbd/reply.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'source3/smbd/reply.c') diff --git a/source3/smbd/reply.c b/source3/smbd/reply.c index 624dc59084..dc604cf49b 100644 --- a/source3/smbd/reply.c +++ b/source3/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(); -- cgit