15731Sbaban /* 25731Sbaban * CDDL HEADER START 35731Sbaban * 45731Sbaban * The contents of this file are subject to the terms of the 55731Sbaban * Common Development and Distribution License (the "License"). 65731Sbaban * You may not use this file except in compliance with the License. 75731Sbaban * 85731Sbaban * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 95731Sbaban * or http://www.opensolaris.org/os/licensing. 105731Sbaban * See the License for the specific language governing permissions 115731Sbaban * and limitations under the License. 125731Sbaban * 135731Sbaban * When distributing Covered Code, include this CDDL HEADER in each 145731Sbaban * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 155731Sbaban * If applicable, add the following below this CDDL HEADER, with the 165731Sbaban * fields enclosed by brackets "[]" replaced with your own identifying 175731Sbaban * information: Portions Copyright [yyyy] [name of copyright owner] 185731Sbaban * 195731Sbaban * CDDL HEADER END 205731Sbaban */ 215731Sbaban /* 228671SJulian.Pullen@Sun.COM * Copyright 2009 Sun Microsystems, Inc. All rights reserved. 235731Sbaban * Use is subject to license terms. 245731Sbaban */ 255731Sbaban 265731Sbaban #ifndef _NLDAPUTILS_H 275731Sbaban #define _NLDAPUTILS_H 285731Sbaban 295731Sbaban #include <stdio.h> 305731Sbaban #include <stdlib.h> 315731Sbaban #include <stdarg.h> 325731Sbaban #include <synch.h> 335731Sbaban #include <thread.h> 345731Sbaban #include <libintl.h> 355731Sbaban #include <strings.h> 365731Sbaban #include <inttypes.h> 37*9565SJordan.Brown@Sun.COM #include <rpcsvc/idmap_prot.h> 385731Sbaban #include "idmapd.h" 395731Sbaban #include "idmap_config.h" 405731Sbaban 415731Sbaban #ifdef __cplusplus 425731Sbaban extern "C" { 435731Sbaban #endif 445731Sbaban 456616Sdm199847 extern idmap_retcode nldap_lookup_one(lookup_state_t *, idmap_mapping *, 466616Sdm199847 idmap_id_res *); 475731Sbaban extern idmap_retcode nldap_lookup_batch(lookup_state_t *, 485731Sbaban idmap_mapping_batch *, idmap_ids_res *); 496616Sdm199847 extern char *sanitize_for_ldap_filter(const char *); 505731Sbaban 515731Sbaban #ifdef __cplusplus 525731Sbaban } 535731Sbaban #endif 545731Sbaban 555731Sbaban #endif /* _NLDAPUTILS_H */ 56