summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2004-01-06 00:32:24 +0000
committerAndrew Bartlett <abartlet@samba.org>2004-01-06 00:32:24 +0000
commit1fa073b55bca9bbc66b86e652e491cc44656071e (patch)
treec4604e747743cc220f59b2ebf5ed4a13fe733f6d /source3
parent25b483dfc3ef63852e811587742e6d22756ce462 (diff)
downloadsamba-1fa073b55bca9bbc66b86e652e491cc44656071e.tar.gz
samba-1fa073b55bca9bbc66b86e652e491cc44656071e.tar.bz2
samba-1fa073b55bca9bbc66b86e652e491cc44656071e.zip
Ensure that for wbinfo --set-auth-user, we actually use the domain.
Andrew Bartlett (This used to be commit 93a5d8079a0291be14517e437f8f0c964c21e91d)
Diffstat (limited to 'source3')
-rw-r--r--source3/nsswitch/winbindd_cm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/nsswitch/winbindd_cm.c b/source3/nsswitch/winbindd_cm.c
index bdbf80eb2f..2b561be31d 100644
--- a/source3/nsswitch/winbindd_cm.c
+++ b/source3/nsswitch/winbindd_cm.c
@@ -182,7 +182,7 @@ static NTSTATUS cm_open_connection(const struct winbindd_domain *domain, const i
if (!NT_STATUS_IS_OK(result = cli_session_setup_spnego(new_conn->cli, machine_krb5_principal,
machine_password,
- domain->name))) {
+ lp_workgroup()))) {
DEBUG(4,("failed kerberos session setup with %s\n", nt_errstr(result)));
}
}
@@ -202,7 +202,7 @@ static NTSTATUS cm_open_connection(const struct winbindd_domain *domain, const i
if (!cli_session_setup(new_conn->cli, ipc_username,
ipc_password, strlen(ipc_password)+1,
ipc_password, strlen(ipc_password)+1,
- domain->name)) {
+ ipc_domain)) {
result = cli_nt_error(new_conn->cli);
DEBUG(4,("failed authenticated session setup with %s\n", nt_errstr(result)));
if (NT_STATUS_IS_OK(result))