libadutils.h (e3f2c991) | libadutils.h (148c5f43) |
---|---|
1/* 2 * CDDL HEADER START 3 * 4 * The contents of this file are subject to the terms of the 5 * Common Development and Distribution License (the "License"). 6 * You may not use this file except in compliance with the License. 7 * 8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE --- 5 unchanged lines hidden (view full) --- 14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15 * If applicable, add the following below this CDDL HEADER, with the 16 * fields enclosed by brackets "[]" replaced with your own identifying 17 * information: Portions Copyright [yyyy] [name of copyright owner] 18 * 19 * CDDL HEADER END 20 */ 21/* | 1/* 2 * CDDL HEADER START 3 * 4 * The contents of this file are subject to the terms of the 5 * Common Development and Distribution License (the "License"). 6 * You may not use this file except in compliance with the License. 7 * 8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE --- 5 unchanged lines hidden (view full) --- 14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15 * If applicable, add the following below this CDDL HEADER, with the 16 * fields enclosed by brackets "[]" replaced with your own identifying 17 * information: Portions Copyright [yyyy] [name of copyright owner] 18 * 19 * CDDL HEADER END 20 */ 21/* |
22 * Copyright 2009 Sun Microsystems, Inc. All rights reserved. 23 * Use is subject to license terms. | 22 * Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved. |
24 */ 25 26#ifndef _LIBADUTILS_H 27#define _LIBADUTILS_H 28 29#include <stdlib.h> 30#include <stdio.h> 31#include <sys/types.h> 32#include <rpc/rpc.h> 33#include <ldap.h> 34 35#ifdef __cplusplus 36extern "C" { 37#endif 38 39#define ADUTILS_DEF_NUM_RETRIES 2 | 23 */ 24 25#ifndef _LIBADUTILS_H 26#define _LIBADUTILS_H 27 28#include <stdlib.h> 29#include <stdio.h> 30#include <sys/types.h> 31#include <rpc/rpc.h> 32#include <ldap.h> 33 34#ifdef __cplusplus 35extern "C" { 36#endif 37 38#define ADUTILS_DEF_NUM_RETRIES 2 |
39 40/* 41 * Symbolic constants for different sets of debug messages. 42 */ 43enum ad_debug { 44 AD_DEBUG_ALL = 0, 45 AD_DEBUG_DNS = 1, 46 AD_DEBUG_LDAP = 2, 47 AD_DEBUG_DISC = 3, 48 AD_DEBUG_MAX = 3 49}; 50 |
|
40#define ADUTILS_SID_MAX_SUB_AUTHORITIES 15 41#define ADUTILS_MAXBINSID\ 42 (1 + 1 + 6 + (ADUTILS_SID_MAX_SUB_AUTHORITIES * 4)) 43#define ADUTILS_MAXHEXBINSID (ADUTILS_MAXBINSID * 3) 44 45typedef struct adutils_ad adutils_ad_t; 46typedef struct adutils_entry adutils_entry_t; 47typedef struct adutils_result adutils_result_t; --- 78 unchanged lines hidden (view full) --- 126 * 127 * See $SRC/cmd/idmap/idmapd/adutils.c for an example of 128 * non-default callback routine. 129 * 130 */ 131 132typedef void (*adutils_logger)(int, const char *, ...); 133 | 51#define ADUTILS_SID_MAX_SUB_AUTHORITIES 15 52#define ADUTILS_MAXBINSID\ 53 (1 + 1 + 6 + (ADUTILS_SID_MAX_SUB_AUTHORITIES * 4)) 54#define ADUTILS_MAXHEXBINSID (ADUTILS_MAXBINSID * 3) 55 56typedef struct adutils_ad adutils_ad_t; 57typedef struct adutils_entry adutils_entry_t; 58typedef struct adutils_result adutils_result_t; --- 78 unchanged lines hidden (view full) --- 137 * 138 * See $SRC/cmd/idmap/idmapd/adutils.c for an example of 139 * non-default callback routine. 140 * 141 */ 142 143typedef void (*adutils_logger)(int, const char *, ...); 144 |
145extern void adutils_set_debug(enum ad_debug item, int val); |
|
134 135extern adutils_rc adutils_ad_alloc(adutils_ad_t **new_ad, 136 const char *domain_name, 137 adutils_ad_partition_t part); 138extern void adutils_ad_free(adutils_ad_t **ad); 139extern adutils_rc adutils_add_ds(adutils_ad_t *ad, 140 const char *host, int port); 141extern adutils_rc adutils_add_domain(adutils_ad_t *ad, --- 48 unchanged lines hidden --- | 146 147extern adutils_rc adutils_ad_alloc(adutils_ad_t **new_ad, 148 const char *domain_name, 149 adutils_ad_partition_t part); 150extern void adutils_ad_free(adutils_ad_t **ad); 151extern adutils_rc adutils_add_ds(adutils_ad_t *ad, 152 const char *host, int port); 153extern adutils_rc adutils_add_domain(adutils_ad_t *ad, --- 48 unchanged lines hidden --- |