Home
last modified time | relevance | path

Searched refs:rhost (Results 1 – 14 of 14) sorted by relevance

/freebsd/lib/libpam/modules/pam_login_access/
H A Dpam_login_access.c72 const void *rhost, *tty, *user; in pam_sm_acct_mgmt() local
85 pam_err = pam_get_item(pamh, PAM_RHOST, &rhost); in pam_sm_acct_mgmt()
103 if (rhost != NULL && *(const char *)rhost != '\0') { in pam_sm_acct_mgmt()
105 (const char *)user, (const char *)rhost); in pam_sm_acct_mgmt()
106 if (login_access(user, rhost, &login_access_opts) != 0) in pam_sm_acct_mgmt()
109 (const char *)user, (const char *)rhost); in pam_sm_acct_mgmt()
/freebsd/libexec/fingerd/
H A Dfingerd.c65 char rhost[MAXHOSTNAMELEN]; in main() local
112 realhostname_sa(rhost, sizeof rhost - 1, in main()
114 rhost[sizeof(rhost) - 1] = '\0'; in main()
116 setenv("FINGERD_REMOTE_HOST", rhost, 1); in main()
136 syslog(LOG_NOTICE, "query from %s: `%s'", rhost, t); in main()
/freebsd/lib/libpam/modules/pam_radius/
H A Dpam_radius.c80 const char *rhost, const void *state, size_t state_len) in build_access_request() argument
126 if (rhost != NULL && in build_access_request()
127 rad_put_string(radh, RAD_CALLING_STATION_ID, rhost) == -1) { in build_access_request()
215 const char *nas_id, const char *nas_ipaddr, const char *rhost) in do_challenge() argument
283 nas_ipaddr, rhost, state, statelen) == -1) in do_challenge()
299 const void *rhost, *tmpuser; in pam_sm_authenticate() local
308 pam_get_item(pamh, PAM_RHOST, &rhost); in pam_sm_authenticate()
338 if (build_access_request(radh, user, pass, nas_id, nas_ipaddr, rhost, in pam_sm_authenticate()
385 nas_ipaddr, rhost); in pam_sm_authenticate()
/freebsd/lib/libpam/modules/pam_rhosts/
H A Dpam_rhosts.c58 const void *ruser, *rhost; in pam_sm_authenticate() local
75 err = pam_get_item(pamh, PAM_RHOST, &rhost); in pam_sm_authenticate()
80 err = ruserok(rhost, superuser, ruser, user); in pam_sm_authenticate()
/freebsd/contrib/openpam/lib/libpam/
H A Dpam_get_authtok.c72 const void *lhost, *rhost; in pam_get_authtok() local
84 r = pam_get_item(pamh, PAM_RHOST, &rhost); in pam_get_authtok()
85 if (r == PAM_SUCCESS && rhost != NULL) { in pam_get_authtok()
88 if (strcmp(rhost, lhost) != 0) in pam_get_authtok()
/freebsd/lib/libpam/modules/pam_lastlog/
H A Dpam_lastlog.c73 const void *rhost, *tty; in pam_sm_open_session() local
84 pam_err = pam_get_item(pamh, PAM_RHOST, &rhost); in pam_sm_open_session()
139 if (rhost != NULL) in pam_sm_open_session()
140 strncpy(utl.ut_host, rhost, sizeof utl.ut_host); in pam_sm_open_session()
/freebsd/lib/libpam/modules/pam_unix/
H A Dpam_unix.c171 const void *rhost, *tty; in pam_sm_acct_mgmt() local
183 retval = pam_get_item(pamh, PAM_RHOST, &rhost); in pam_sm_acct_mgmt()
247 if (rhost && *(const char *)rhost != '\0') { in pam_sm_acct_mgmt()
250 if (getaddrinfo(rhost, NULL, &hints, &res) == 0) { in pam_sm_acct_mgmt()
263 if (!auth_hostok(lc, rhost, rhostip) || in pam_sm_acct_mgmt()
/freebsd/contrib/openpam/bin/pamtest/
H A Dpamtest.c315 const char *rhost = NULL; in main() local
332 opt_str_once(opt, &rhost, optarg); in main()
389 if (rhost == NULL) { in main()
392 rhost = hostname; in main()
417 if ((pame = pt_set_item(PAM_RHOST, rhost)) != PAM_SUCCESS || in main()
/freebsd/usr.sbin/lpr/common_source/
H A Dnet.c87 getport(const struct printer *pp, const char *rhost, int rport) in getport() argument
96 if (rhost == NULL) in getport()
102 error = getaddrinfo(rhost, (rport == 0 ? "printer" : NULL), in getport()
/freebsd/tests/sys/cddl/zfs/include/
H A Dlibtest.kshlib1870 typeset rhost=$1
1875 $GETENT hosts $rhost >/dev/null 2>&1
1877 log_note "$rhost cannot be found from" \
1882 $PING $rhost 3 >/dev/null 2>&1
1884 log_note "$rhost is not reachable."
1895 if ! $rsh_cmd $rhost $TRUE; then
1896 log_note "$RSH to $rhost is not accessible" \
1910 rhost=$1
1920 while ! verify_rsh_connect $rhost; do
1943 typeset rhost=$2
[all …]
/freebsd/sys/dev/sfxge/common/
H A Defx_filter.c379 __in uint32_t rhost, in efx_filter_spec_set_ipv4_full() argument
392 spec->efs_rem_host.eo_u32[0] = rhost; in efx_filter_spec_set_ipv4_full()
696 uint32_t rhost, host1, host2; in siena_filter_spec_from_gen_spec() local
741 rhost = is_full ? gen_spec->efs_rem_host.eo_u32[0] : 0; in siena_filter_spec_from_gen_spec()
745 host2 = rhost; in siena_filter_spec_from_gen_spec()
747 host1 = rhost; in siena_filter_spec_from_gen_spec()
H A Defx.h2977 __in uint32_t rhost,
/freebsd/lib/libc/net/
H A Drcmd.c370 ruserok(const char *rhost, int superuser, const char *ruser, const char *luser) in ruserok() argument
378 error = getaddrinfo(rhost, "0", &hints, &res); in ruserok()
/freebsd/lib/libfetch/
H A Dcommon.c885 fetch_ssl_ipaddr_match_bin(const struct addrinfo *lhost, const char *rhost, in fetch_ssl_ipaddr_match_bin() argument
900 return (!memcmp(left, (const void *)rhost, rhostlen) ? 1 : 0); in fetch_ssl_ipaddr_match_bin()