Home
last modified time | relevance | path

Searched refs:spw (Results 1 – 25 of 276) sorted by relevance

12345678910>>...12

/dports/security/gnome-ssh-askpass/openssh-6.6p1/
H A Dauth-shadow.c56 auth_shadow_acctexpired(struct spwd *spw) in auth_shadow_acctexpired() argument
63 daysleft = spw->sp_expire - today; in auth_shadow_acctexpired()
65 (int)spw->sp_expire, daysleft); in auth_shadow_acctexpired()
67 if (spw->sp_expire == -1) { in auth_shadow_acctexpired()
72 } else if (daysleft <= spw->sp_warn) { in auth_shadow_acctexpired()
90 struct spwd *spw = NULL; in auth_shadow_pwexpired() local
103 (int)spw->sp_lstchg, (int)spw->sp_max); in auth_shadow_pwexpired()
121 daysleft = spw->sp_lstchg + spw->sp_max - today; in auth_shadow_pwexpired()
124 } else if (spw->sp_lstchg == 0) { in auth_shadow_pwexpired()
127 } else if (spw->sp_max == -1) { in auth_shadow_pwexpired()
[all …]
/dports/security/openssh-portable/openssh-8.8p1/
H A Dauth-shadow.c56 auth_shadow_acctexpired(struct spwd *spw) in auth_shadow_acctexpired() argument
63 daysleft = spw->sp_expire - today; in auth_shadow_acctexpired()
65 (int)spw->sp_expire, daysleft); in auth_shadow_acctexpired()
67 if (spw->sp_expire == -1) { in auth_shadow_acctexpired()
72 } else if (daysleft <= spw->sp_warn) { in auth_shadow_acctexpired()
90 struct spwd *spw = NULL; in auth_shadow_pwexpired() local
102 (int)spw->sp_lstchg, (int)spw->sp_max); in auth_shadow_pwexpired()
120 daysleft = spw->sp_lstchg + spw->sp_max - today; in auth_shadow_pwexpired()
123 } else if (spw->sp_lstchg == 0) { in auth_shadow_pwexpired()
126 } else if (spw->sp_max == -1) { in auth_shadow_pwexpired()
[all …]
/dports/security/sudo/sudo-1.9.8p2/plugins/sudoers/
H A Dgetspwuid.c76 struct passwd *spw; in sudo_getepw() local
80 if ((spw = getpwnam_shadow(pw->pw_name)) != NULL) in sudo_getepw()
81 epw = spw->pw_passwd; in sudo_getepw()
87 struct pr_passwd *spw; in sudo_getepw() local
89 if ((spw = getprpwnam(pw->pw_name)) && spw->ufld.fd_encrypt) { in sudo_getepw()
91 crypt_type = spw->ufld.fd_oldcrypt; in sudo_getepw()
93 epw = spw->ufld.fd_encrypt; in sudo_getepw()
99 struct spwd *spw; in sudo_getepw() local
101 if ((spw = getspnam(pw->pw_name)) && spw->sp_pwdp) in sudo_getepw()
102 epw = spw->sp_pwdp; in sudo_getepw()
/dports/ftp/pure-ftpd/pure-ftpd-1.0.50/src/
H A Dlog_unix.c19 struct spwd *spw; in pw_unix_check() local
60 (spw = getspnam(account)) != NULL && spw->sp_pwdp != NULL) { in pw_unix_check()
61 cpwd = spw->sp_pwdp[0] == '@' ? NULL : spw->sp_pwdp; in pw_unix_check()
62 if (spw->sp_expire > 0 || spw->sp_max > 0) { in pw_unix_check()
65 if (spw->sp_expire > 0 && spw->sp_expire < today) { in pw_unix_check()
68 if (spw->sp_max > 0 && spw->sp_lstchg > 0 && in pw_unix_check()
69 (spw->sp_lstchg + spw->sp_max < today)) { in pw_unix_check()
/dports/net/xrdp-devel/xrdp-0.9.16/sesman/
H A Dverify_user.c60 struct passwd *spw; in auth_userpass() local
63 spw = getpwnam(user); in auth_userpass()
65 if (spw == 0) in auth_userpass()
91 encr = spw->pw_passwd; in auth_userpass()
135 struct passwd *spw; in auth_check_pwd_chg() local
140 spw = getpwnam(user); in auth_check_pwd_chg()
142 if (spw == 0) in auth_check_pwd_chg()
192 struct passwd *spw; in auth_change_pwd() local
205 spw = getpwnam(user); in auth_change_pwd()
207 if (spw == 0) in auth_change_pwd()
[all …]
/dports/x11-drivers/xorgxrdp/xrdp-0.9.17/sesman/
H A Dverify_user.c60 struct passwd *spw; in auth_userpass() local
63 spw = getpwnam(user); in auth_userpass()
65 if (spw == 0) in auth_userpass()
91 encr = spw->pw_passwd; in auth_userpass()
135 struct passwd *spw; in auth_check_pwd_chg() local
140 spw = getpwnam(user); in auth_check_pwd_chg()
142 if (spw == 0) in auth_check_pwd_chg()
192 struct passwd *spw; in auth_change_pwd() local
205 spw = getpwnam(user); in auth_change_pwd()
207 if (spw == 0) in auth_change_pwd()
[all …]
/dports/security/courier-authlib-base/courier-authlib-0.71.4/
H A Dpreauthshadow.c33 struct spwd *spw; in auth_shadow_pre() local
44 if ((spw=getspnam(userid)) == NULL) in auth_shadow_pre()
52 if ((spw->sp_expire > 0) && (today > spw->sp_expire)) in auth_shadow_pre()
58 if ((spw->sp_lstchg != -1) && (spw->sp_max != -1) && in auth_shadow_pre()
59 ((spw->sp_lstchg + spw->sp_max) < today)) in auth_shadow_pre()
70 auth.passwd=spw->sp_pwdp; in auth_shadow_pre()
/dports/databases/courier-authlib-pgsql/courier-authlib-0.71.4/
H A Dpreauthshadow.c33 struct spwd *spw; in auth_shadow_pre() local
44 if ((spw=getspnam(userid)) == NULL) in auth_shadow_pre()
52 if ((spw->sp_expire > 0) && (today > spw->sp_expire)) in auth_shadow_pre()
58 if ((spw->sp_lstchg != -1) && (spw->sp_max != -1) && in auth_shadow_pre()
59 ((spw->sp_lstchg + spw->sp_max) < today)) in auth_shadow_pre()
70 auth.passwd=spw->sp_pwdp; in auth_shadow_pre()
/dports/databases/courier-authlib-mysql/courier-authlib-0.71.4/
H A Dpreauthshadow.c33 struct spwd *spw; in auth_shadow_pre() local
44 if ((spw=getspnam(userid)) == NULL) in auth_shadow_pre()
52 if ((spw->sp_expire > 0) && (today > spw->sp_expire)) in auth_shadow_pre()
58 if ((spw->sp_lstchg != -1) && (spw->sp_max != -1) && in auth_shadow_pre()
59 ((spw->sp_lstchg + spw->sp_max) < today)) in auth_shadow_pre()
70 auth.passwd=spw->sp_pwdp; in auth_shadow_pre()
/dports/databases/courier-authlib-sqlite/courier-authlib-0.71.4/
H A Dpreauthshadow.c33 struct spwd *spw; in auth_shadow_pre() local
44 if ((spw=getspnam(userid)) == NULL) in auth_shadow_pre()
52 if ((spw->sp_expire > 0) && (today > spw->sp_expire)) in auth_shadow_pre()
58 if ((spw->sp_lstchg != -1) && (spw->sp_max != -1) && in auth_shadow_pre()
59 ((spw->sp_lstchg + spw->sp_max) < today)) in auth_shadow_pre()
70 auth.passwd=spw->sp_pwdp; in auth_shadow_pre()
/dports/net/courier-authlib-ldap/courier-authlib-0.71.4/
H A Dpreauthshadow.c33 struct spwd *spw; in auth_shadow_pre() local
44 if ((spw=getspnam(userid)) == NULL) in auth_shadow_pre()
52 if ((spw->sp_expire > 0) && (today > spw->sp_expire)) in auth_shadow_pre()
58 if ((spw->sp_lstchg != -1) && (spw->sp_max != -1) && in auth_shadow_pre()
59 ((spw->sp_lstchg + spw->sp_max) < today)) in auth_shadow_pre()
70 auth.passwd=spw->sp_pwdp; in auth_shadow_pre()
/dports/mail/courier-authlib-vchkpw/courier-authlib-0.71.4/
H A Dpreauthshadow.c33 struct spwd *spw; in auth_shadow_pre() local
44 if ((spw=getspnam(userid)) == NULL) in auth_shadow_pre()
52 if ((spw->sp_expire > 0) && (today > spw->sp_expire)) in auth_shadow_pre()
58 if ((spw->sp_lstchg != -1) && (spw->sp_max != -1) && in auth_shadow_pre()
59 ((spw->sp_lstchg + spw->sp_max) < today)) in auth_shadow_pre()
70 auth.passwd=spw->sp_pwdp; in auth_shadow_pre()
/dports/databases/courier-authlib-userdb/courier-authlib-0.71.4/
H A Dpreauthshadow.c33 struct spwd *spw; in auth_shadow_pre() local
44 if ((spw=getspnam(userid)) == NULL) in auth_shadow_pre()
52 if ((spw->sp_expire > 0) && (today > spw->sp_expire)) in auth_shadow_pre()
58 if ((spw->sp_lstchg != -1) && (spw->sp_max != -1) && in auth_shadow_pre()
59 ((spw->sp_lstchg + spw->sp_max) < today)) in auth_shadow_pre()
70 auth.passwd=spw->sp_pwdp; in auth_shadow_pre()
/dports/databases/courier-authlib-usergdbm/courier-authlib-0.71.4/
H A Dpreauthshadow.c33 struct spwd *spw; in auth_shadow_pre() local
44 if ((spw=getspnam(userid)) == NULL) in auth_shadow_pre()
52 if ((spw->sp_expire > 0) && (today > spw->sp_expire)) in auth_shadow_pre()
58 if ((spw->sp_lstchg != -1) && (spw->sp_max != -1) && in auth_shadow_pre()
59 ((spw->sp_lstchg + spw->sp_max) < today)) in auth_shadow_pre()
70 auth.passwd=spw->sp_pwdp; in auth_shadow_pre()
/dports/security/pam_ssh_agent_auth/pam_ssh_agent_auth-7ff7858/openbsd-compat/
H A Dxcrypt.c95 struct spwd *spw = getspnam(pw->pw_name); in shadow_pw() local
97 if (spw != NULL) in shadow_pw()
98 pw_password = spw->sp_pwdp; in shadow_pw()
106 struct passwd_adjunct *spw; in shadow_pw() local
107 if (issecure() && (spw = getpwanam(pw->pw_name)) != NULL) in shadow_pw()
108 pw_password = spw->pwa_passwd; in shadow_pw()
110 struct pr_passwd *spw = getprpwnam(pw->pw_name); in shadow_pw() local
112 if (spw != NULL) in shadow_pw()
113 pw_password = spw->ufld.fd_encrypt; in shadow_pw()
/dports/security/gnome-ssh-askpass/openssh-6.6p1/openbsd-compat/
H A Dxcrypt.c100 struct spwd *spw = getspnam(pw->pw_name); in shadow_pw() local
102 if (spw != NULL) in shadow_pw()
103 pw_password = spw->sp_pwdp; in shadow_pw()
111 struct passwd_adjunct *spw; in shadow_pw() local
112 if (issecure() && (spw = getpwanam(pw->pw_name)) != NULL) in shadow_pw()
113 pw_password = spw->pwa_passwd; in shadow_pw()
115 struct pr_passwd *spw = getprpwnam(pw->pw_name); in shadow_pw() local
117 if (spw != NULL) in shadow_pw()
118 pw_password = spw->ufld.fd_encrypt; in shadow_pw()
/dports/mail/dovecot/dovecot-2.3.17/src/auth/
H A Dpassdb-shadow.c42 struct spwd *spw; in shadow_verify_plain() local
46 res = shadow_lookup(request, &spw); in shadow_verify_plain()
53 ret = auth_request_password_verify(request, password, spw->sp_pwdp, in shadow_verify_plain()
57 safe_memset(spw->sp_pwdp, 0, strlen(spw->sp_pwdp)); in shadow_verify_plain()
65 auth_request_set_field(request, "user", spw->sp_namp, NULL); in shadow_verify_plain()
74 struct spwd *spw; in shadow_lookup_credentials() local
77 res = shadow_lookup(request, &spw); in shadow_lookup_credentials()
83 auth_request_set_field(request, "user", spw->sp_namp, NULL); in shadow_lookup_credentials()
84 passdb_handle_credentials(PASSDB_RESULT_OK, spw->sp_pwdp, in shadow_lookup_credentials()
/dports/security/openssh-portable/openssh-8.8p1/openbsd-compat/
H A Dxcrypt.c141 struct spwd *spw = getspnam(pw->pw_name); in shadow_pw() local
143 if (spw != NULL) in shadow_pw()
144 pw_password = spw->sp_pwdp; in shadow_pw()
152 struct passwd_adjunct *spw; in shadow_pw() local
153 if (issecure() && (spw = getpwanam(pw->pw_name)) != NULL) in shadow_pw()
154 pw_password = spw->pwa_passwd; in shadow_pw()
156 struct pr_passwd *spw = getprpwnam(pw->pw_name); in shadow_pw() local
158 if (spw != NULL) in shadow_pw()
159 pw_password = spw->ufld.fd_encrypt; in shadow_pw()
/dports/mail/vmailmgr/vmailmgr-0.97/lib/misc/
H A Dpwentry_table.cc43 const spwd* spw;
45 while((spw = getspent()) != 0) {
46 pwentry* pw = (*this)[spw->sp_namp];
48 pw->pass = spw->sp_pwdp;
67 struct spwd* spw = getspnam(name.c_str()); in operator []() local
68 if(spw) in operator []()
69 pw->pw_passwd = spw->sp_pwdp; in operator []()
/dports/mail/popa3d/popa3d-1.0.3/
H A Dauth_shadow.c32 struct spwd *spw; in auth_userpass() local
52 if (!(spw = getspnam(user)) || !pw || !*spw->sp_pwdp || in auth_userpass()
53 *spw->sp_pwdp == '*' || *spw->sp_pwdp == '!') in auth_userpass()
56 char *hash = crypt(pass, spw->sp_pwdp); in auth_userpass()
57 if (hash && !strcmp(hash, spw->sp_pwdp)) in auth_userpass()
/dports/mail/popa3d-before-sendmail/popa3d-1.0.3/
H A Dauth_shadow.c32 struct spwd *spw; in auth_userpass() local
52 if (!(spw = getspnam(user)) || !pw || !*spw->sp_pwdp || in auth_userpass()
53 *spw->sp_pwdp == '*' || *spw->sp_pwdp == '!') in auth_userpass()
56 char *hash = crypt(pass, spw->sp_pwdp); in auth_userpass()
57 if (hash && !strcmp(hash, spw->sp_pwdp)) in auth_userpass()
/dports/devel/libnfc/libnfc-1.7.1/contrib/win32/libnfc/buses/
H A Duart.c124 struct serial_port_windows *spw; in uart_set_speed() local
141 spw = (struct serial_port_windows *) sp; in uart_set_speed()
144 spw->dcb.BaudRate = uiPortSpeed; in uart_set_speed()
145 if (!SetCommState(spw->hPort, &spw->dcb)) { in uart_set_speed()
149 PurgeComm(spw->hPort, PURGE_RXABORT | PURGE_RXCLEAR); in uart_set_speed()
155 const struct serial_port_windows *spw = (struct serial_port_windows *) sp; in uart_get_speed() local
156 if (!GetCommState(spw->hPort, (serial_port) & spw->dcb)) in uart_get_speed()
157 return spw->dcb.BaudRate; in uart_get_speed()
/dports/security/pam_ssh/pam_ssh-8.0/openbsd-compat/
H A Dxcrypt.c123 struct spwd *spw = getspnam(pw->pw_name); in shadow_pw() local
125 if (spw != NULL) in shadow_pw()
126 pw_password = spw->sp_pwdp; in shadow_pw()
130 struct passwd_adjunct *spw; in shadow_pw() local
131 if (issecure() && (spw = getpwanam(pw->pw_name)) != NULL) in shadow_pw()
132 pw_password = spw->pwa_passwd; in shadow_pw()
/dports/x11/sddm/sddm-0.19.0/src/helper/backend/
H A DPasswdBackend.cpp80 struct spwd *spw = getspnam(pw->pw_name); in authenticate() local
81 if (!spw) { in authenticate()
86 if(!spw->sp_pwdp || !spw->sp_pwdp[0]) in authenticate()
89 system_passwd = spw->sp_pwdp; in authenticate()
/dports/security/vlock/vlock-2.2.3/src/
H A Dauth-shadow.c40 struct spwd *spw; in auth() local
51 if ((spw = getspnam(user)) == NULL) in auth()
55 if ((cryptpw = crypt(pwd, spw->sp_pwdp)) == NULL) { in auth()
60 result = (strcmp(cryptpw, spw->sp_pwdp) == 0); in auth()

12345678910>>...12