diff options
Diffstat (limited to 'source3')
-rw-r--r-- | source3/libsmb/clientgen.c | 1 | ||||
-rw-r--r-- | source3/smbwrapper/smbw.c | 4 |
2 files changed, 4 insertions, 1 deletions
diff --git a/source3/libsmb/clientgen.c b/source3/libsmb/clientgen.c index 70231e3c94..38b4b5ffeb 100644 --- a/source3/libsmb/clientgen.c +++ b/source3/libsmb/clientgen.c @@ -764,6 +764,7 @@ BOOL cli_send_tconX(struct cli_state *cli, fstrcpy(cli->share, share); + /* in user level security don't send a password now */ if (cli->sec_mode & 1) { passlen = 1; pass = ""; diff --git a/source3/smbwrapper/smbw.c b/source3/smbwrapper/smbw.c index 6b8796fb5d..a4d2033c49 100644 --- a/source3/smbwrapper/smbw.c +++ b/source3/smbwrapper/smbw.c @@ -427,7 +427,9 @@ struct smbw_server *smbw_server(char *server, char *share) if (!cli_session_setup(&c, username, password, strlen(password), password, strlen(password), - workgroup)) { + workgroup) && + /* try an anonymous login if it failed */ + !cli_session_setup(&c, "", "", 1,"", 0, workgroup)) { cli_shutdown(&c); errno = EPERM; return NULL; |