/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (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 1999-2003 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
/*
* Turning DEBUG on for this library opens a potential security hole. If
* the library is compiled with DEBUG, it should only be done for internal
* testing.
*/
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <ctype.h>
#include <fcntl.h>
#include <syslog.h>
#ifdef DEBUG
int __ldap_debug_api;
int __ldap_debug_ldap;
int __ldap_debug_servers;
struct option {
char *name;
int type;
void *address;
};
{ 0, 0, 0 },
};
#ifdef NS_NO_STDIO
extern int __ns_ldap_raise_fd(int);
#endif
static void
{
int n;
char *p;
int fd;
case OPT_STRING:
break;
case OPT_INT:
n = 1;
else
break;
case OPT_FILE:
/* this is a potential security risk */
/* as setuid programs will create files */
/* owned by root. This is only to be */
/* used for internal debugging. */
#ifdef NS_NO_STDIO
#endif
break;
}
break;
}
}
}
#endif
void
{
#ifdef DEBUG
char *p;
char *base;
p = getenv("LDAP_OPTIONS");
if (p == NULL)
return;
while (*p) {
while (isspace(*p))
p++;
if (*p == '\0')
break;
base = p;
while (*p && *p != '=' && !isspace(*p))
p++;
if (*p == '=') {
p++;
base = p;
while (*p && !isspace(*p))
p++;
} else {
optval[0] = '\0';
}
}
#endif
}
/*ARGSUSED*/
void
{
if (mesg)
}