]> git.sur5r.net Git - openldap/blobdiff - include/ldap_defaults.h
Update copyright (including with or without modification clarification)
[openldap] / include / ldap_defaults.h
index 1f26c30a2cf994e22d69a95b8bbd9375b834c457..a410df839f6e9c3484dccef0b6d4fab122d2ccee 100644 (file)
@@ -1,11 +1,13 @@
+/* $OpenLDAP$ */
 /*
- * Copyright 1998,1999 The OpenLDAP Foundation, Redwood City, California, USA
+ * Copyright 1998-2001 The OpenLDAP Foundation, Redwood City, California, USA
  * All rights reserved.
  *
- * Redistribution and use in source and binary forms are permitted only
- * as authorized by the OpenLDAP Public License.  A copy of this
- * license is available at http://www.OpenLDAP.org/license.html or
- * in file LICENSE in the top-level directory of the distribution.
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted only as authorized by the OpenLDAP
+ * Public License.  A copy of this license is available at
+ * http://www.OpenLDAP.org/license.html or in file LICENSE in the
+ * top-level directory of the distribution.
  */
 /* Portions
  * Copyright (c) 1994 Regents of the University of Michigan.
@@ -21,7 +23,7 @@
 
 /*
  * This file controls defaults for OpenLDAP package.
- * You should not change any of these settings.
+ * You probably do not need to edit the defaults provided by this file.
  */
 
 #ifndef _LDAP_DEFAULTS_H
 #define LDAP_USERRC_FILE "ldaprc"
 #define LDAP_ENV_PREFIX "LDAP"
 
+/* default ldapi:// socket */
+#define LDAPI_SOCK LDAP_TMPDIR LDAP_DIRSEP ".ldapi_sock"
 
-/*********************************************************************
- *                                                                   *
- * You probably do not need to edit anything below this point        *
- *                                                                   *
- *********************************************************************/
+/* default file: URI prefix */
+#define LDAP_FILE_URI_PREFIX "file://" LDAP_TMPDIR LDAP_DIRSEP
 
 /*
  * SHARED DEFINITIONS - other things you can change
@@ -81,8 +82,10 @@ Please try again later.\r\n"
 #define FINGER_DEREF           LDAP_DEREF_FINDING
        /* attribute to use when sorting results */
 #define FINGER_SORT_ATTR       SORT_ATTR
+#ifdef LDAP_UFN
        /* enable ufn support */
 #define FINGER_UFN
+#endif
        /* timeout for searches */
 #define FINGER_TIMEOUT         60
        /* number of DN components to show in entry displays */
@@ -99,8 +102,10 @@ Please try again later.\r\n"
 #define GO500_SORT_ATTR        SORT_ATTR
        /* timeout for searches */
 #define GO500_TIMEOUT  180
+#ifdef LDAP_UFN
        /* enable ufn support */
 #define GO500_UFN
+#endif
        /*
         * only set and uncomment this if your hostname() does not return
         * a fully qualified hostname
@@ -118,8 +123,10 @@ Please try again later.\r\n"
 #define GO500GW_PORT           7777
        /* timeout on all searches */
 #define GO500GW_TIMEOUT                180
+#ifdef LDAP_UFN
        /* enable ufn support */
 #define GO500GW_UFN
+#endif
        /* attribute to use when sorting results */
 #define GO500GW_SORT_ATTR      SORT_ATTR
        /*
@@ -146,8 +153,10 @@ Please try again later.\r\n"
 #define RCPT500_SORT_ATTR      SORT_ATTR
        /* max number of hits displayed in full before a list is presented */
 #define RCPT500_LISTLIMIT      1
+#ifdef LDAP_UFN
        /* enable ufn support */
 #define RCPT500_UFN
+#endif
        /* number of DN components to show in entry displays */
 #define RCPT500_RDNCOUNT       DEFAULT_RDNCOUNT        
 
@@ -200,6 +209,7 @@ Please try again later.\r\n"
  */
        /* location of the default slapd config file */
 #define SLAPD_DEFAULT_CONFIGFILE       LDAP_SYSCONFDIR LDAP_DIRSEP "slapd.conf"
+#define SLAPD_DEFAULT_UCDATA           LDAP_DATADIR LDAP_DIRSEP "ucdata"
        /* default max deref depth for aliases */
 #define SLAPD_DEFAULT_MAXDEREFDEPTH    15      
        /* default sizelimit on number of entries from a search */
@@ -207,14 +217,16 @@ Please try again later.\r\n"
        /* default timelimit to spend on a search */
 #define SLAPD_DEFAULT_TIMELIMIT                3600
        /* minimum max ids that a single index entry can map to in ldbm */
-#define SLAPD_LDBM_MIN_MAXIDS          4000
-
-/* the following DNs must be normalized and in uppercase! */
-       /* dn of the special "monitor" entry */
-#define SLAPD_MONITOR_DN               "CN=MONITOR"
-       /* dn of the special "config" entry */
-#define SLAPD_CONFIG_DN                        "CN=CONFIG"
-       /* dn of the special "schema" entry */
-#define SLAPD_SCHEMA_DN                        "CN=SCHEMA"
+#define SLAPD_LDBM_MIN_MAXIDS          (8192-4)
+
+/* the following DNs must be normalized! */
+       /* dn of the default subschema subentry */
+#define SLAPD_SCHEMA_DN                        "cn=Subschema"
+#if 0
+       /* dn of the default "monitor" subentry */
+#define SLAPD_MONITOR_DN               "cn=Monitor"
+       /* dn of the default "config" subentry */
+#define SLAPD_CONFIG_DN                        "cn=Config"
+#endif
 
 #endif /* _LDAP_CONFIG_H */