/*
* CDDL HEADER START
*
* 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
* 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]
*
* CDDL HEADER END
*/
/*
*/
/*
* Additional API for Identity Mapping Service
*/
#ifndef _IDMAP_PRIV_H
#define _IDMAP_PRIV_H
#include <libscf.h>
#include <resolv.h>
#include "idmap.h"
#include <rpcsvc/idmap_prot.h>
#ifdef __cplusplus
extern "C" {
#endif
rc == IDMAP_ERR_DB)
/* is_user values */
#define IDMAP_NO 0
/* Opaque iterator */
/*
* Update API
*/
/* Create handle for updates */
/* Commit */
/* Get index of the failed batch element */
/* Get the rule which caused the batch to failed */
/* Get the rule which caused a conflict */
/* Destroy the update handle */
extern void idmap_udt_destroy(idmap_udt_handle_t *);
/* Add name-based mapping rule */
/* Remove name-based mapping rule */
boolean_t, const char *, const char *, const char *, int);
/* Flush name-based mapping rules */
/* Flush caches */
/*
* Iterator API
*/
boolean_t *, int *, idmap_info *);
/* Create a iterator to get name-based mapping rules */
extern idmap_stat idmap_iter_namerules(const char *,
/* Iterate through the name-based mapping rules */
/* Set the number of entries requested per batch */
/* Destroy the iterator */
extern void idmap_iter_destroy(idmap_iter_t *);
/*
* Get mapping
*/
extern idmap_stat idmap_get_w2u_mapping(const char *,
idmap_rid_t *, const char *, const char *, int, int *, int *,
uid_t *, char **, int *, idmap_info *);
const char *, int, int, int *, char **, idmap_rid_t *, char **,
char **, int *, idmap_info *);
/*
* Miscellaneous
*/
/* string to status */
extern idmap_stat idmap_string2stat(const char *);
/* internal status to protocol status */
/* copy idmap_namerule including strings */
/* Move idmap_info info including strings */
/* free idmap_info info from user supplied struct */
extern void idmap_info_free(idmap_info *);
extern void idmap_how_clear(idmap_how *);
/*
*/
/* Given SID, get UID */
/* Given SID, get GID */
/* Given SID, get UID or GID */
/* Given UID, get SID */
/* Given GID, get SID */
/* Properties */
/*
* Trace
*
* These are the names of the trace parameters that may be returned
* when tracing is requested.
*/
#ifdef __cplusplus
}
#endif
#endif /* _IDMAP_PRIV_H */