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 /* 22*479ac375Sdm199847 * Copyright 2008 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 #pragma ident "%Z%%M% %I% %E% SMI" 30e8c27ec8Sbaban 31e8c27ec8Sbaban #include <stdio.h> 32e8c27ec8Sbaban #include <stdlib.h> 33e8c27ec8Sbaban #include <syslog.h> 34e8c27ec8Sbaban #include <stdarg.h> 35e8c27ec8Sbaban #include <synch.h> 36e8c27ec8Sbaban #include <thread.h> 37e8c27ec8Sbaban #include <libintl.h> 38e8c27ec8Sbaban #include <strings.h> 39e8c27ec8Sbaban #include <inttypes.h> 40e8c27ec8Sbaban #include "idmap_prot.h" 41e8c27ec8Sbaban #include "idmapd.h" 42e8c27ec8Sbaban #include "idmap_config.h" 43e8c27ec8Sbaban 44e8c27ec8Sbaban #ifdef __cplusplus 45e8c27ec8Sbaban extern "C" { 46e8c27ec8Sbaban #endif 47e8c27ec8Sbaban 48*479ac375Sdm199847 extern idmap_retcode nldap_lookup_one(lookup_state_t *, idmap_mapping *, 49*479ac375Sdm199847 idmap_id_res *); 50e8c27ec8Sbaban extern idmap_retcode nldap_lookup_batch(lookup_state_t *, 51e8c27ec8Sbaban idmap_mapping_batch *, idmap_ids_res *); 52*479ac375Sdm199847 extern char *sanitize_for_ldap_filter(const char *); 53e8c27ec8Sbaban 54e8c27ec8Sbaban #ifdef __cplusplus 55e8c27ec8Sbaban } 56e8c27ec8Sbaban #endif 57e8c27ec8Sbaban 58e8c27ec8Sbaban #endif /* _NLDAPUTILS_H */ 59