Lines Matching refs:pwd
630 struct smb_passwd *pwd = NULL;
655 while ((pwd = getsmbfilepwent(smbpasswd_state, fp)) != NULL) {
656 if (strequal(newpwd->smb_name, pwd->smb_name)) {
657 DEBUG(0, ("add_smbfilepwd_entry: entry with name %s already exists\n", pwd->smb_name));
725 static bool mod_smbfilepwd_entry(struct smbpasswd_privates *smbpasswd_state, const struct smb_passwd* pwd)
846 if (strequal(user_name, pwd->smb_name)) {
857 pwd->smb_name));
861 DEBUG(6, ("mod_smbfilepwd_entry: entry exists for user %s\n", pwd->smb_name));
868 pwd->smb_name));
879 pwd->smb_name));
897 pwd->smb_name));
905 pwd->smb_name));
915 pwd->smb_name));
923 pwd->smb_name));
951 fstrcpy(encode_bits, pdb_encode_acct_ctrl(pwd->acct_ctrl, NEW_PW_FORMAT_SPACE_PADDED_LEN));
954 This is no longer supported.!\n", pwd->smb_name));
992 pdb_sethexpwd(ascii_p16, pwd->smb_passwd, pwd->acct_ctrl);
997 pdb_sethexpwd(ascii_p16+33, pwd->smb_nt_passwd, pwd->acct_ctrl);
1006 encode_bits, (uint32)pwd->pass_last_set_time );
1082 struct smb_passwd *pwd = NULL;
1118 while ((pwd = getsmbfilepwent(smbpasswd_state, fp)) != NULL) {
1122 if (strequal(name, pwd->smb_name)) {
1132 if((new_entry = format_new_smbpasswd_entry(pwd)) == NULL) {
1134 Error was %s\n", pwd->smb_name, pfile2, strerror(errno)));
1145 Error was %s\n", pwd->smb_name, pfile2, strerror(errno)));
1593 struct smb_passwd *pwd;
1612 while ((pwd = getsmbfilepwent(smbpasswd_state, fp)) != NULL) {
1617 && ((acct_flags & pwd->acct_ctrl) == 0)) {
1627 if (!build_sam_account(smbpasswd_state, user, pwd)) {