xref: /f-stack/tools/libutil/login_auth.3 (revision 22ce4aff)
11eaf0ac3Slogwang.\" Copyright (c) 1995 David Nugent <[email protected]>
21eaf0ac3Slogwang.\" All rights reserved.
31eaf0ac3Slogwang.\"
41eaf0ac3Slogwang.\" Redistribution and use in source and binary forms, with or without
51eaf0ac3Slogwang.\" modification, is permitted provided that the following conditions
61eaf0ac3Slogwang.\" are met:
71eaf0ac3Slogwang.\" 1. Redistributions of source code must retain the above copyright
81eaf0ac3Slogwang.\"    notice immediately at the beginning of the file, without modification,
91eaf0ac3Slogwang.\"    this list of conditions, and the following disclaimer.
101eaf0ac3Slogwang.\" 2. Redistributions in binary form must reproduce the above copyright
111eaf0ac3Slogwang.\"    notice, this list of conditions and the following disclaimer in the
121eaf0ac3Slogwang.\"    documentation and/or other materials provided with the distribution.
131eaf0ac3Slogwang.\" 3. This work was done expressly for inclusion into FreeBSD.  Other use
141eaf0ac3Slogwang.\"    is permitted provided this notation is included.
151eaf0ac3Slogwang.\" 4. Absolutely no warranty of function or purpose is made by the author
161eaf0ac3Slogwang.\"    David Nugent.
171eaf0ac3Slogwang.\" 5. Modifications may be freely made to this file providing the above
181eaf0ac3Slogwang.\"    conditions are met.
191eaf0ac3Slogwang.\"
201eaf0ac3Slogwang.\" $FreeBSD$
211eaf0ac3Slogwang.\"
22*22ce4affSfengbojiang.Dd May 10, 2020
231eaf0ac3Slogwang.Dt LOGIN_AUTH 3
241eaf0ac3Slogwang.Os
251eaf0ac3Slogwang.Sh NAME
261eaf0ac3Slogwang.\" .Nm authenticate
271eaf0ac3Slogwang.\" .Nm auth_script
281eaf0ac3Slogwang.\" .Nm auth_env
291eaf0ac3Slogwang.\" .Nm auth_scan
301eaf0ac3Slogwang.\" .Nm auth_rmfiles
311eaf0ac3Slogwang.Nm auth_checknologin ,
321eaf0ac3Slogwang.Nm auth_cat
331eaf0ac3Slogwang.\" .Nm auth_ttyok
341eaf0ac3Slogwang.\" .Nm auth_hostok
351eaf0ac3Slogwang.\" .Nm auth_timesok
361eaf0ac3Slogwang.Nd "authentication style support library for login class capabilities database"
371eaf0ac3Slogwang.Sh LIBRARY
381eaf0ac3Slogwang.Lb libutil
391eaf0ac3Slogwang.Sh SYNOPSIS
401eaf0ac3Slogwang.In sys/types.h
411eaf0ac3Slogwang.In login_cap.h
421eaf0ac3Slogwang.\" .Ft int
431eaf0ac3Slogwang.\". Fn authenticate "const char *name" "const char *classname" "const char *style" "const char *service"
441eaf0ac3Slogwang.\" .Ft int
451eaf0ac3Slogwang.\" .Fn auth_script "const char * path" ...
461eaf0ac3Slogwang.\" .Ft void
471eaf0ac3Slogwang.\" .Fn auth_env "void"
481eaf0ac3Slogwang.\" .Ft int
491eaf0ac3Slogwang.\" .Fn auth_scan "int ok"
501eaf0ac3Slogwang.\" .Ft void
511eaf0ac3Slogwang.\" .Fn auth_rmfiles "void"
521eaf0ac3Slogwang.Ft void
531eaf0ac3Slogwang.Fn auth_checknologin "login_cap_t *lc"
541eaf0ac3Slogwang.Ft int
551eaf0ac3Slogwang.Fn auth_cat "const char *file"
561eaf0ac3Slogwang.\" .Ft int
571eaf0ac3Slogwang.\" .Fn auth_ttyok "login_cap_t *lc" "const char *tty"
581eaf0ac3Slogwang.\" .Ft int
591eaf0ac3Slogwang.\" .Fn auth_hostok "login_cap_t *lc" "const char *hostname" "char const *ip"
601eaf0ac3Slogwang.\" .Ft int
611eaf0ac3Slogwang.\" .Fn auth_timesok "login_cap_t *lc" "time_t now"
621eaf0ac3Slogwang.Sh DESCRIPTION
631eaf0ac3SlogwangThis set of functions support the login class authorisation style interface provided
641eaf0ac3Slogwangby
651eaf0ac3Slogwang.Xr login.conf 5 .
661eaf0ac3Slogwang.\" .Sh RETURN VALUES
671eaf0ac3Slogwang.Sh SEE ALSO
681eaf0ac3Slogwang.Xr getcap 3 ,
691eaf0ac3Slogwang.Xr login_cap 3 ,
701eaf0ac3Slogwang.Xr login_class 3 ,
711eaf0ac3Slogwang.Xr login.conf 5 ,
721eaf0ac3Slogwang.Xr termcap 5
73*22ce4affSfengbojiang.Sh HISTORY
74*22ce4affSfengbojiangThe functions
75*22ce4affSfengbojiang.Fn auth_checknologin
76*22ce4affSfengbojiangand
77*22ce4affSfengbojiang.Fn auth_cat
78*22ce4affSfengbojiangfirst appeared in
79*22ce4affSfengbojiang.Fx 2.1.5 .
80