Lines Matching refs:smbpw

251  * smbpw is a pointer to a buffer allocated by the caller.
256 smb_pwd_getpwnam(const char *name, smb_passwd_t *smbpw)
264 return (smb_pwd_ops.pwop_getpwnam(name, smbpw));
278 pwbuf.pw_pwd = smbpw;
281 if (strcmp(name, smbpw->pw_name) == 0) {
291 bzero(smbpw, sizeof (smb_passwd_t));
295 return (smbpw);
302 * smbpw is a pointer to a buffer allocated by the caller.
307 smb_pwd_getpwuid(uid_t uid, smb_passwd_t *smbpw)
315 return (smb_pwd_ops.pwop_getpwuid(uid, smbpw));
329 pwbuf.pw_pwd = smbpw;
332 if (uid == smbpw->pw_uid) {
342 bzero(smbpw, sizeof (smb_passwd_t));
346 return (smbpw);
480 smb_passwd_t smbpw;
519 pwbuf.pw_pwd = &smbpw;
526 if (strcmp(smbpw.pw_name, name) == 0) {
527 err = smb_pwd_chgpwent(&smbpw, password, control);
545 bzero(&smbpw, sizeof (smb_passwd_t));
546 (void) strlcpy(smbpw.pw_name, uxpw.pw_name,
547 sizeof (smbpw.pw_name));
548 smbpw.pw_uid = uxpw.pw_uid;
549 (void) smb_pwd_chgpwent(&smbpw, password, control);
678 smb_pwd_chgpwent(smb_passwd_t *smbpw, const char *password, int control)
682 smbpw->pw_flags |= SMB_PWF_DISABLE;
683 (void) strcpy((char *)smbpw->pw_lmhash, SMB_PWD_DISABLE);
684 (void) strcpy((char *)smbpw->pw_nthash, SMB_PWD_DISABLE);
685 smbpw->pw_flags &= ~(SMB_PWF_LM | SMB_PWF_NT);
689 if ((control & SMB_PWC_ENABLE) && (smbpw->pw_flags & SMB_PWF_DISABLE)) {
691 *smbpw->pw_lmhash = '\0';
692 *smbpw->pw_nthash = '\0';
693 smbpw->pw_flags &= ~(SMB_PWF_LM | SMB_PWF_NT);
698 if (smbpw->pw_flags & SMB_PWF_DISABLE)
707 smbpw->pw_flags &= ~SMB_PWF_LM;
708 *smbpw->pw_lmhash = '\0';
710 smbpw->pw_flags |= SMB_PWF_LM;
711 (void) smb_auth_lm_hash(password, smbpw->pw_lmhash);
714 smbpw->pw_flags |= SMB_PWF_NT;
715 (void) smb_auth_ntlm_hash(password, smbpw->pw_nthash);
1001 smb_passwd_t smbpw;
1026 pwbuf.pw_pwd = &smbpw;
1031 uc_node.cn_user.su_name = smbpw.pw_name;
1035 uc_newnode->cn_user.su_ctrl = smbpw.pw_flags;
1047 user->su_ctrl = smbpw.pw_flags;
1049 idm_stat = smb_idmap_getsid(smbpw.pw_uid, SMB_IDMAP_USER, &sid);
1052 "for uid=%u (%d)", smbpw.pw_uid, idm_stat);
1059 user->su_name = strdup(smbpw.pw_name);