Back to index

openldap  2.4.31
ldap_defaults.h
Go to the documentation of this file.
00001 /* $OpenLDAP$ */
00002 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
00003  * 
00004  * Copyright 1998-2012 The OpenLDAP Foundation.
00005  * All rights reserved.
00006  *
00007  * Redistribution and use in source and binary forms, with or without
00008  * modification, are permitted only as authorized by the OpenLDAP
00009  * Public License.
00010  *
00011  * A copy of this license is available in file LICENSE in the
00012  * top-level directory of the distribution or, alternatively, at
00013  * <http://www.OpenLDAP.org/license.html>.
00014  */
00015 /* Portions Copyright (c) 1994 Regents of the University of Michigan.
00016  * All rights reserved.
00017  *
00018  * Redistribution and use in source and binary forms are permitted
00019  * provided that this notice is preserved and that due credit is given
00020  * to the University of Michigan at Ann Arbor. The name of the University
00021  * may not be used to endorse or promote products derived from this
00022  * software without specific prior written permission. This software
00023  * is provided ``as is'' without express or implied warranty.
00024  */
00025 
00026 /*
00027  * This file controls defaults for OpenLDAP package.
00028  * You probably do not need to edit the defaults provided by this file.
00029  */
00030 
00031 #ifndef _LDAP_DEFAULTS_H
00032 #define _LDAP_DEFAULTS_H
00033 
00034 
00035 #include <ldap_config.h>
00036 
00037 #define LDAP_CONF_FILE       LDAP_SYSCONFDIR LDAP_DIRSEP "ldap.conf"
00038 #define LDAP_USERRC_FILE "ldaprc"
00039 #define LDAP_ENV_PREFIX "LDAP"
00040 
00041 /* default ldapi:// socket */
00042 #define LDAPI_SOCK LDAP_RUNDIR LDAP_DIRSEP "run" LDAP_DIRSEP "ldapi"
00043 
00044 /*
00045  * SLAPD DEFINITIONS
00046  */
00047        /* location of the default slapd config file */
00048 #define SLAPD_DEFAULT_CONFIGFILE   LDAP_SYSCONFDIR LDAP_DIRSEP "slapd.conf"
00049 #define SLAPD_DEFAULT_CONFIGDIR           LDAP_SYSCONFDIR LDAP_DIRSEP "slapd.d"
00050 #define SLAPD_DEFAULT_DB_DIR              LDAP_RUNDIR LDAP_DIRSEP "openldap-data"
00051 #define SLAPD_DEFAULT_DB_MODE             0600
00052 #define SLAPD_DEFAULT_UCDATA              LDAP_DATADIR LDAP_DIRSEP "ucdata"
00053        /* default max deref depth for aliases */
00054 #define SLAPD_DEFAULT_MAXDEREFDEPTH       15
00055        /* default sizelimit on number of entries from a search */
00056 #define SLAPD_DEFAULT_SIZELIMIT           500
00057        /* default timelimit to spend on a search */
00058 #define SLAPD_DEFAULT_TIMELIMIT           3600
00059 
00060 /* the following DNs must be normalized! */
00061        /* dn of the default subschema subentry */
00062 #define SLAPD_SCHEMA_DN                   "cn=Subschema"
00063        /* dn of the default "monitor" subentry */
00064 #define SLAPD_MONITOR_DN           "cn=Monitor"
00065 
00066 #endif /* _LDAP_CONFIG_H */