From 953e07b7c43bc9bb7c7616180b1ba1730e22c59a Mon Sep 17 00:00:00 2001 From: Sumit Bose Date: Thu, 18 Feb 2010 11:39:39 +0100 Subject: Remove unneeded items from struct pam_data --- src/responder/pam/pamsrv_cmd.c | 18 ------------------ 1 file changed, 18 deletions(-) (limited to 'src/responder/pam') diff --git a/src/responder/pam/pamsrv_cmd.c b/src/responder/pam/pamsrv_cmd.c index 37aad829..254b18e5 100644 --- a/src/responder/pam/pamsrv_cmd.c +++ b/src/responder/pam/pamsrv_cmd.c @@ -1064,24 +1064,6 @@ static void pam_check_user_callback(void *ptr, int status, case 1: /* BINGO */ - preq->pd->pw_uid = - ldb_msg_find_attr_as_int(res->msgs[0], SYSDB_UIDNUM, -1); - if (preq->pd->pw_uid == -1) { - DEBUG(1, ("Failed to find uid for user [%s] in domain [%s].\n", - preq->pd->user, preq->pd->domain)); - preq->pd->pam_status = PAM_SYSTEM_ERR; - pam_reply(preq); - } - - preq->pd->gr_gid = - ldb_msg_find_attr_as_int(res->msgs[0], SYSDB_GIDNUM, -1); - if (preq->pd->gr_gid == -1) { - DEBUG(1, ("Failed to find gid for user [%s] in domain [%s].\n", - preq->pd->user, preq->pd->domain)); - preq->pd->pam_status = PAM_SYSTEM_ERR; - pam_reply(preq); - } - pam_dom_forwarder(preq); return; -- cgit