Print this page
9728 3secdb man pages need some tlc

*** 1,11 **** '\" te .\" Copyright (c) 2009, Sun Microsystems, Inc. All Rights Reserved. .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License. .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License. .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner] ! .TH GETAUTHATTR 3SECDB "Feb 20, 2009" .SH NAME getauthattr, getauthnam, free_authattr, setauthattr, endauthattr, chkauthattr \- get authorization entry .SH SYNOPSIS .LP --- 1,11 ---- '\" te .\" Copyright (c) 2009, Sun Microsystems, Inc. All Rights Reserved. .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License. .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License. .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner] ! .TH GETAUTHATTR 3SECDB "Aug 13, 2018" .SH NAME getauthattr, getauthnam, free_authattr, setauthattr, endauthattr, chkauthattr \- get authorization entry .SH SYNOPSIS .LP
*** 41,51 **** .nf \fBint\fR \fBchkauthattr\fR(\fBconst char *\fR\fIauthname\fR, \fBconst char *\fR\fIusername\fR); .fi .SH DESCRIPTION - .sp .LP The \fBgetauthattr()\fR and \fBgetauthnam()\fR functions each return an \fBauth_attr\fR(4) entry. Entries can come from any of the sources specified in the \fBnsswitch.conf\fR(4) file. .sp --- 41,50 ----
*** 129,142 **** .sp .TS box; c | c | c c | c | c . ! \f(CW/etc/security/policy.conf\fR or Is user _ - \fBAuthorization name\fR \fBuser_attr\fR or \fB\fR \fBprof_attr\fR entry authorized? - _ solaris.printer.postscript solaris.printer.postscript Yes solaris.printer.postscript solaris.printer.* Yes solaris.printer.grant solaris.printer.* No .TE --- 128,140 ---- .sp .TS box; c | c | c c | c | c . ! \fB/etc/security/policy.conf\fR or Is user ! \fBAuthorization name\fR \fBuser_attr\fR or \fBprof_attr\fR entry authorized? _ solaris.printer.postscript solaris.printer.postscript Yes solaris.printer.postscript solaris.printer.* Yes solaris.printer.grant solaris.printer.* No .TE
*** 143,153 **** .sp .LP The \fBfree_authattr()\fR function releases memory allocated by the \fBgetauthnam()\fR and \fBgetauthattr()\fR functions. .SH RETURN VALUES - .sp .LP The \fBgetauthattr()\fR function returns a pointer to an \fBauthattr_t\fR if it successfully enumerates an entry; otherwise it returns \fINULL\fR, indicating the end of the enumeration. .sp --- 141,150 ----
*** 157,188 **** .sp .LP The \fBchkauthattr()\fR function returns 1 if the user is authorized and 0 if the user does not exist or is not authorized. .SH USAGE - .sp .LP The \fBgetauthattr()\fR and \fBgetauthnam()\fR functions both allocate memory for the pointers they return. This memory should be deallocated with the \fBfree_authattr()\fR call. .sp .LP Individual attributes in the \fBattr\fR structure can be referred to by calling the \fBkva_match\fR(3SECDB) function. .SH WARNINGS - .sp .LP Because the list of legal keys is likely to expand, code must be written to ignore unknown key-value pairs without error. .SH FILES - .sp .ne 2 .na \fB\fB/etc/nsswitch.conf\fR\fR .ad .RS 29n ! configuration file lookup information for the name server switch .RE .sp .ne 2 .na --- 154,182 ---- .sp .LP The \fBchkauthattr()\fR function returns 1 if the user is authorized and 0 if the user does not exist or is not authorized. .SH USAGE .LP The \fBgetauthattr()\fR and \fBgetauthnam()\fR functions both allocate memory for the pointers they return. This memory should be deallocated with the \fBfree_authattr()\fR call. .sp .LP Individual attributes in the \fBattr\fR structure can be referred to by calling the \fBkva_match\fR(3SECDB) function. .SH WARNINGS .LP Because the list of legal keys is likely to expand, code must be written to ignore unknown key-value pairs without error. .SH FILES .ne 2 .na \fB\fB/etc/nsswitch.conf\fR\fR .ad .RS 29n ! configuration file lookup information for the name service switch .RE .sp .ne 2 .na
*** 218,228 **** .RS 29n profile information .RE .SH ATTRIBUTES - .sp .LP See \fBattributes\fR(5) for descriptions of the following attributes: .sp .sp --- 212,221 ----
*** 234,243 **** _ MT-Level MT-Safe .TE .SH SEE ALSO - .sp .LP ! \fBgetexecattr\fR(3SECDB), \fBgetprofattr\fR(3SECDB), ! \fBgetuserattr\fR(3SECDB), \fBauth_attr\fR(4), \fBnsswitch.conf\fR(4), ! \fBprof_attr\fR(4), \fBuser_attr\fR(4), \fBattributes\fR(5), \fBrbac\fR(5) --- 227,236 ---- _ MT-Level MT-Safe .TE .SH SEE ALSO .LP ! \fBgetexecattr\fR(3SECDB), \fBgetprofattr\fR(3SECDB), \fBgetuserattr\fR(3SECDB), ! \fBkva_match\fR(3SECDB), \fBauth_attr\fR(4), \fBnsswitch.conf\fR(4), ! \fBpolicy.conf\fR(4), \fBprof_attr\fR(4), \fBuser_attr\fR(4), ! \fBattributes\fR(5), \fBrbac\fR(5)