/*
* 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
*/
/*
* Copyright 2009 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _NS_CACHE_DOOR_H
#define _NS_CACHE_DOOR_H
/*
* Definitions for client side of doors-based ldap caching
*/
#ifdef __cplusplus
extern "C" {
#endif
#include <netdb.h>
#include <grp.h>
#include <pwd.h>
/*
* statistics & control structure
*/
typedef struct ldap_stat {
} ldap_stat_t;
/*
* Structure used to transfer arrays of strings.
* Buffer format:
* count
* array of offsets from start of buffer
* array of characters of strings
* charp = buf + ldap_offsets[n];
*/
typedef struct ldap_strlist {
/*
*/
typedef struct ldap_get_chg_cookie {
typedef struct ldap_get_change {
typedef struct ldap_get_change_out {
typedef struct ldap_config_out {
typedef struct ldap_admin_mod_result {
/*
* structure returned by server for all calls
*/
typedef struct {
int ldap_bufferbytesused;
int ldap_return_code;
int ldap_errno;
union {
} ldap_u;
/*
* calls look like this
*/
typedef struct {
int ldap_callnumber;
union {
struct {
int a_type;
int a_length;
char a_data[sizeof (int)];
} addr;
} ldap_u;
} ldap_call_t;
/*
* how the client views the call process
*/
typedef union {
char ldap_buff[sizeof (int)];
} ldap_data_t;
/* Version 1 Cache Manager calls */
/* Cache manager ping */
#define NULLCALL 0
/* NativeLDAP I Get Config */
/*
* administrative calls
*/
/*
* debug levels
*/
#define DBG_OFF 0
/* Version 2 Cache Manager calls */
/* NativeLDAP II Get Server and RootDSE Info */
/* NativeLDAP II Get cached data */
/* NativeLDAP II Set cached data */
/* NativeLDAP II get cache data statistics */
/* Configuration change or server status change notification */
/* perform admin modify via ldap_cachemgr */
/* get admin credentials for shadow lookups */
/*
* GETLDAPSERVER request flags
*/
/*
* GETSTATUSCHANGE operation: start or stop
*/
/*
* GETSTATUSCHANGE change type: config or server
*/
/*
* Server status change
*/
/*
*/
/*
* Max size name we allow to be passed to avoid
* buffer overflow problems
*/
/*
* defines for client-server interaction
*/
#define NS_CACHE_SUCCESS 0
int
int
int
void
#ifdef __cplusplus
}
#endif
#endif /* _NS_CACHE_DOOR_H */