From 75cace04fdcb672cc6c3c3ec8403206f2b222c50 Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Thu, 1 May 2003 11:47:48 +0000 Subject: *id_to_*id call reshape to return NTSTATUS errors plus internal fixes 1st stage (This used to be commit 6d036761e565bc93964bb3c939d5b7d78d5778a3) --- source3/pam_smbpass/support.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3/pam_smbpass/support.c') diff --git a/source3/pam_smbpass/support.c b/source3/pam_smbpass/support.c index d3232237ac..32aba7dd5b 100644 --- a/source3/pam_smbpass/support.c +++ b/source3/pam_smbpass/support.c @@ -399,7 +399,7 @@ int _smb_verify_password( pam_handle_t * pamh, SAM_ACCOUNT *sampass, service ? service : "**unknown**", name); new->count = 1; } - if (!sid_to_uid(pdb_get_user_sid(sampass), &(new->id))) { + if (NT_STATUS_IS_ERR(sid_to_uid(pdb_get_user_sid(sampass, &(new->id), &type)))) { _log_err(LOG_NOTICE, "failed auth request by %s for service %s as %s", uidtoname(getuid()), -- cgit