diff options
author | Stefan Metzmacher <metze@samba.org> | 2011-08-09 22:17:56 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2011-08-10 11:14:55 +0200 |
commit | d7cdd9651e4e849f19d791fd587f74ad76d370c8 (patch) | |
tree | aec1da106e9fc25175cc6b776bdfa73d07585c93 /source3 | |
parent | c6a3dedd99b57345af1b51bad560709319ec8caa (diff) | |
download | samba-d7cdd9651e4e849f19d791fd587f74ad76d370c8.tar.gz samba-d7cdd9651e4e849f19d791fd587f74ad76d370c8.tar.bz2 samba-d7cdd9651e4e849f19d791fd587f74ad76d370c8.zip |
s3:libsmb: pass remote_realm to cli_session_setup_spnego() in cli_session_setup()
metze
Diffstat (limited to 'source3')
-rw-r--r-- | source3/libsmb/cliconnect.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/libsmb/cliconnect.c b/source3/libsmb/cliconnect.c index f9e845d4e0..18b3ce41a4 100644 --- a/source3/libsmb/cliconnect.c +++ b/source3/libsmb/cliconnect.c @@ -2051,8 +2051,10 @@ NTSTATUS cli_session_setup(struct cli_state *cli, /* if the server supports extended security then use SPNEGO */ if (cli_state_capabilities(cli) & CAP_EXTENDED_SECURITY) { + const char *remote_realm = cli_state_remote_realm(cli); ADS_STATUS status = cli_session_setup_spnego(cli, user, pass, - workgroup, NULL); + workgroup, + remote_realm); if (!ADS_ERR_OK(status)) { DEBUG(3, ("SPNEGO login failed: %s\n", ads_errstr(status))); return ads_ntstatus(status); |