Changeset 228 for branches/samba-3.2.x/source/auth
- Timestamp:
- May 26, 2009, 9:44:50 AM (16 years ago)
- Location:
- branches/samba-3.2.x/source/auth
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/samba-3.2.x/source/auth/pampass.c
r133 r228 64 64 */ 65 65 #define COPY_STRING(s) (s) ? SMB_STRDUP(s) : NULL 66 #define COPY_FSTRING(s) (s[0]) ? SMB_STRDUP(s) : NULL 66 67 67 68 /******************************************************************* … … 328 329 #endif 329 330 reply[replies].resp_retcode = PAM_SUCCESS; 330 reply[replies].resp = COPY_ STRING(current_reply);331 reply[replies].resp = COPY_FSTRING(current_reply); 331 332 found = True; 332 333 break; … … 356 357 pwd_sub(current_reply, udp->PAM_username, udp->PAM_password, udp->PAM_newpassword); 357 358 reply[replies].resp_retcode = PAM_SUCCESS; 358 reply[replies].resp = COPY_ STRING(current_reply);359 reply[replies].resp = COPY_FSTRING(current_reply); 359 360 #ifdef DEBUG_PASSWORD 360 361 DEBUG(100,("smb_pam_passchange_conv: PAM_PROMPT_ECHO_OFF: We actualy sent: %s\n", current_reply)); -
branches/samba-3.2.x/source/auth/token_util.c
r136 r228 78 78 NT_USER_TOKEN *get_root_nt_token( void ) 79 79 { 80 struct nt_user_token *token = NULL;80 struct nt_user_token *token, *for_cache; 81 81 DOM_SID u_sid, g_sid; 82 82 struct passwd *pw; … … 108 108 token->privileges = se_disk_operators; 109 109 110 for_cache = token; 111 110 112 memcache_add_talloc( 111 113 NULL, SINGLETON_CACHE_TALLOC, 112 data_blob_string_const("root_nt_token"), token);114 data_blob_string_const("root_nt_token"), &for_cache); 113 115 114 116 return token;
Note:
See TracChangeset
for help on using the changeset viewer.