adutils_impl.h (bd428526) adutils_impl.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 _ADUTILS_IMPL_H
27#define _ADUTILS_IMPL_H
28
29#include <stdlib.h>
30#include <stdio.h>
31#include <sys/types.h>
32#include <ldap.h>
33#include <pthread.h>
34#include "addisc.h"
35#include <rpcsvc/idmap_prot.h>
36#include "libadutils.h"
37
38#ifdef __cplusplus
39extern "C" {
40#endif
41
23 */
24
25#ifndef _ADUTILS_IMPL_H
26#define _ADUTILS_IMPL_H
27
28#include <stdlib.h>
29#include <stdio.h>
30#include <sys/types.h>
31#include <ldap.h>
32#include <pthread.h>
33#include "addisc.h"
34#include <rpcsvc/idmap_prot.h>
35#include "libadutils.h"
36
37#ifdef __cplusplus
38extern "C" {
39#endif
40
41#define DBG(type, lev) \
42 (ad_debug[AD_DEBUG_##type] >= (lev) || \
43 ad_debug[AD_DEBUG_ALL] >= (lev))
44extern int ad_debug[AD_DEBUG_MAX + 1];
45
42#define ADUTILS_SEARCH_TIMEOUT 3
43#define ADUTILS_LDAP_OPEN_TIMEOUT 1
44
45
46typedef struct adutils_sid {
47 uchar_t version;
48 uchar_t sub_authority_count;
49 uint64_t authority; /* really, 48-bits */

--- 119 unchanged lines hidden ---
46#define ADUTILS_SEARCH_TIMEOUT 3
47#define ADUTILS_LDAP_OPEN_TIMEOUT 1
48
49
50typedef struct adutils_sid {
51 uchar_t version;
52 uchar_t sub_authority_count;
53 uint64_t authority; /* really, 48-bits */

--- 119 unchanged lines hidden ---