Subversion Repositories configs

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
4 - 1
#
2
# See slapd.conf(5) for details on configuration options.
3
# This file should NOT be world readable.
4
#
5
include		/etc/openldap/schema/core.schema
6
include		/etc/openldap/schema/cosine.schema
7
include		/etc/openldap/schema/inetorgperson.schema
8
include		/etc/openldap/schema/nis.schema
9
include		/etc/openldap/schema/samba.schema
10
include		/etc/openldap/schema/zarafa.schema
11
 
12
# Allow LDAPv2 client connections.  This is NOT the default.
13
allow bind_v2
14
 
15
# Do not enable referrals until AFTER you have a working directory
16
# service AND an understanding of referrals.
17
#referral	ldap://root.openldap.org
18
 
19
pidfile		/var/run/openldap/slapd.pid
20
argsfile	/var/run/openldap/slapd.args
21
 
22
# Load dynamic backend modules:
23
# modulepath	/usr/sbin/openldap
24
# moduleload	back_bdb.la
25
# moduleload	back_ldap.la
26
# moduleload	back_ldbm.la
27
# moduleload	back_passwd.la
28
# moduleload	back_shell.la
29
 
30
# The next three lines allow use of TLS for encrypting connections using a
31
# dummy test certificate which you can generate by changing to
32
# /usr/share/ssl/certs, running "make slapd.pem", and fixing permissions on
33
# slapd.pem so that the ldap user or group can read it.  Your client software
34
# may balk at self-signed certificates, however.
35
#TLSCertificateFile /etc/pki/tls/certs/slapdcert.pem
36
#TLSCertificateKeyFile /etc/pki/tls/private/slapdkey.pem
37
#TLSCACertificateFile /etc/openldap/ca.pem
38
#TLSCipherSuite :SSLv3
39
 
40
# Sample security restrictions
41
#	Require integrity protection (prevent hijacking)
42
#	Require 112-bit (3DES or better) encryption for updates
43
#	Require 63-bit encryption for simple bind
44
# security ssf=1 update_ssf=112 simple_bind=64
45
 
46
# Sample access control policy:
47
#	Root DSE: allow anyone to read it
48
#	Subschema (sub)entry DSE: allow anyone to read it
49
#	Other DSEs:
50
#		Allow self write access
51
#		Allow authenticated users read access
52
#		Allow anonymous users to authenticate
53
#	Directives needed to implement policy:
54
# access to dn.base="" by * read
55
# access to dn.base="cn=Subschema" by * read
56
# access to *
57
#	by self write
58
#	by users read
59
#	by anonymous auth
60
#
61
# if no access controls are present, the default policy
62
# allows anyone and everyone to read anything but restricts
63
# updates to rootdn.  (e.g., "access to * by * read")
64
#
65
# rootdn can always read and write EVERYTHING!
66
 
67
#######################################################################
68
# ldbm and/or bdb database definitions
69
#######################################################################
70
 
71
database	bdb
72
suffix		"dc=ujsoftware,dc=com"
73
rootdn		"cn=Manager,dc=ujsoftware,dc=com"
74
# Cleartext passwords, especially for the rootdn, should
75
# be avoided.  See slappasswd(8) and slapd.conf(5) for details.
76
# Use of strong authentication encouraged.
77
# rootpw		kVxfoHHF
78
rootpw		{CRYPT}$2X7KXqudASgY
79
 
80
# The database directory MUST exist prior to running slapd AND
81
# should only be accessible by the slapd and slap tools.
82
# Mode 700 recommended.
83
directory	/var/lib/ldap
84
lastmod		on
85
 
86
# Indices to maintain for this database
87
index objectClass                       eq,pres
88
index ou,cn,sn,mail,givenname   	eq,pres,sub
89
index uidNumber,gidNumber,memberUid     eq,pres
90
index loginShell			eq,pres
91
## required to support pdb_getsampwnam
92
index uid                     		pres,sub,eq
93
## required to support pdb_getsambapwrid()
94
index displayName             		pres,sub,eq
95
index nisMapName,nisMapEntry            eq,pres,sub
96
index sambaSID              		eq
97
index sambaPrimaryGroupSID 		eq
98
index sambaDomainName       		eq
99
index default              		sub
100
 
101
 
102
# users can authenticate and change their password
103
access to attrs=userPassword,sambaNTPassword,sambaLMPassword,sambaPwdMustChange,sambaPwdLastSet
104
      by dn="cn=Manager,dc=ujsoftware,dc=com" write
105
      by self write
106
      by anonymous auth
107
      by * none
108
 
109
# those 2 parameters must be world readable for password aging to work correctly
110
# (or use a priviledge account in /etc/ldap.conf to bind to the directory)
111
access to attrs=shadowLastChange,shadowMax
112
      by dn="cn=Manager,dc=ujsoftware,dc=com" write
113
      by self write
114
      by * read
115
 
116
# all others attributes are readable to everybody
117
access to *
118
      by * read
119
 
120
# Replicas of this database
121
#replogfile /var/lib/ldap/openldap-master-replog
122
#replica host=ldap-1.example.com:389 starttls=critical
123
#     bindmethod=sasl saslmech=GSSAPI
124
#     authcId=host/ldap-master.example.com@EXAMPLE.COM