/*
* 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 2014 Nexenta Systems, Inc. All rights reserved.
*/
#ifndef _AD_COMMON_H
#define _AD_COMMON_H
#ifdef __cplusplus
extern "C" {
#endif
#include <ctype.h>
#include <nss_dbdefs.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <strings.h>
#include <signal.h>
#include <idmap.h>
#include <rpcsvc/idmap_prot.h>
#include <idmap_priv.h>
#include "addisc.h"
#include "libadutils.h"
#define RESET_ERRNO()\
errno = 0;
/*
* Superset the nss_backend_t abstract data type. This ADT has
* been extended to include AD associated data structures.
*/
typedef enum {
NSS_AD_DB_NONE = 0,
struct ad_backend {
char *tablename;
const char **attrs;
char *buffer;
int buflen;
};
typedef struct nssad_prop {
char *domain_name;
} nssad_prop_t;
typedef struct nssad_cfg {
} nssad_cfg_t;
typedef struct nssad_state {
const char *searchfilter, const char *dname,
int *try_idmap);
int filter_name_size);
#ifdef __cplusplus
}
#endif
#endif /* _AD_COMMON_H */