Ignore:
Timestamp:
Nov 29, 2012, 1:59:04 PM (13 years ago)
Author:
Silvan Scherrer
Message:

Samba Server: updated trunk to 3.6.9

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/server/source3/winbindd/winbindd_pam.c

    r745 r751  
    307307                                      &token->sids,
    308308                                      &token->num_sids,
    309                                       true, false);
     309                                      true);
    310310        if (!NT_STATUS_IS_OK(status)) {
    311311                TALLOC_FREE(frame);
     
    641641                                            service,
    642642                                            user,
     643                                            pass,
    643644                                            realm,
    644645                                            uid,
     
    958959                                                            service,
    959960                                                            state->request->data.auth.user,
     961                                                            state->request->data.auth.pass,
    960962                                                            domain->alt_name,
    961963                                                            uid,
     
    10791081                                  state->request->data.auth.user, name_domain, name_user, name_domain));
    10801082
    1081                         contact_domain = find_our_domain();
     1083                        result =  NT_STATUS_NO_SUCH_USER;
     1084                        goto done;
    10821085                }
    10831086        }
     
    11661169                        DEBUG(3,("could not open handle to NETLOGON pipe (error: %s)\n",
    11671170                                  nt_errstr(result)));
     1171                        if (NT_STATUS_EQUAL(result, NT_STATUS_IO_TIMEOUT)) {
     1172                                if (attempts > 0) {
     1173                                        DEBUG(3, ("This is the second problem for this "
     1174                                                "particular call, forcing the close of "
     1175                                                "this connection\n"));
     1176                                        invalidate_cm_connection(&domain->conn);
     1177                                } else {
     1178                                        DEBUG(3, ("First call to cm_connect_netlogon "
     1179                                                "has timed out, retrying\n"));
     1180                                        continue;
     1181                                }
     1182                        }
    11681183                        return result;
    11691184                }
     
    12211236                }
    12221237
    1223                 if (domain->can_do_samlogon_ex) {
     1238                if (domain->can_do_samlogon_ex && domain->can_do_validation6) {
    12241239                        result = rpccli_netlogon_sam_network_logon_ex(
    12251240                                        netlogon_pipe,
    12261241                                        mem_ctx,
    1227                                         0,
     1242                                        logon_parameters,
     1243                                        server,         /* server name */
     1244                                        username,       /* user name */
     1245                                        domainname,     /* target domain */
     1246                                        workstation,    /* workstation */
     1247                                        chal,
     1248                                        6,
     1249                                        lm_response,
     1250                                        nt_response,
     1251                                        info3);
     1252                } else {
     1253                        result = rpccli_netlogon_sam_network_logon(
     1254                                        netlogon_pipe,
     1255                                        mem_ctx,
     1256                                        logon_parameters,
    12281257                                        server,         /* server name */
    12291258                                        username,       /* user name */
     
    12351264                                        nt_response,
    12361265                                        info3);
    1237                 } else {
    1238                         result = rpccli_netlogon_sam_network_logon(
    1239                                         netlogon_pipe,
    1240                                         mem_ctx,
    1241                                         0,
    1242                                         server,         /* server name */
    1243                                         username,       /* user name */
    1244                                         domainname,     /* target domain */
    1245                                         workstation,    /* workstation */
    1246                                         chal,
    1247                                         domain->can_do_validation6 ? 6 : 3,
    1248                                         lm_response,
    1249                                         nt_response,
    1250                                         info3);
    12511266                }
    12521267
     
    13091324
    13101325                if ( NT_STATUS_EQUAL(result, NT_STATUS_ACCESS_DENIED) ) {
    1311                         DEBUG(3,("winbindd_pam_auth: sam_logon returned "
     1326                        DEBUG(3,("winbind_samlogon_retry_loop: sam_logon returned "
    13121327                                 "ACCESS_DENIED.  Maybe the trust account "
    13131328                                "password was changed and we didn't know it. "
     
    13201335        } while ( (attempts < 2) && retry );
    13211336
     1337        if (NT_STATUS_EQUAL(result, NT_STATUS_IO_TIMEOUT)) {
     1338                DEBUG(3,("winbind_samlogon_retry_loop: sam_network_logon(ex) "
     1339                                "returned NT_STATUS_IO_TIMEOUT after the retry."
     1340                                "Killing connections to domain %s\n",
     1341                        domainname));
     1342                invalidate_cm_connection(&domain->conn);
     1343        }
    13221344        return result;
    13231345}
     
    20862108        }
    20872109
     2110        /*
     2111         * Remove any mlock'ed memory creds in the child
     2112         * we might be using for krb5 ticket renewal.
     2113         */
     2114
     2115        winbindd_delete_memory_creds(state->request->data.logoff.user);
     2116
    20882117#else
    20892118        result = NT_STATUS_NOT_SUPPORTED;
Note: See TracChangeset for help on using the changeset viewer.