dit_access_utils.h revision 7c478bd95313f5f23a4c958a745db2134aa03244
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (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
*/
/*
* Copyright 2004 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _DIT_ACCESS_UTILS_H
#define _DIT_ACCESS_UTILS_H
#pragma ident "%Z%%M% %I% %E% SMI"
#ifdef __cplusplus
extern "C" {
#endif
#ifndef ERROR
#define ERROR -1
#endif
/* Keywords */
#define N2LKEY "rf_key"
#define N2LIPKEY "rf_ipkey"
#define N2LSEARCHKEY "rf_searchkey"
#define N2LSEARCHIPKEY "rf_searchipkey"
#define N2LDOMAIN "rf_domain"
#define N2LCOMMENT "rf_comment"
/* libldap ignores usec. Hence using 1 sec timeout */
#define SINGLE_ACCESS_TIMEOUT_SEC 1
#define SINGLE_ACCESS_TIMEOUT_USEC 0
extern __yp_domain_context_t ypDomains;
__nis_table_mapping_t *t, int *nv,
int *statP);
extern const char *getObjectClass(char *rdn);
int *ldap_rc);
char **temp_entries, char **temp_ttl);
#ifdef __cplusplus
}
#endif
#endif /* _DIT_ACCESS_UTILS_H */