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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.