/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (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
*/
/* LINTLIBRARY */
/* PROTOLIB1 */
/*
*/
#include "ns_sldap.h"
/*
* Simplified LDAP Naming APIs
*/
int __ns_ldap_list(
const char *service,
const char *filter,
char **realfilter, const void *userdata),
const char * const *attribute,
const int flags,
const void *userdata);
int __ns_ldap_list_sort(
const char *service,
const char *filter,
const char *sortattr,
char **realfilter, const void *userdata),
const char * const *attribute,
const int flags,
const void *userdata);
int __ns_ldap_addAttr(
const char *service,
const char *dn,
const ns_ldap_attr_t * const *attr,
const int flags,
int __ns_ldap_delAttr(
const char *service,
const char *dn,
const ns_ldap_attr_t * const *attr,
const int flags,
int __ns_ldap_repAttr(
const char *service,
const char *dn,
const ns_ldap_attr_t * const *attr,
const int flags,
int __ns_ldap_addEntry(
const char *service,
const char *dn,
const ns_ldap_entry_t *entry,
const int flags,
const char *servicetype,
const char *basedn,
const void *data,
const int create,
const int flags,
int __ns_ldap_delEntry(
const char *service,
const char *dn,
const int flags,
int __ns_ldap_firstEntry(
const char *service,
const char *filter,
const char *sortattr,
char **realfilter, const void *userdata),
const char * const *attribute,
const int flags,
void **cookie,
const void *userdata);
int __ns_ldap_nextEntry(
void *cookie,
int __ns_ldap_endEntry(
void **cookie,
int __ns_ldap_freeResult(
int __ns_ldap_freeError(
int __ns_ldap_freeCookie(
void **cookie);
int __ns_ldap_uid2dn(
const char *uid,
char **userDN,
ns_ldap_error_t ** errorp);
int __ns_ldap_host2dn(
const char *host,
const char *domain,
char **hostDN,
ns_ldap_error_t ** errorp);
int __ns_ldap_dn2domain(
const char *dn,
char **domain,
int __ns_ldap_auth(
const int flag,
int __ns_ldap_err2str(
int err,
char **strmsg);
int __ns_ldap_setParam(
const ParamIndexType type,
const void *data,
int __ns_ldap_getParam(
const ParamIndexType type,
void ***data,
int __ns_ldap_freeParam(
void ***data);
char **__ns_ldap_getAttr(
const ns_ldap_entry_t *entry,
const char *attrname);
const char *service,
char **basedn,
ns_ldap_error_t ** errorp);
char *__s_api_get_canonical_name(
int case_ignore);
void __ns_ldap_setServer(
int set);
void);
char *file);
char *filename);
int verbose);
void __ns_ldap_default_config(
void);
int __ns_ldap_download(
const char *profile,
char *addr,
char *baseDN,
int foreground,
int mode_verbose,
int mode_quiet,
const char *fname,
ns_ldap_error_t **errpp);
int foreground,
int mode_verbose,
int mode_quiet,
ns_ldap_error_t **errpp);
int foreground,
int mode_verbose,
int mode_quiet,
ns_ldap_error_t **errpp);