summaryrefslogtreecommitdiff
path: root/source3/winbindd/winbindd_pam.c
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2008-08-25 13:15:41 +0200
committerGünther Deschner <gd@samba.org>2008-08-25 13:18:01 +0200
commit66fa77ba9ed50b114131b0c071dbe1fcb658b755 (patch)
tree665a885a23898785ee7f2df95b392bf516aae758 /source3/winbindd/winbindd_pam.c
parentfd5b2f42068b461052687b96b6032eb02db065d5 (diff)
downloadsamba-66fa77ba9ed50b114131b0c071dbe1fcb658b755.tar.gz
samba-66fa77ba9ed50b114131b0c071dbe1fcb658b755.tar.bz2
samba-66fa77ba9ed50b114131b0c071dbe1fcb658b755.zip
winbindd: move set_auth_errors to util functions.
Guenther (This used to be commit ae3fa60c4546c7420722d8f422c22bbfd623ff5b)
Diffstat (limited to 'source3/winbindd/winbindd_pam.c')
-rw-r--r--source3/winbindd/winbindd_pam.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/source3/winbindd/winbindd_pam.c b/source3/winbindd/winbindd_pam.c
index 4beef852e9..a7911f60aa 100644
--- a/source3/winbindd/winbindd_pam.c
+++ b/source3/winbindd/winbindd_pam.c
@@ -381,18 +381,6 @@ struct winbindd_domain *find_auth_domain(struct winbindd_cli_state *state,
return find_our_domain();
}
-static void set_auth_errors(struct winbindd_response *resp, NTSTATUS result)
-{
- resp->data.auth.nt_status = NT_STATUS_V(result);
- fstrcpy(resp->data.auth.nt_status_string, nt_errstr(result));
-
- /* we might have given a more useful error above */
- if (*resp->data.auth.error_string == '\0')
- fstrcpy(resp->data.auth.error_string,
- get_friendly_nt_error_msg(result));
- resp->data.auth.pam_error = nt_status_to_pam(result);
-}
-
static void fill_in_password_policy(struct winbindd_response *r,
const struct samr_DomInfo1 *p)
{