xref: /titanic_44/usr/src/cmd/idmap/idmapd/idmap_lsa.h (revision 148c5f43199ca0b43fc8e3b643aab11cd66ea327)
1*148c5f43SAlan Wright /*
2*148c5f43SAlan Wright  * CDDL HEADER START
3*148c5f43SAlan Wright  *
4*148c5f43SAlan Wright  * The contents of this file are subject to the terms of the
5*148c5f43SAlan Wright  * Common Development and Distribution License (the "License").
6*148c5f43SAlan Wright  * You may not use this file except in compliance with the License.
7*148c5f43SAlan Wright  *
8*148c5f43SAlan Wright  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9*148c5f43SAlan Wright  * or http://www.opensolaris.org/os/licensing.
10*148c5f43SAlan Wright  * See the License for the specific language governing permissions
11*148c5f43SAlan Wright  * and limitations under the License.
12*148c5f43SAlan Wright  *
13*148c5f43SAlan Wright  * When distributing Covered Code, include this CDDL HEADER in each
14*148c5f43SAlan Wright  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15*148c5f43SAlan Wright  * If applicable, add the following below this CDDL HEADER, with the
16*148c5f43SAlan Wright  * fields enclosed by brackets "[]" replaced with your own identifying
17*148c5f43SAlan Wright  * information: Portions Copyright [yyyy] [name of copyright owner]
18*148c5f43SAlan Wright  *
19*148c5f43SAlan Wright  * CDDL HEADER END
20*148c5f43SAlan Wright  */
21*148c5f43SAlan Wright 
22*148c5f43SAlan Wright /*
23*148c5f43SAlan Wright  * Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
24*148c5f43SAlan Wright  */
25*148c5f43SAlan Wright 
26*148c5f43SAlan Wright #ifndef IDMAP_LSA_H
27*148c5f43SAlan Wright #define	IDMAP_LSA_H
28*148c5f43SAlan Wright 
29*148c5f43SAlan Wright /*
30*148c5f43SAlan Wright  * LSA lookups
31*148c5f43SAlan Wright  */
32*148c5f43SAlan Wright 
33*148c5f43SAlan Wright #ifdef __cplusplus
34*148c5f43SAlan Wright extern "C" {
35*148c5f43SAlan Wright #endif
36*148c5f43SAlan Wright 
37*148c5f43SAlan Wright #include <rpcsvc/idmap_prot.h>
38*148c5f43SAlan Wright 
39*148c5f43SAlan Wright /* Given SID, look up name and type */
40*148c5f43SAlan Wright idmap_retcode
41*148c5f43SAlan Wright lookup_lsa_by_sid(const char *sidprefix, uint32_t rid, char **ret_name,
42*148c5f43SAlan Wright     char **ret_domain, idmap_id_type *ret_type);
43*148c5f43SAlan Wright 
44*148c5f43SAlan Wright /* Given name and optional domain, look up SID, type, and canonical name */
45*148c5f43SAlan Wright idmap_retcode lookup_lsa_by_name(const char *name, const char *domain,
46*148c5f43SAlan Wright     char **ret_sidprefix, uint32_t *ret_rid, char **ret_name,
47*148c5f43SAlan Wright     char **ret_domain, idmap_id_type *ret_type);
48*148c5f43SAlan Wright 
49*148c5f43SAlan Wright #ifdef __cplusplus
50*148c5f43SAlan Wright }
51*148c5f43SAlan Wright #endif
52*148c5f43SAlan Wright 
53*148c5f43SAlan Wright #endif /* IDMAP_LSA_H */
54