Lines Matching refs:pw
620 smb_passwd_t *pw; in smb_pwd_fgetent() local
637 pw = pwbuf->pw_pwd; in smb_pwd_fgetent()
638 bzero(pw, sizeof (smb_passwd_t)); in smb_pwd_fgetent()
639 pw->pw_uid = strtoul(argv[SMB_PWD_UID], 0, 10); in smb_pwd_fgetent()
640 (void) strlcpy(pw->pw_name, argv[SMB_PWD_NAME], sizeof (pw->pw_name)); in smb_pwd_fgetent()
643 pw->pw_flags |= SMB_PWF_DISABLE; in smb_pwd_fgetent()
645 (void) strcpy((char *)pw->pw_lmhash, SMB_PWD_DISABLE); in smb_pwd_fgetent()
646 (void) strcpy((char *)pw->pw_nthash, SMB_PWD_DISABLE); in smb_pwd_fgetent()
657 (char *)pw->pw_lmhash, SMBAUTH_HASH_SZ); in smb_pwd_fgetent()
659 pw->pw_flags |= SMB_PWF_LM; in smb_pwd_fgetent()
667 (char *)pw->pw_nthash, SMBAUTH_HASH_SZ); in smb_pwd_fgetent()
669 pw->pw_flags |= SMB_PWF_NT; in smb_pwd_fgetent()
735 smb_passwd_t *pw = pwbuf->pw_pwd; in smb_pwd_fputent() local
740 if ((pw->pw_flags & SMB_PWF_LM) == SMB_PWF_LM) { in smb_pwd_fputent()
741 (void) bintohex((char *)pw->pw_lmhash, SMBAUTH_HASH_SZ, in smb_pwd_fputent()
745 (void) strcpy(hex_lmhash, (char *)pw->pw_lmhash); in smb_pwd_fputent()
748 if ((pw->pw_flags & SMB_PWF_NT) == SMB_PWF_NT) { in smb_pwd_fputent()
749 (void) bintohex((char *)pw->pw_nthash, SMBAUTH_HASH_SZ, in smb_pwd_fputent()
753 (void) strcpy(hex_nthash, (char *)pw->pw_nthash); in smb_pwd_fputent()
756 rc = fprintf(fp, "%s:%u:%s:%s\n", pw->pw_name, pw->pw_uid, in smb_pwd_fputent()