xref: /freebsd/lib/libutil/login_auth.3 (revision fa9896e082a1046ff4fbc75fcba4d18d1f2efc19)
168bbf3adSDavid Nugent.\" Copyright (c) 1995 David Nugent <davidn@blaze.net.au>
268bbf3adSDavid Nugent.\" All rights reserved.
368bbf3adSDavid Nugent.\"
468bbf3adSDavid Nugent.\" Redistribution and use in source and binary forms, with or without
568bbf3adSDavid Nugent.\" modification, is permitted provided that the following conditions
668bbf3adSDavid Nugent.\" are met:
768bbf3adSDavid Nugent.\" 1. Redistributions of source code must retain the above copyright
868bbf3adSDavid Nugent.\"    notice immediately at the beginning of the file, without modification,
968bbf3adSDavid Nugent.\"    this list of conditions, and the following disclaimer.
1068bbf3adSDavid Nugent.\" 2. Redistributions in binary form must reproduce the above copyright
1168bbf3adSDavid Nugent.\"    notice, this list of conditions and the following disclaimer in the
1268bbf3adSDavid Nugent.\"    documentation and/or other materials provided with the distribution.
1368bbf3adSDavid Nugent.\" 3. This work was done expressly for inclusion into FreeBSD.  Other use
1468bbf3adSDavid Nugent.\"    is permitted provided this notation is included.
1568bbf3adSDavid Nugent.\" 4. Absolutely no warranty of function or purpose is made by the author
1668bbf3adSDavid Nugent.\"    David Nugent.
1768bbf3adSDavid Nugent.\" 5. Modifications may be freely made to this file providing the above
1868bbf3adSDavid Nugent.\"    conditions are met.
1968bbf3adSDavid Nugent.\"
20*bc89b58dSGordon Bergling.Dd May 10, 2020
2168bbf3adSDavid Nugent.Dt LOGIN_AUTH 3
22aa12cea2SUlrich Spörlein.Os
2368bbf3adSDavid Nugent.Sh NAME
246b20a4e1SBruce Evans.\" .Nm authenticate
25ab39fdb6SAndrey A. Chernov.\" .Nm auth_script
26ab39fdb6SAndrey A. Chernov.\" .Nm auth_env
27ab39fdb6SAndrey A. Chernov.\" .Nm auth_scan
28ab39fdb6SAndrey A. Chernov.\" .Nm auth_rmfiles
293a049969SAlexey Zelkin.Nm auth_checknologin ,
3068bbf3adSDavid Nugent.Nm auth_cat
31ab39fdb6SAndrey A. Chernov.\" .Nm auth_ttyok
32ab39fdb6SAndrey A. Chernov.\" .Nm auth_hostok
336b20a4e1SBruce Evans.\" .Nm auth_timesok
34eb083802SRuslan Ermilov.Nd "authentication style support library for login class capabilities database"
353dc329d1SAlexey Zelkin.Sh LIBRARY
363dc329d1SAlexey Zelkin.Lb libutil
3768bbf3adSDavid Nugent.Sh SYNOPSIS
3832eef9aeSRuslan Ermilov.In sys/types.h
3932eef9aeSRuslan Ermilov.In login_cap.h
406b20a4e1SBruce Evans.\" .Ft int
416b20a4e1SBruce Evans.\". Fn authenticate "const char *name" "const char *classname" "const char *style" "const char *service"
42ab39fdb6SAndrey A. Chernov.\" .Ft int
43ab39fdb6SAndrey A. Chernov.\" .Fn auth_script "const char * path" ...
44ab39fdb6SAndrey A. Chernov.\" .Ft void
45ab39fdb6SAndrey A. Chernov.\" .Fn auth_env "void"
46ab39fdb6SAndrey A. Chernov.\" .Ft int
47ab39fdb6SAndrey A. Chernov.\" .Fn auth_scan "int ok"
48ab39fdb6SAndrey A. Chernov.\" .Ft void
49ab39fdb6SAndrey A. Chernov.\" .Fn auth_rmfiles "void"
506b20a4e1SBruce Evans.Ft void
5168bbf3adSDavid Nugent.Fn auth_checknologin "login_cap_t *lc"
5268bbf3adSDavid Nugent.Ft int
5368bbf3adSDavid Nugent.Fn auth_cat "const char *file"
54ab39fdb6SAndrey A. Chernov.\" .Ft int
55ab39fdb6SAndrey A. Chernov.\" .Fn auth_ttyok "login_cap_t *lc" "const char *tty"
56ab39fdb6SAndrey A. Chernov.\" .Ft int
57ab39fdb6SAndrey A. Chernov.\" .Fn auth_hostok "login_cap_t *lc" "const char *hostname" "char const *ip"
586b20a4e1SBruce Evans.\" .Ft int
596b20a4e1SBruce Evans.\" .Fn auth_timesok "login_cap_t *lc" "time_t now"
6068bbf3adSDavid Nugent.Sh DESCRIPTION
6168bbf3adSDavid NugentThis set of functions support the login class authorisation style interface provided
6268bbf3adSDavid Nugentby
6368bbf3adSDavid Nugent.Xr login.conf 5 .
643a049969SAlexey Zelkin.\" .Sh RETURN VALUES
6568bbf3adSDavid Nugent.Sh SEE ALSO
6675141cc9SWolfram Schneider.Xr getcap 3 ,
6768bbf3adSDavid Nugent.Xr login_cap 3 ,
6868bbf3adSDavid Nugent.Xr login_class 3 ,
6968bbf3adSDavid Nugent.Xr login.conf 5 ,
7075141cc9SWolfram Schneider.Xr termcap 5
71*bc89b58dSGordon Bergling.Sh HISTORY
72*bc89b58dSGordon BerglingThe functions
73*bc89b58dSGordon Bergling.Fn auth_checknologin
74*bc89b58dSGordon Berglingand
75*bc89b58dSGordon Bergling.Fn auth_cat
76*bc89b58dSGordon Berglingfirst appeared in
77*bc89b58dSGordon Bergling.Fx 2.1.5 .
78