Lines Matching refs:pwd
186 struct passwd *pwd;
206 pwd = sampass->unix_pw;
208 pwd = Get_Pwnam_alloc( sampass, pdb_get_username(sampass) );
211 if ( !pwd ) {
216 gid_to_sid(gsid, pwd->pw_gid);
239 if (pdb_gid_to_sid(pwd->pw_gid, gsid)) {
271 sid_string_dbg(gsid), pwd->pw_name, sid_type_lookup(type)));
871 bool pdb_set_nt_passwd(struct samu *sampass, const uint8 pwd[NT_HASH_LEN], enum pdb_value_state flag)
875 if (pwd) {
877 data_blob_talloc(sampass, pwd, NT_HASH_LEN);
889 bool pdb_set_lanman_passwd(struct samu *sampass, const uint8 pwd[LM_HASH_LEN], enum pdb_value_state flag)
895 if (pwd && lp_lanman_auth() ) {
896 sampass->lm_pw = data_blob_talloc(sampass, pwd, LM_HASH_LEN);
908 in pwd.
911 bool pdb_set_pw_history(struct samu *sampass, const uint8 *pwd, uint32 historyLen, enum pdb_value_state flag)
913 if (historyLen && pwd){
915 pwd, historyLen*PW_HISTORY_ENTRY_LEN);