diff options
Diffstat (limited to 'usr/src/lib/libadutils/common/adutils.c')
-rw-r--r-- | usr/src/lib/libadutils/common/adutils.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/usr/src/lib/libadutils/common/adutils.c b/usr/src/lib/libadutils/common/adutils.c index 6afed3b132..1a29e6fe9e 100644 --- a/usr/src/lib/libadutils/common/adutils.c +++ b/usr/src/lib/libadutils/common/adutils.c @@ -19,8 +19,7 @@ * CDDL HEADER END */ /* - * Copyright 2009 Sun Microsystems, Inc. All rights reserved. - * Use is subject to license terms. + * Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved. */ #include <alloca.h> @@ -57,6 +56,8 @@ static char *adutils_sid_ber2str(BerValue *bvalues); static void adutils_lookup_batch_unlock(adutils_query_state_t **state); static void delete_ds(adutils_ad_t *ad, const char *host, int port); +int ad_debug[AD_DEBUG_MAX+1] = {0}; + typedef struct binary_attrs { const char *name; char *(*ber2str)(BerValue *bvalues); @@ -1703,3 +1704,10 @@ domain_eq(const char *a, const char *b) return (u8_strcmp(a, b, 0, U8_STRCMP_CI_LOWER, U8_UNICODE_LATEST, &err) == 0 && err == 0); } + +void +adutils_set_debug(enum ad_debug item, int value) +{ + if (item >= 0 && item <= AD_DEBUG_MAX) + ad_debug[item] = value; +} |