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 /* 22*6616Sdm199847 * Copyright 2008 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 #pragma ident "%Z%%M% %I% %E% SMI" 305731Sbaban 315731Sbaban #include <stdio.h> 325731Sbaban #include <stdlib.h> 335731Sbaban #include <syslog.h> 345731Sbaban #include <stdarg.h> 355731Sbaban #include <synch.h> 365731Sbaban #include <thread.h> 375731Sbaban #include <libintl.h> 385731Sbaban #include <strings.h> 395731Sbaban #include <inttypes.h> 405731Sbaban #include "idmap_prot.h" 415731Sbaban #include "idmapd.h" 425731Sbaban #include "idmap_config.h" 435731Sbaban 445731Sbaban #ifdef __cplusplus 455731Sbaban extern "C" { 465731Sbaban #endif 475731Sbaban 48*6616Sdm199847 extern idmap_retcode nldap_lookup_one(lookup_state_t *, idmap_mapping *, 49*6616Sdm199847 idmap_id_res *); 505731Sbaban extern idmap_retcode nldap_lookup_batch(lookup_state_t *, 515731Sbaban idmap_mapping_batch *, idmap_ids_res *); 52*6616Sdm199847 extern char *sanitize_for_ldap_filter(const char *); 535731Sbaban 545731Sbaban #ifdef __cplusplus 555731Sbaban } 565731Sbaban #endif 575731Sbaban 585731Sbaban #endif /* _NLDAPUTILS_H */ 59