ldap_defaults.h 2.5 KB

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