[5797] | 1 | # This is the main slapd configuration file. See slapd.conf(5) for more |
---|
| 2 | # info on the configuration options. |
---|
| 3 | |
---|
| 4 | ####################################################################### |
---|
| 5 | # Global Directives: |
---|
| 6 | sizelimit -1 |
---|
| 7 | timelimit -1 |
---|
| 8 | threads 2 |
---|
| 9 | |
---|
| 10 | # Schema and objectClass definitions |
---|
| 11 | include /etc/ldap/schema/core.schema |
---|
| 12 | include /etc/ldap/schema/cosine.schema |
---|
| 13 | include /etc/ldap/schema/nis.schema |
---|
| 14 | include /etc/ldap/schema/inetorgperson.schema |
---|
[5818] | 15 | # Necessario para o Expresso Livre |
---|
[5797] | 16 | include /etc/ldap/schema/qmailuser.schema |
---|
| 17 | include /etc/ldap/schema/phpgwaccount.schema |
---|
| 18 | include /etc/ldap/schema/samba.schema |
---|
| 19 | include /etc/ldap/schema/phpgwcontact.schema |
---|
| 20 | |
---|
| 21 | # Where the pid file is put. The init.d script |
---|
| 22 | # will not stop the server if you change this. |
---|
| 23 | pidfile /var/run/slapd/slapd.pid |
---|
[5818] | 24 | argsfile /var/run/slapd/slapd.args |
---|
[5797] | 25 | |
---|
| 26 | # Read slapd.conf(5) for possible values |
---|
[5818] | 27 | loglevel 256 |
---|
[5797] | 28 | |
---|
[5818] | 29 | # Allow LDAPv2 client connections. This is NOT the default. |
---|
| 30 | # Necessario para o Expresso |
---|
| 31 | allow bind_v2 |
---|
| 32 | |
---|
| 33 | # Do not enable referrals until AFTER you have a working directory |
---|
| 34 | # service AND an understanding of referrals. |
---|
| 35 | #referral ldap://root.openldap.org |
---|
| 36 | |
---|
| 37 | ####################################################################### |
---|
[5797] | 38 | # Where the dynamically loaded modules are stored |
---|
| 39 | modulepath /usr/lib/ldap |
---|
| 40 | moduleload back_hdb |
---|
| 41 | |
---|
| 42 | # Specific Backend Directives for bdb: |
---|
| 43 | # Backend specific directives apply to this backend until another |
---|
| 44 | # 'backend' directive occurs |
---|
| 45 | backend hdb |
---|
| 46 | ####################################################################### |
---|
| 47 | # Specific Directives for database #1, of type bdb: |
---|
| 48 | # Database specific directives apply to this databasse until another |
---|
| 49 | # 'database' directive occurs |
---|
| 50 | database hdb |
---|
| 51 | |
---|
| 52 | # The base of your directory in database #1 |
---|
| 53 | suffix "LDAP_DN" |
---|
| 54 | rootdn "cn=admin,LDAP_DN" |
---|
| 55 | rootpw LDAP_PWD_MD5 |
---|
| 56 | |
---|
[5818] | 57 | checkpoint 1024 10 |
---|
| 58 | # Save the time that the entry gets modified, for database #1 |
---|
| 59 | lastmod on |
---|
| 60 | |
---|
[5797] | 61 | # Where the database file are physically stored for database #1 |
---|
| 62 | directory "/var/lib/ldap" |
---|
| 63 | |
---|
| 64 | # Indexing options for database #1 |
---|
[5818] | 65 | index default sub |
---|
| 66 | index entryCSN,accountStatus eq |
---|
| 67 | index objectClass,uidNumber,gidNumber,entryUUID eq,pres |
---|
| 68 | index sambaSID,sambaPrimaryGroupSID,sambaAcctFlags eq,pres |
---|
| 69 | index sambaDomainName,sambaSIDList,sambaGroupType eq,pres |
---|
| 70 | index cn,displayName eq,pres,subany,approx |
---|
| 71 | index sn,ou,givenName,uid,employeeNumber eq,pres,subany |
---|
| 72 | index memberUid,mail,mailAlternateAddress,mailForwardingAddress eq,pres,subany |
---|
| 73 | index phpgwContactOwner,phpgwAccountType,phpgwAccountStatus eq,pres |
---|
| 74 | index uniqueMember pres |
---|
[5797] | 75 | |
---|
| 76 | |
---|
| 77 | # Where to store the replica logs for database #1 |
---|
| 78 | # replogfile /var/lib/ldap/replog |
---|
| 79 | |
---|
| 80 | # The userPassword by default can be changed |
---|
| 81 | # by the entry owning it if they are authenticated. |
---|
| 82 | # Others should not be able to see it, except the |
---|
| 83 | # admin entry below |
---|
| 84 | # These access lines apply to database #1 only |
---|
| 85 | access to attrs=userPassword |
---|
| 86 | by dn="cn=admin,LDAP_DN" write |
---|
| 87 | by anonymous auth |
---|
| 88 | by self write |
---|
| 89 | by * none |
---|
| 90 | |
---|
| 91 | # Ensure read access to the base for things like |
---|
| 92 | # supportedSASLMechanisms. Without this you may |
---|
| 93 | # have problems with SASL not knowing what |
---|
| 94 | # mechanisms are available and the like. |
---|
| 95 | # Note that this is covered by the 'access to *' |
---|
| 96 | # ACL below too but if you change that as people |
---|
| 97 | # are wont to do you'll still need this if you |
---|
| 98 | # want SASL (and possible other things) to work |
---|
| 99 | # happily. |
---|
| 100 | access to dn.base="" by * read |
---|
| 101 | |
---|
| 102 | # The admin dn has full write access, everyone else |
---|
| 103 | # can read everything. |
---|
| 104 | access to * |
---|
| 105 | by dn="cn=admin,LDAP_DN" write |
---|
| 106 | by * read |
---|
| 107 | |
---|
| 108 | # For Netscape Roaming support, each user gets a roaming |
---|
| 109 | # profile for which they have write access to |
---|
| 110 | #access to dn=".*,ou=Roaming,o=morsnet" |
---|
| 111 | # by dn="cn=admin,dc=pr,dc=gov,dc=br" write |
---|
| 112 | # by dnattr=owner write |
---|
| 113 | |
---|
| 114 | ####################################################################### |
---|
| 115 | # Specific Directives for database #2, of type 'other' (can be bdb too): |
---|
| 116 | # Database specific directives apply to this databasse until another |
---|
| 117 | # 'database' directive occurs |
---|
| 118 | #database <other> |
---|
| 119 | |
---|
| 120 | # The base of your directory for database #2 |
---|
| 121 | #suffix "dc=debian,dc=org" |
---|