+/* $OpenLDAP$ */
/*
* Copyright (c) 1990 Regents of the University of Michigan.
* All rights reserved.
* may not be used to endorse or promote products derived from this
* software without specific prior written permission. This software
* is provided ``as is'' without express or implied warranty.
+ *
+ * Copyright 1998-2000 The OpenLDAP Foundation
+ * COPYING RESTRICTIONS APPLY. See COPYRIGHT File in top level directory
+ * of this package for details.
*/
#include "portable.h"
#include <ac/stdlib.h>
#include <ac/ctype.h>
+#include <ac/param.h>
#include <ac/signal.h>
#include <ac/string.h>
#include <ac/sysexits.h>
#include <sys/stat.h>
-#ifdef HAVE_SYS_PARAM_H
-#include <sys/param.h>
-#endif
-
#ifdef HAVE_SYS_RESOURCE_H
#include <sys/resource.h>
#endif
-#include "lber.h"
-#include "ldap.h"
+#include <ldap.h>
#include "ldap_defaults.h"
} Base;
Base base[] = {
- {"ou=People, dc=OpenLDAP, dc=org",
+ {"ou=People, dc=example, dc=com",
0, USER,
{"uid=%s", "cn=%s", NULL}},
- {"ou=System Groups, ou=Groups, dc=OpenLDAP, dc=org",
+ {"ou=System Groups, ou=Groups, dc=example, dc=com",
1, 0xff,
{"(&(cn=%s)(associatedDomain=%h))", NULL, NULL}},
- {"ou=User Groups, ou=Groups, dc=OpenLDAP, dc=org",
+ {"ou=User Groups, ou=Groups, dc=example, dc=com",
1, 0xff,
{"(&(cn=%s)(associatedDomain=%h))", NULL, NULL}},
{NULL}
int numto, ngroups, numerr, nargs;
int i, j;
- if ( (myname = strrchr( argv[0], '/' )) == NULL )
+ if ( (myname = strrchr( argv[0], *LDAP_DIRSEP )) == NULL )
myname = strdup( argv[0] );
else
myname = strdup( myname + 1 );
#ifdef LOG_MAIL
openlog( myname, OPENLOG_OPTIONS, LOG_MAIL );
-#else
+#elif LOG_DEBUG
openlog( myname, OPENLOG_OPTIONS );
#endif