summaryrefslogtreecommitdiffstats
path: root/roles/common/files/etc/ldap/schema
diff options
context:
space:
mode:
Diffstat (limited to 'roles/common/files/etc/ldap/schema')
-rw-r--r--roles/common/files/etc/ldap/schema/fripost.ldif15
1 files changed, 13 insertions, 2 deletions
diff --git a/roles/common/files/etc/ldap/schema/fripost.ldif b/roles/common/files/etc/ldap/schema/fripost.ldif
index 6ec55dc..851988e 100644
--- a/roles/common/files/etc/ldap/schema/fripost.ldif
+++ b/roles/common/files/etc/ldap/schema/fripost.ldif
@@ -1,24 +1,35 @@
# Fripost's LDAP schema
-# Copyright 2013 Guilhem Moulin <guilhem@fripost.org>
+# Copyright © 2013 Guilhem Moulin <guilhem@fripost.org>
#
-# Licensed under the GNU GPL version 3 or higher.
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
# Load this file with
#
# ldapadd -Y EXTERNAL -H ldapi:/// -f fripost.ldif
#
# It will load the schema. To perform modifications, the easiest way is to
#
# * Save the database: slapcat -b 'o=mailHosting,dc=fripost,dc=dev' > /tmp/db.ldif
# * Save the configuration: slapcat -n0 > /tmp/config.ldif
# * Backup slap.d: cp -a /etc/ldap/slapd.d/ /tmp/slap.d_back
# * Edit the schema in /tmp/config.ldif
# * Load the new config: mkdir -m 0700 /tmp/slapd.d_new && slapadd -F /tmp/slapd.d_new -n0 -l /tmp/config.ldif
# * Stop slapd: /etc/init.d/slapd stop
# * Load the new config: rm -rf /etc/ldap/slapd.d/ && mv /tmp/slapd.d_new /etc/ldap/slapd.d && chown -R openldap:openldap /etc/ldap/slapd.d
# * Create indexes: sudo -u openldap slapindex -b 'o=mailHosting,dc=fripost,dc=dev'
# * Start slapd: /etc/init.d/slapd start
# If it fails, remove the existing database and see what's wrong
# rm -rf /var/lib/ldap/dev/* && sudo -u openldap slapadd -b 'o=mailHosting,dc=fripost,dc=org' -l /tmp/db.ldif
#
#