diff options
author | Andrew Bartlett <abartlet@samba.org> | 2002-07-26 13:05:29 +0000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2002-07-26 13:05:29 +0000 |
commit | a56490007479b3f23f5159bfb7545136c40dd1fd (patch) | |
tree | 754f4f497786ee52ce56d9ba44589b7148989733 /source3/libsmb | |
parent | f9558e5819f80734910f5830145cc263628eb779 (diff) | |
download | samba-a56490007479b3f23f5159bfb7545136c40dd1fd.tar.gz samba-a56490007479b3f23f5159bfb7545136c40dd1fd.tar.bz2 samba-a56490007479b3f23f5159bfb7545136c40dd1fd.zip |
Mimir has been busy with patches again, and sent in the following
patches:
Andrew Bartlett
From his e-mail:
Below I attach the following patches as a result of my work
on trusted domains support:
1) srv_samr_nt.c.diff
This fixes a bug which caused to return null string as
the first entry of enumerated accounts list (no matter what
entry, it was always null string and rid) and possibly
spoiled further names, depeding on their length.
I found that while testing my 'net rpc trustdom list'
against nt servers and samba server.
2) libsmb.diff
Now, fallback to anonymous connection works correctly.
3) smbpasswd.c.diff
Just a little fix which actually allows one to create
a trusting domain account using smbpasswd
4) typos.diff
As the name suggests, it's just a few typos fix :)
(This used to be commit 888d595fab4f6b28318b743f47378cb7ca35d479)
Diffstat (limited to 'source3/libsmb')
-rw-r--r-- | source3/libsmb/cliconnect.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/source3/libsmb/cliconnect.c b/source3/libsmb/cliconnect.c index d304da7f51..d29a6115fb 100644 --- a/source3/libsmb/cliconnect.c +++ b/source3/libsmb/cliconnect.c @@ -1191,9 +1191,8 @@ again: if (!cli_session_setup(cli, user, password, strlen(password)+1, password, strlen(password)+1, domain)) { - if (!(flags & CLI_FULL_CONNECTION_ANNONYMOUS_FALLBACK) - || cli_session_setup(cli, "", "", 0, - "", 0, domain)) { + if ((flags & CLI_FULL_CONNECTION_ANNONYMOUS_FALLBACK) + && cli_session_setup(cli, "", "", 0, "", 0, domain)) { } else { nt_status = cli_nt_error(cli); DEBUG(1,("failed session setup with %s\n", nt_errstr(nt_status))); |