summaryrefslogtreecommitdiff
path: root/source4/winbind/wb_samba3_cmd.c
diff options
context:
space:
mode:
authorMatthieu Patou <mat@matws.net>2010-03-03 23:29:15 +0300
committerMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>2010-03-09 17:20:31 +0100
commitbc766a9a8475344eb4556da91f68874523d1fe52 (patch)
tree7801f3108c584cd6de7f29d874d4eebae0c91f67 /source4/winbind/wb_samba3_cmd.c
parent238ff24341767230614a3931646df59c1cf87a52 (diff)
downloadsamba-bc766a9a8475344eb4556da91f68874523d1fe52.tar.gz
samba-bc766a9a8475344eb4556da91f68874523d1fe52.tar.bz2
samba-bc766a9a8475344eb4556da91f68874523d1fe52.zip
s4:winbind: stub implementation of WINBINDD_PAM_LOGOFF
Signed-off-by: Matthias Dieter Wallnöfer <mwallnoefer@yahoo.de>
Diffstat (limited to 'source4/winbind/wb_samba3_cmd.c')
-rw-r--r--source4/winbind/wb_samba3_cmd.c26
1 files changed, 26 insertions, 0 deletions
diff --git a/source4/winbind/wb_samba3_cmd.c b/source4/winbind/wb_samba3_cmd.c
index 2161c2f585..95ef7d14b9 100644
--- a/source4/winbind/wb_samba3_cmd.c
+++ b/source4/winbind/wb_samba3_cmd.c
@@ -592,6 +592,32 @@ static void lookupsid_recv_name(struct composite_context *ctx)
}
/*
+ This is a stub function in order to limit error message in the pam_winbind module
+*/
+NTSTATUS wbsrv_samba3_pam_logoff(struct wbsrv_samba3_call *s3call)
+{
+ NTSTATUS status;
+ struct winbindd_response *resp = &s3call->response;
+
+ status = NT_STATUS_OK;
+
+ DEBUG(5, ("wbsrv_samba3_pam_logoff called\n"));
+ DEBUG(10, ("Winbind logoff not implemented\n"));
+ resp->result = WINBINDD_OK;
+
+ WBSRV_SAMBA3_SET_STRING(resp->data.auth.nt_status_string,
+ nt_errstr(status));
+ WBSRV_SAMBA3_SET_STRING(resp->data.auth.error_string,
+ get_friendly_nt_error_msg(status));
+
+ resp->data.auth.pam_error = nt_status_to_pam(status);
+ resp->data.auth.nt_status = NT_STATUS_V(status);
+ DEBUG(5, ("wbsrv_samba3_pam_logoff called\n"));
+
+ return NT_STATUS_OK;
+}
+
+/*
Challenge-response authentication. This interface is used by
ntlm_auth and the smbd auth subsystem to pass NTLM authentication
requests along a common pipe to the domain controller.