search for: pdb_get_acct_ctrl

Displaying 2 results from an estimated 2 matches for "pdb_get_acct_ctrl".

2003 Aug 08
0
smbpasswd -m, changing account to a machine account.
.../Users/bzfproha/passdb-my.c Fri Aug 8 18:11:19 2003 @@ -1001,6 +1001,13 @@ } } + /* Assure that the workstation trust account flag is properly updated. + */ + if (local_flags & LOCAL_TRUST_ACCOUNT) { + pdb_set_acct_ctrl(sam_pass,(pdb_get_acct_ctrl(sam_pass)|ACB_WSTRUST)&(~A CB_NORMAL)); + } else { + pdb_set_acct_ctrl(sam_pass,(pdb_get_acct_ctrl(sam_pass)|ACB_NORMAL)&(~AC B_WSTRUST)); + } if(!pdb_update_sam_account(sam_pass, True)) { slprintf(err_str, err_str_len-1, "Failed...
2004 Mar 15
0
join domain without root
...er_info_pw: EUID %d for rid=%d(=0x%x), with become_root\n", geteuid(), rid, rid)); + } + } + } + + if (do_become_root) become_root(); + ret = pdb_getsampwrid(pwd, rid); + if (do_become_root) unbecome_root(); + if (ret != True) { pdb_free_sam(pwd); return False; } acct_ctrl = pdb_get_acct_ctrl(pwd); + if (do_become_root) { + char *username, *hostname, *s; + username = pdb_get_username(pwd); + DEBUG(0, ("set_user_info_pw: EUID %d for %s, with become_root\n", geteuid(), username)); + if ( !(acct_ctrl & ACB_WSTRUST) ) { + DEBUG(0, ("set_user_info_pw: Not a machine...