In security=user mode we must allow cli_connect_serverlist to connect to our
authorMatthew Chapman <matty@samba.org>
Mon, 18 Jan 1999 01:35:43 +0000 (01:35 +0000)
committerMatthew Chapman <matty@samba.org>
Mon, 18 Jan 1999 01:35:43 +0000 (01:35 +0000)
own smbd process, rather than complaining about a password server loop.
(This used to be commit 63d7822b9d87d085194de6895d3e271cedcd3c9a)

source3/libsmb/clientgen.c

index 688764fa7320f6c938c91de89a75a2c0bb0d8dc2..e269011402d07cbc968a76f9061a28fa512cc256 100644 (file)
@@ -2755,7 +2755,7 @@ BOOL cli_connect_serverlist(struct cli_state *cli, char *p)
                        continue;
                }   
 
-               if (ismyip(dest_ip))
+               if ((lp_security() != SEC_USER) && (ismyip(dest_ip)))
                {
                        DEBUG(1,("cli_connect_serverlist: Password server loop - not using password server %s\n", remote_machine));
                        continue;