Changeset 596 for trunk/server/source3/auth/auth_util.c
- Timestamp:
- Jul 2, 2011, 3:35:33 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/server/source3/auth/auth_util.c
r480 r596 576 576 } 577 577 578 if ( !(pwd = getpwnam_alloc(result, username)) ) {578 if ( !(pwd = Get_Pwnam_alloc(result, username)) ) { 579 579 DEBUG(1, ("User %s in passdb, but getpwnam() fails!\n", 580 580 pdb_get_username(sampass))); … … 904 904 * username and will return the unix_pw info for a guest 905 905 * 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. 907 907 */ 908 908 909 909 /* We must always assign the *uid. */ 910 910 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 ); 912 912 if (!pwd) { 913 DEBUG(10, (" getpwnam_alloc failed for %s\n",913 DEBUG(10, ("Get_Pwnam_alloc failed for %s\n", 914 914 *found_username)); 915 915 result = NT_STATUS_NO_SUCH_USER; … … 1327 1327 NTSTATUS status; 1328 1328 1329 pwd = getpwnam_alloc(talloc_tos(), username);1329 pwd = Get_Pwnam_alloc(talloc_tos(), username); 1330 1330 if (pwd == NULL) { 1331 1331 return NT_STATUS_NO_SUCH_USER; … … 2024 2024 if (!pdb_set_pass_last_set_time( 2025 2025 sam_account, 2026 nt_time_to_unix(info->pass_last_set_time),2026 info->pass_last_set_time, 2027 2027 PDB_CHANGED)) { 2028 2028 TALLOC_FREE(result); … … 2032 2032 if (!pdb_set_pass_can_change_time( 2033 2033 sam_account, 2034 nt_time_to_unix(info->pass_can_change_time),2034 info->pass_can_change_time, 2035 2035 PDB_CHANGED)) { 2036 2036 TALLOC_FREE(result); … … 2040 2040 if (!pdb_set_pass_must_change_time( 2041 2041 sam_account, 2042 nt_time_to_unix(info->pass_must_change_time),2042 info->pass_must_change_time, 2043 2043 PDB_CHANGED)) { 2044 2044 TALLOC_FREE(result);
Note:
See TracChangeset
for help on using the changeset viewer.