xref: /netbsd-src/external/bsd/openldap/dist/include/ldap_defaults.h (revision 549b59ed3ccf0d36d3097190a0db27b770f3a839)
1*549b59edSchristos /*	$NetBSD: ldap_defaults.h,v 1.3 2021/08/14 16:14:55 christos Exp $	*/
24e6df137Slukem 
3d11b170bStron /* $OpenLDAP$ */
42de962bdSlukem /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
52de962bdSlukem  *
6*549b59edSchristos  * Copyright 1998-2021 The OpenLDAP Foundation.
72de962bdSlukem  * All rights reserved.
82de962bdSlukem  *
92de962bdSlukem  * Redistribution and use in source and binary forms, with or without
102de962bdSlukem  * modification, are permitted only as authorized by the OpenLDAP
112de962bdSlukem  * Public License.
122de962bdSlukem  *
132de962bdSlukem  * A copy of this license is available in file LICENSE in the
142de962bdSlukem  * top-level directory of the distribution or, alternatively, at
152de962bdSlukem  * <http://www.OpenLDAP.org/license.html>.
162de962bdSlukem  */
172de962bdSlukem /* Portions Copyright (c) 1994 Regents of the University of Michigan.
182de962bdSlukem  * All rights reserved.
192de962bdSlukem  *
202de962bdSlukem  * Redistribution and use in source and binary forms are permitted
212de962bdSlukem  * provided that this notice is preserved and that due credit is given
222de962bdSlukem  * to the University of Michigan at Ann Arbor. The name of the University
232de962bdSlukem  * may not be used to endorse or promote products derived from this
242de962bdSlukem  * software without specific prior written permission. This software
252de962bdSlukem  * is provided ``as is'' without express or implied warranty.
262de962bdSlukem  */
272de962bdSlukem 
282de962bdSlukem /*
292de962bdSlukem  * This file controls defaults for OpenLDAP package.
302de962bdSlukem  * You probably do not need to edit the defaults provided by this file.
312de962bdSlukem  */
322de962bdSlukem 
332de962bdSlukem #ifndef _LDAP_DEFAULTS_H
342de962bdSlukem #define _LDAP_DEFAULTS_H
352de962bdSlukem 
362de962bdSlukem 
372de962bdSlukem #include <ldap_config.h>
382de962bdSlukem 
392de962bdSlukem #define LDAP_CONF_FILE	 LDAP_SYSCONFDIR LDAP_DIRSEP "ldap.conf"
402de962bdSlukem #define LDAP_USERRC_FILE "ldaprc"
412de962bdSlukem #define LDAP_ENV_PREFIX "LDAP"
422de962bdSlukem 
432de962bdSlukem /* default ldapi:// socket */
442de962bdSlukem #define LDAPI_SOCK LDAP_RUNDIR LDAP_DIRSEP "run" LDAP_DIRSEP "ldapi"
452de962bdSlukem 
462de962bdSlukem /*
472de962bdSlukem  * SLAPD DEFINITIONS
482de962bdSlukem  */
492de962bdSlukem 	/* location of the default slapd config file */
502de962bdSlukem #define SLAPD_DEFAULT_CONFIGFILE	LDAP_SYSCONFDIR LDAP_DIRSEP "slapd.conf"
512de962bdSlukem #define SLAPD_DEFAULT_CONFIGDIR		LDAP_SYSCONFDIR LDAP_DIRSEP "slapd.d"
522de962bdSlukem #define SLAPD_DEFAULT_DB_DIR		LDAP_RUNDIR LDAP_DIRSEP "openldap-data"
532de962bdSlukem #define SLAPD_DEFAULT_DB_MODE		0600
542de962bdSlukem #define SLAPD_DEFAULT_UCDATA		LDAP_DATADIR LDAP_DIRSEP "ucdata"
552de962bdSlukem 	/* default max deref depth for aliases */
562de962bdSlukem #define SLAPD_DEFAULT_MAXDEREFDEPTH	15
572de962bdSlukem 	/* default sizelimit on number of entries from a search */
582de962bdSlukem #define SLAPD_DEFAULT_SIZELIMIT		500
592de962bdSlukem 	/* default timelimit to spend on a search */
602de962bdSlukem #define SLAPD_DEFAULT_TIMELIMIT		3600
612de962bdSlukem 
622de962bdSlukem /* the following DNs must be normalized! */
632de962bdSlukem 	/* dn of the default subschema subentry */
642de962bdSlukem #define SLAPD_SCHEMA_DN			"cn=Subschema"
652de962bdSlukem 	/* dn of the default "monitor" subentry */
662de962bdSlukem #define SLAPD_MONITOR_DN		"cn=Monitor"
672de962bdSlukem 
68*549b59edSchristos /*
69*549b59edSchristos  * LLOADD DEFINITIONS
70*549b59edSchristos  */
71*549b59edSchristos #define LLOADD_DEFAULT_CONFIGFILE	LDAP_SYSCONFDIR LDAP_DIRSEP "lloadd.conf"
72*549b59edSchristos 
732de962bdSlukem #endif /* _LDAP_CONFIG_H */
74