Ignore:
Timestamp:
Jul 2, 2011, 3:35:33 PM (14 years ago)
Author:
Herwig Bauernfeind
Message:

Samba 3.5: Update trunk to 3.5.8

Location:
trunk/server/source3/auth
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/server/source3/auth/auth_domain.c

    r414 r596  
    311311                                                      user_info->wksta_name,      /* workstation name */
    312312                                                      chal,                       /* 8 byte challenge. */
     313                                                      3,                          /* validation level */
    313314                                                      user_info->lm_resp,         /* lanman 24 byte response */
    314315                                                      user_info->nt_resp,         /* nt 24 byte response */
  • trunk/server/source3/auth/auth_netlogond.c

    r414 r596  
    8686                user_info->wksta_name,      /* workstation name */
    8787                (uchar *)auth_context->challenge.data, /* 8 byte challenge. */
     88                3,                          /* validation level */
    8889                user_info->lm_resp,         /* lanman 24 byte response */
    8990                user_info->nt_resp,         /* nt 24 byte response */
  • trunk/server/source3/auth/auth_ntlmssp.c

    r414 r596  
    127127        auth_ntlmssp_state->server_info->nss_token |= username_was_mapped;
    128128
    129         nt_status = create_local_token(auth_ntlmssp_state->server_info);
    130 
    131         if (!NT_STATUS_IS_OK(nt_status)) {
    132                 DEBUG(10, ("create_local_token failed: %s\n",
    133                         nt_errstr(nt_status)));
    134                 return nt_status;
     129        if (auth_ntlmssp_state->server_info->ptok == NULL) {
     130                nt_status = create_local_token(auth_ntlmssp_state->server_info);
     131                if (!NT_STATUS_IS_OK(nt_status)) {
     132                        DEBUG(10, ("create_local_token failed: %s\n",
     133                                   nt_errstr(nt_status)));
     134                        return nt_status;
     135                }
    135136        }
    136137
  • trunk/server/source3/auth/auth_util.c

    r480 r596  
    576576        }
    577577
    578         if ( !(pwd = getpwnam_alloc(result, username)) ) {
     578        if ( !(pwd = Get_Pwnam_alloc(result, username)) ) {
    579579                DEBUG(1, ("User %s in passdb, but getpwnam() fails!\n",
    580580                          pdb_get_username(sampass)));
     
    904904                 * username and will return the unix_pw info for a guest
    905905                 * user. Use it if it's there, else lookup the *uid details
    906                  * using getpwnam_alloc(). See bug #6291 for details. JRA.
     906                 * using Get_Pwnam_alloc(). See bug #6291 for details. JRA.
    907907                 */
    908908
    909909                /* We must always assign the *uid. */
    910910                if (sam_acct->unix_pw == NULL) {
    911                         struct passwd *pwd = getpwnam_alloc(sam_acct, *found_username );
     911                        struct passwd *pwd = Get_Pwnam_alloc(sam_acct, *found_username );
    912912                        if (!pwd) {
    913                                 DEBUG(10, ("getpwnam_alloc failed for %s\n",
     913                                DEBUG(10, ("Get_Pwnam_alloc failed for %s\n",
    914914                                        *found_username));
    915915                                result = NT_STATUS_NO_SUCH_USER;
     
    13271327        NTSTATUS status;
    13281328
    1329         pwd = getpwnam_alloc(talloc_tos(), username);
     1329        pwd = Get_Pwnam_alloc(talloc_tos(), username);
    13301330        if (pwd == NULL) {
    13311331                return NT_STATUS_NO_SUCH_USER;
     
    20242024        if (!pdb_set_pass_last_set_time(
    20252025                    sam_account,
    2026                     nt_time_to_unix(info->pass_last_set_time),
     2026                    info->pass_last_set_time,
    20272027                    PDB_CHANGED)) {
    20282028                TALLOC_FREE(result);
     
    20322032        if (!pdb_set_pass_can_change_time(
    20332033                    sam_account,
    2034                     nt_time_to_unix(info->pass_can_change_time),
     2034                    info->pass_can_change_time,
    20352035                    PDB_CHANGED)) {
    20362036                TALLOC_FREE(result);
     
    20402040        if (!pdb_set_pass_must_change_time(
    20412041                    sam_account,
    2042                     nt_time_to_unix(info->pass_must_change_time),
     2042                    info->pass_must_change_time,
    20432043                    PDB_CHANGED)) {
    20442044                TALLOC_FREE(result);
Note: See TracChangeset for help on using the changeset viewer.