1 /* $NetBSD: ldap_defaults.h,v 1.4 2025/09/05 21:16:19 christos Exp $ */ 2 3 /* $OpenLDAP$ */ 4 /* This work is part of OpenLDAP Software <http://www.openldap.org/>. 5 * 6 * Copyright 1998-2024 The OpenLDAP Foundation. 7 * All rights reserved. 8 * 9 * Redistribution and use in source and binary forms, with or without 10 * modification, are permitted only as authorized by the OpenLDAP 11 * Public License. 12 * 13 * A copy of this license is available in file LICENSE in the 14 * top-level directory of the distribution or, alternatively, at 15 * <http://www.OpenLDAP.org/license.html>. 16 */ 17 /* Portions Copyright (c) 1994 Regents of the University of Michigan. 18 * All rights reserved. 19 * 20 * Redistribution and use in source and binary forms are permitted 21 * provided that this notice is preserved and that due credit is given 22 * to the University of Michigan at Ann Arbor. The name of the University 23 * may not be used to endorse or promote products derived from this 24 * software without specific prior written permission. This software 25 * is provided ``as is'' without express or implied warranty. 26 */ 27 28 /* 29 * This file controls defaults for OpenLDAP package. 30 * You probably do not need to edit the defaults provided by this file. 31 */ 32 33 #ifndef _LDAP_DEFAULTS_H 34 #define _LDAP_DEFAULTS_H 35 36 37 #include <ldap_config.h> 38 39 #define LDAP_CONF_FILE LDAP_SYSCONFDIR LDAP_DIRSEP "ldap.conf" 40 #define LDAP_USERRC_FILE "ldaprc" 41 #define LDAP_ENV_PREFIX "LDAP" 42 43 /* default ldapi:// socket */ 44 #ifndef LDAPI_SOCK 45 #define LDAPI_SOCK LDAP_RUNDIR LDAP_DIRSEP "run" LDAP_DIRSEP "ldapi" 46 #endif 47 48 /* 49 * SLAPD DEFINITIONS 50 */ 51 /* location of the default slapd config file */ 52 #ifndef SLAPD_DEFAULT_CONFIGFILE 53 #define SLAPD_DEFAULT_CONFIGFILE LDAP_SYSCONFDIR LDAP_DIRSEP "slapd.conf" 54 #endif 55 #ifndef SLAPD_DEFAULT_CONFIGDIR 56 #define SLAPD_DEFAULT_CONFIGDIR LDAP_SYSCONFDIR LDAP_DIRSEP "slapd.d" 57 #endif 58 #ifndef SLAPD_DEFAULT_DB_DIR 59 #define SLAPD_DEFAULT_DB_DIR LDAP_RUNDIR LDAP_DIRSEP "openldap-data" 60 #endif 61 #define SLAPD_DEFAULT_DB_MODE 0600 62 /* default max deref depth for aliases */ 63 #define SLAPD_DEFAULT_MAXDEREFDEPTH 15 64 /* default sizelimit on number of entries from a search */ 65 #define SLAPD_DEFAULT_SIZELIMIT 500 66 /* default timelimit to spend on a search */ 67 #define SLAPD_DEFAULT_TIMELIMIT 3600 68 69 /* the following DNs must be normalized! */ 70 /* dn of the default subschema subentry */ 71 #define SLAPD_SCHEMA_DN "cn=Subschema" 72 /* dn of the default "monitor" subentry */ 73 #define SLAPD_MONITOR_DN "cn=Monitor" 74 75 /* 76 * LLOADD DEFINITIONS 77 */ 78 #define LLOADD_DEFAULT_CONFIGFILE LDAP_SYSCONFDIR LDAP_DIRSEP "lloadd.conf" 79 80 #endif /* _LDAP_CONFIG_H */ 81