Searched refs:smbpw (Results 1 – 4 of 4) sorted by relevance
/illumos-gate/usr/src/lib/smbsrv/libsmb/common/ |
H A D | smb_pwdutil.c | 256 smb_pwd_getpwnam(const char *name, smb_passwd_t *smbpw) in smb_pwd_getpwnam() argument 264 return (smb_pwd_ops.pwop_getpwnam(name, smbpw)); in smb_pwd_getpwnam() 278 pwbuf.pw_pwd = smbpw; in smb_pwd_getpwnam() 281 if (strcasecmp(name, smbpw->pw_name) == 0) { in smb_pwd_getpwnam() 291 bzero(smbpw, sizeof (smb_passwd_t)); in smb_pwd_getpwnam() 295 return (smbpw); in smb_pwd_getpwnam() 307 smb_pwd_getpwuid(uid_t uid, smb_passwd_t *smbpw) in smb_pwd_getpwuid() argument 315 return (smb_pwd_ops.pwop_getpwuid(uid, smbpw)); in smb_pwd_getpwuid() 329 pwbuf.pw_pwd = smbpw; in smb_pwd_getpwuid() 332 if (uid == smbpw->pw_uid) { in smb_pwd_getpwuid() [all …]
|
H A D | smb_sam.c | 212 smb_passwd_t smbpw; in smb_sam_lookup_sid() local 259 if (smb_pwd_getpwuid(id, &smbpw) == NULL) in smb_sam_lookup_sid() 262 account->a_name = strdup(smbpw.pw_name); in smb_sam_lookup_sid() 263 account->a_flags = smbpw.pw_flags; in smb_sam_lookup_sid() 515 smb_passwd_t smbpw; in smb_sam_lookup_user() local 517 if (smb_pwd_getpwnam(name, &smbpw) == NULL) in smb_sam_lookup_user() 520 if (smb_idmap_getsid(smbpw.pw_uid, SMB_IDMAP_USER, sid) in smb_sam_lookup_user()
|
H A D | smb_auth.c | 519 smb_passwd_t *smbpw, in smb_auth_validate() argument 547 smbpw->pw_nthash, nt_resp, nt_len, in smb_auth_validate() 560 ok = smb_ntlm_password_ok(challenge, smbpw->pw_nthash, in smb_auth_validate() 576 (void) smb_auth_md4(session_key, smbpw->pw_nthash, in smb_auth_validate() 578 ok = smb_lmv2_password_ok(challenge, smbpw->pw_nthash, in smb_auth_validate() 582 ok = smb_lm_password_ok(challenge, smbpw->pw_lmhash, lm_resp); in smb_auth_validate()
|
/illumos-gate/usr/src/lib/smbsrv/libmlsvc/common/ |
H A D | smb_logon.c | 537 smb_passwd_t smbpw; in smb_logon_local() local 555 status = smb_token_auth_local(user_info, token, &smbpw); in smb_logon_local() 557 status = smb_token_setup_local(&smbpw, token); in smb_logon_local() 577 smb_passwd_t smbpw; in smb_logon_guest() local 587 if (smb_pwd_getpwnam(guest, &smbpw) == NULL) in smb_logon_guest() 591 if (smbpw.pw_flags & SMB_PWF_DISABLE) in smb_logon_guest() 623 smb_passwd_t *smbpw) in smb_token_auth_local() argument 628 if (smb_pwd_getpwnam(user_info->lg_e_username, smbpw) == NULL) in smb_token_auth_local() 631 if (smbpw->pw_flags & SMB_PWF_DISABLE) in smb_token_auth_local() 634 if ((smbpw->pw_flags & (SMB_PWF_LM | SMB_PWF_NT)) == 0) { in smb_token_auth_local() [all …]
|