xref: /freebsd/lib/libutil/login_auth.3 (revision aa12cea2ccc6e686d6d31cf67d6bc69cbc1ba744)
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.\"
207f3dea24SPeter Wemm.\" $FreeBSD$
2168bbf3adSDavid Nugent.\"
2268bbf3adSDavid Nugent.Dd December 29, 1996
2368bbf3adSDavid Nugent.Dt LOGIN_AUTH 3
24*aa12cea2SUlrich Spörlein.Os
2568bbf3adSDavid Nugent.Sh NAME
266b20a4e1SBruce Evans.\" .Nm authenticate
27ab39fdb6SAndrey A. Chernov.\" .Nm auth_script
28ab39fdb6SAndrey A. Chernov.\" .Nm auth_env
29ab39fdb6SAndrey A. Chernov.\" .Nm auth_scan
30ab39fdb6SAndrey A. Chernov.\" .Nm auth_rmfiles
313a049969SAlexey Zelkin.Nm auth_checknologin ,
3268bbf3adSDavid Nugent.Nm auth_cat
33ab39fdb6SAndrey A. Chernov.\" .Nm auth_ttyok
34ab39fdb6SAndrey A. Chernov.\" .Nm auth_hostok
356b20a4e1SBruce Evans.\" .Nm auth_timesok
36eb083802SRuslan Ermilov.Nd "authentication style support library for login class capabilities database"
373dc329d1SAlexey Zelkin.Sh LIBRARY
383dc329d1SAlexey Zelkin.Lb libutil
3968bbf3adSDavid Nugent.Sh SYNOPSIS
4032eef9aeSRuslan Ermilov.In sys/types.h
4132eef9aeSRuslan Ermilov.In login_cap.h
426b20a4e1SBruce Evans.\" .Ft int
436b20a4e1SBruce Evans.\". Fn authenticate "const char *name" "const char *classname" "const char *style" "const char *service"
44ab39fdb6SAndrey A. Chernov.\" .Ft int
45ab39fdb6SAndrey A. Chernov.\" .Fn auth_script "const char * path" ...
46ab39fdb6SAndrey A. Chernov.\" .Ft void
47ab39fdb6SAndrey A. Chernov.\" .Fn auth_env "void"
48ab39fdb6SAndrey A. Chernov.\" .Ft int
49ab39fdb6SAndrey A. Chernov.\" .Fn auth_scan "int ok"
50ab39fdb6SAndrey A. Chernov.\" .Ft void
51ab39fdb6SAndrey A. Chernov.\" .Fn auth_rmfiles "void"
526b20a4e1SBruce Evans.Ft void
5368bbf3adSDavid Nugent.Fn auth_checknologin "login_cap_t *lc"
5468bbf3adSDavid Nugent.Ft int
5568bbf3adSDavid Nugent.Fn auth_cat "const char *file"
56ab39fdb6SAndrey A. Chernov.\" .Ft int
57ab39fdb6SAndrey A. Chernov.\" .Fn auth_ttyok "login_cap_t *lc" "const char *tty"
58ab39fdb6SAndrey A. Chernov.\" .Ft int
59ab39fdb6SAndrey A. Chernov.\" .Fn auth_hostok "login_cap_t *lc" "const char *hostname" "char const *ip"
606b20a4e1SBruce Evans.\" .Ft int
616b20a4e1SBruce Evans.\" .Fn auth_timesok "login_cap_t *lc" "time_t now"
6268bbf3adSDavid Nugent.Sh DESCRIPTION
6368bbf3adSDavid NugentThis set of functions support the login class authorisation style interface provided
6468bbf3adSDavid Nugentby
6568bbf3adSDavid Nugent.Xr login.conf 5 .
663a049969SAlexey Zelkin.\" .Sh RETURN VALUES
6768bbf3adSDavid Nugent.Sh SEE ALSO
6875141cc9SWolfram Schneider.Xr getcap 3 ,
6968bbf3adSDavid Nugent.Xr login_cap 3 ,
7068bbf3adSDavid Nugent.Xr login_class 3 ,
7168bbf3adSDavid Nugent.Xr login.conf 5 ,
7275141cc9SWolfram Schneider.Xr termcap 5
73