s3: Remove redundant flag checks
authorVolker Lendecke <vl@samba.org>
Thu, 9 Sep 2010 00:56:55 +0000 (17:56 -0700)
committerVolker Lendecke <vl@samba.org>
Thu, 9 Sep 2010 04:19:23 +0000 (06:19 +0200)
We're checking these in the parent already (winbindd_pam_auth_send and
winbindd_pam_auth_crap_send). No point in doing it in the child as well

source3/winbindd/winbindd_pam.c

index 55764178502f810a915ddc2e5fe6bce0374fa4aa..2d2f466f80b86923727dbe3367d76b71aa361fa9 100644 (file)
@@ -1429,11 +1429,6 @@ enum winbindd_result winbindd_dual_pam_auth(struct winbindd_domain *domain,
        DEBUG(3, ("[%5lu]: dual pam auth %s\n", (unsigned long)state->pid,
                  state->request->data.auth.user));
 
-       if (!check_request_flags(state->request->flags)) {
-               result = NT_STATUS_INVALID_PARAMETER_MIX;
-               goto done;
-       }
-
        /* Parse domain and username */
 
        name_map_status = normalize_name_unmap(state->mem_ctx,
@@ -1693,11 +1688,6 @@ enum winbindd_result winbindd_dual_pam_auth_crap(struct winbindd_domain *domain,
        state->request->data.auth_crap.user[sizeof(state->request->data.auth_crap.user)-1]=0;
        state->request->data.auth_crap.domain[sizeof(state->request->data.auth_crap.domain)-1]=0;
 
-       if (!check_request_flags(state->request->flags)) {
-               result = NT_STATUS_INVALID_PARAMETER_MIX;
-               goto done;
-       }
-
        name_user = state->request->data.auth_crap.user;
 
        if (*state->request->data.auth_crap.domain) {