• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/samba-3.0.13/source/utils/

Lines Matching defs:account

273 		DEBUG(0,("Could not fetch trust account password\n"));
300 sam_account_from_delta(SAM_ACCOUNT *account, SAM_ACCOUNT_INFO *delta)
311 old_string = pdb_get_nt_username(account);
315 pdb_set_nt_username(account, new_string, PDB_CHANGED);
320 old_string = pdb_get_username( account );
322 pdb_set_username(account, new_string, PDB_CHANGED);
327 old_string = pdb_get_fullname(account);
331 pdb_set_fullname(account, new_string, PDB_CHANGED);
335 old_string = pdb_get_homedir(account);
339 pdb_set_homedir(account, new_string, PDB_CHANGED);
343 old_string = pdb_get_dir_drive(account);
347 pdb_set_dir_drive(account, new_string, PDB_CHANGED);
351 old_string = pdb_get_logon_script(account);
355 pdb_set_logon_script(account, new_string, PDB_CHANGED);
359 old_string = pdb_get_acct_desc(account);
363 pdb_set_acct_desc(account, new_string, PDB_CHANGED);
367 old_string = pdb_get_workstations(account);
371 pdb_set_workstations(account, new_string, PDB_CHANGED);
375 old_string = pdb_get_profile_path(account);
379 pdb_set_profile_path(account, new_string, PDB_CHANGED);
384 old_string = pdb_get_munged_dial(account);
390 pdb_set_munged_dial(account, new_string, PDB_CHANGED);
394 if (pdb_get_user_rid(account) != delta->user_rid)
395 pdb_set_user_sid_from_rid(account, delta->user_rid, PDB_CHANGED);
396 if (pdb_get_group_rid(account) != delta->group_rid)
397 pdb_set_group_sid_from_rid(account, delta->group_rid, PDB_CHANGED);
402 stored_time = pdb_get_logon_time(account);
404 pdb_set_logon_time(account, unix_time, PDB_CHANGED);
409 stored_time = pdb_get_logoff_time(account);
411 pdb_set_logoff_time(account, unix_time,PDB_CHANGED);
415 if (pdb_get_logon_divs(account) != delta->logon_divs)
416 pdb_set_logon_divs(account, delta->logon_divs, PDB_CHANGED);
419 if (delta->unknown1 != pdb_get_unknown_6(account)) {
420 pdb_set_unknown_6(account, delta->unknown1, PDB_CHANGED);
424 if (delta->buf_logon_hrs.buf_len != pdb_get_hours_len(account)) {
425 pdb_set_hours_len(account, delta->buf_logon_hrs.buf_len, PDB_CHANGED);
431 pdb_sethexhours(old, pdb_get_hours(account));
434 pdb_set_hours(account, (const char *)delta->buf_logon_hrs.buffer, PDB_CHANGED);
437 if (pdb_get_bad_password_count(account) != delta->bad_pwd_count)
438 pdb_set_bad_password_count(account, delta->bad_pwd_count, PDB_CHANGED);
440 if (pdb_get_logon_count(account) != delta->logon_count)
441 pdb_set_logon_count(account, delta->logon_count, PDB_CHANGED);
445 stored_time = pdb_get_pass_last_set_time(account);
447 pdb_set_pass_last_set_time(account, unix_time, PDB_CHANGED);
450 pdb_set_pass_last_set_time(account, time(NULL), PDB_CHANGED);
457 stored_time = pdb_get_kickoff_time(account);
459 pdb_set_kickoff_time(account, unix_time, PDB_CHANGED);
470 pdb_set_lanman_passwd(account, lm_passwd, PDB_CHANGED);
475 pdb_set_nt_passwd(account, nt_passwd, PDB_CHANGED);
478 /* TODO: account expiry time */
480 if (pdb_get_acct_ctrl(account) != delta->acb_info)
481 pdb_set_acct_ctrl(account, delta->acb_info, PDB_CHANGED);
483 pdb_set_domain(account, lp_workgroup(), PDB_CHANGED);
491 fstring account;
501 fstrcpy(account, unistr2_static(&delta->uni_acct_name));
502 d_printf("Creating account: %s\n", account);
507 if (!(passwd = Get_Pwnam(account))) {
523 all_string_sub(add_script, "%u", account,
524 sizeof(account));
532 if ( !winbind_create_user( account, NULL ) )
536 /* try and find the possible unix account again */
537 if ( !(passwd = Get_Pwnam(account)) ) {
538 d_printf("Could not create posix account info for '%s'\n", account);
547 DEBUG(3, ("Attempting to find SID %s for user %s in the passdb\n", sid_to_string(sid_string, &user_sid), account));
554 account));
563 account));
586 DEBUG(1, ("No unix user for this account (%s), cannot adjust mappings\n",
996 /* we don't handle BUILTIN account policies */