1e8c27ec8Sbaban /* 2e8c27ec8Sbaban * CDDL HEADER START 3e8c27ec8Sbaban * 4e8c27ec8Sbaban * The contents of this file are subject to the terms of the 5e8c27ec8Sbaban * Common Development and Distribution License (the "License"). 6e8c27ec8Sbaban * You may not use this file except in compliance with the License. 7e8c27ec8Sbaban * 8e8c27ec8Sbaban * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9e8c27ec8Sbaban * or http://www.opensolaris.org/os/licensing. 10e8c27ec8Sbaban * See the License for the specific language governing permissions 11e8c27ec8Sbaban * and limitations under the License. 12e8c27ec8Sbaban * 13e8c27ec8Sbaban * When distributing Covered Code, include this CDDL HEADER in each 14e8c27ec8Sbaban * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15e8c27ec8Sbaban * If applicable, add the following below this CDDL HEADER, with the 16e8c27ec8Sbaban * fields enclosed by brackets "[]" replaced with your own identifying 17e8c27ec8Sbaban * information: Portions Copyright [yyyy] [name of copyright owner] 18e8c27ec8Sbaban * 19e8c27ec8Sbaban * CDDL HEADER END 20e8c27ec8Sbaban */ 21e8c27ec8Sbaban /* 227a8a68f5SJulian Pullen * Copyright 2009 Sun Microsystems, Inc. All rights reserved. 23e8c27ec8Sbaban * Use is subject to license terms. 24e8c27ec8Sbaban */ 25e8c27ec8Sbaban 26e8c27ec8Sbaban #ifndef _NLDAPUTILS_H 27e8c27ec8Sbaban #define _NLDAPUTILS_H 28e8c27ec8Sbaban 29e8c27ec8Sbaban #include <stdio.h> 30e8c27ec8Sbaban #include <stdlib.h> 31e8c27ec8Sbaban #include <stdarg.h> 32e8c27ec8Sbaban #include <synch.h> 33e8c27ec8Sbaban #include <thread.h> 34e8c27ec8Sbaban #include <libintl.h> 35e8c27ec8Sbaban #include <strings.h> 36e8c27ec8Sbaban #include <inttypes.h> 37*9b214d32SJordan Brown #include <rpcsvc/idmap_prot.h> 38e8c27ec8Sbaban #include "idmapd.h" 39e8c27ec8Sbaban #include "idmap_config.h" 40e8c27ec8Sbaban 41e8c27ec8Sbaban #ifdef __cplusplus 42e8c27ec8Sbaban extern "C" { 43e8c27ec8Sbaban #endif 44e8c27ec8Sbaban 45479ac375Sdm199847 extern idmap_retcode nldap_lookup_one(lookup_state_t *, idmap_mapping *, 46479ac375Sdm199847 idmap_id_res *); 47e8c27ec8Sbaban extern idmap_retcode nldap_lookup_batch(lookup_state_t *, 48e8c27ec8Sbaban idmap_mapping_batch *, idmap_ids_res *); 49479ac375Sdm199847 extern char *sanitize_for_ldap_filter(const char *); 50e8c27ec8Sbaban 51e8c27ec8Sbaban #ifdef __cplusplus 52e8c27ec8Sbaban } 53e8c27ec8Sbaban #endif 54e8c27ec8Sbaban 55e8c27ec8Sbaban #endif /* _NLDAPUTILS_H */ 56