4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 * or http://www.opensolaris.org/os/licensing.
10 * See the License for the specific language governing permissions
11 * and limitations under the License.
13 * When distributing Covered Code, include this CDDL HEADER in each
14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 * If applicable, add the following below this CDDL HEADER, with the
16 * fields enclosed by brackets "[]" replaced with your own identifying
17 * information: Portions Copyright [yyyy] [name of copyright owner]
23 * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
24 * Use is subject to license terms.
28 * Windows to Solaris Identity Mapping
29 * This header file contains cache definitions.
32 #ifndef _IDMAP_CACHE_H
33 #define _IDMAP_CACHE_H
51 idmap_cache_lookup_uidbysid(const char *sid_prefix
, idmap_rid_t rid
,
55 idmap_cache_lookup_gidbysid(const char *sid_prefix
, idmap_rid_t rid
,
59 idmap_cache_lookup_pidbysid(const char *sid_prefix
, idmap_rid_t rid
,
60 uid_t
*pid
, int *is_user
);
63 idmap_cache_lookup_sidbyuid(char **sid_prefix
, idmap_rid_t
*rid
,
67 idmap_cache_lookup_sidbygid(char **sid_prefix
, idmap_rid_t
*rid
,
71 idmap_cache_lookup_winnamebyuid(char **winname
, char **windomain
, uid_t uid
);
74 idmap_cache_lookup_winnamebygid(char **winname
, char **windomain
, gid_t gid
);
77 idmap_cache_lookup_uidbywinname(const char *winname
, const char *windomain
,
81 idmap_cache_lookup_gidbywinname(const char *winname
, const char *windomain
,
85 idmap_cache_add_sid2uid(const char *sid_prefix
, idmap_rid_t rid
, uid_t uid
,
89 idmap_cache_add_sid2gid(const char *sid_prefix
, idmap_rid_t rid
, gid_t gid
,
93 idmap_cache_add_sid2pid(const char *sid_prefix
, idmap_rid_t rid
, uid_t pid
,
94 int is_user
, int direction
);
97 idmap_cache_add_winname2uid(const char *winname
, const char *windomain
,
98 uid_t uid
, int direction
);
101 idmap_cache_add_winname2gid(const char *winname
, const char *windomain
,
102 gid_t gid
, int direction
);
105 idmap_cache_get_data(size_t *uidbysid
, size_t *gidbysid
, size_t *pidbysid
,
106 size_t *sidbyuid
, size_t *sidbygid
,
107 size_t *winnamebyuid
, size_t *winnamebygid
,
108 size_t *uidbywinname
, size_t *gidbywinname
);
115 #endif /* _IDMAP_CACHE_H */