source: trunk/athena/lib/al/al_is_local_acct.3 @ 11484

Revision 11484, 1.6 KB checked in by ghudson, 26 years ago (diff)
Document new functions.
Line 
1.\" $Id: al_is_local_acct.3,v 1.1 1998-05-07 17:11:26 ghudson Exp $
2.\"
3.\" Copyright 1998 by the Massachusetts Institute of
4.\" Technology.
5.\"
6.\" Permission to use, copy, modify, and distribute this
7.\" software and its documentation for any purpose and without
8.\" fee is hereby granted, provided that the above copyright
9.\" notice appear in all copies and that both that copyright
10.\" notice and this permission notice appear in supporting
11.\" documentation, and that the name of M.I.T. not be used in
12.\" advertising or publicity pertaining to distribution of the
13.\" software without specific, written prior permission.
14.\" M.I.T. makes no representations about the suitability of
15.\" this software for any purpose.  It is provided "as is"
16.\" without express or implied warranty.
17.\"
18.TH AL_IS_LOCAL_ACCT 3 "5 May 1998"
19.SH NAME
20al_is_local_acct \- Determine if an account is local
21.SH SYNOPSIS
22.nf
23.B #include <al.h>
24.PP
25.B int al_is_local_acct(const char *\fIusername\fP)
26.PP
27.B cc file.c -lal -lhesiod
28.fi
29.SH DESCRIPTION
30This function determines if
31.I username
32has a local account according to the Athena access control file
33.I /etc/athena/access
34(see access(5)).  If the access file does not exist, it is assumed
35that
36.I username
37does not have a local account.
38.SH RETURN VALUES
39.I al_is_local_acct
40returns 1 if
41.I username
42has a local account, 0 if not, and -1 if there was a memory allocation
43error or permissions error reading the access file.
44.SH SEE ALSO
45al_login_allowed(3), al_get_access(3)
46.SH AUTHOR
47Greg Hudson, MIT Information Systems
48.br
49Copyright 1998 by the Massachusetts Institute of Technology.
Note: See TracBrowser for help on using the repository browser.