login_ok.3 (4aee48edccd1ec89a29a44be2a509c807b23c324) | login_ok.3 (3dc329d1be00b8b4ba4a45886b6374289daa8ab0) |
---|---|
1.\" Copyright (c) 1995 David Nugent <davidn@blaze.net.au> 2.\" All rights reserved. 3.\" 4.\" Redistribution and use in source and binary forms, with or without 5.\" modification, is permitted provided that the following conditions 6.\" are met: 7.\" 1. Redistributions of source code must retain the above copyright 8.\" notice immediately at the beginning of the file, without modification, --- 13 unchanged lines hidden (view full) --- 22.Dd January 2, 1997 23.Os FreeBSD 24.Dt LOGIN_OK 3 25.Sh NAME 26.Nm auth_ttyok , 27.Nm auth_hostok , 28.Nm auth_timeok 29.Nd functions for checking login class based login restrictions | 1.\" Copyright (c) 1995 David Nugent <davidn@blaze.net.au> 2.\" All rights reserved. 3.\" 4.\" Redistribution and use in source and binary forms, with or without 5.\" modification, is permitted provided that the following conditions 6.\" are met: 7.\" 1. Redistributions of source code must retain the above copyright 8.\" notice immediately at the beginning of the file, without modification, --- 13 unchanged lines hidden (view full) --- 22.Dd January 2, 1997 23.Os FreeBSD 24.Dt LOGIN_OK 3 25.Sh NAME 26.Nm auth_ttyok , 27.Nm auth_hostok , 28.Nm auth_timeok 29.Nd functions for checking login class based login restrictions |
30.Sh LIBRARY 31.Lb libutil |
|
30.Sh SYNOPSIS 31.Fd #include <sys/types.h> 32.Fd #include <time.h> 33.Fd #include <login_cap.h> 34.Ft int 35.Fn auth_ttyok "login_cap_t *lc" "const char *tty" 36.Ft int 37.Fn auth_hostok "login_cap_t *lc" "const char *host" "char const *ip" 38.Ft int 39.Fn auth_timeok "login_cap_t *lc" "time_t t" | 32.Sh SYNOPSIS 33.Fd #include <sys/types.h> 34.Fd #include <time.h> 35.Fd #include <login_cap.h> 36.Ft int 37.Fn auth_ttyok "login_cap_t *lc" "const char *tty" 38.Ft int 39.Fn auth_hostok "login_cap_t *lc" "const char *host" "char const *ip" 40.Ft int 41.Fn auth_timeok "login_cap_t *lc" "time_t t" |
40.Pp 41Link with 42.Va -lutil 43on the 44.Xr cc 1 45command line. | |
46.Sh DESCRIPTION 47This set of functions checks to see if login is allowed based on login 48class capability entries in the login database, 49.Xr login.conf 5 . 50.Pp 51.Fn auth_ttyok 52checks to see if the named tty is available to users of a specific 53class, and is either in the --- 91 unchanged lines hidden --- | 42.Sh DESCRIPTION 43This set of functions checks to see if login is allowed based on login 44class capability entries in the login database, 45.Xr login.conf 5 . 46.Pp 47.Fn auth_ttyok 48checks to see if the named tty is available to users of a specific 49class, and is either in the --- 91 unchanged lines hidden --- |