Skip to content

Instantly share code, notes, and snippets.

@thexa4
Last active August 29, 2015 14:04
Show Gist options
  • Save thexa4/10d65b554d09ee172ffe to your computer and use it in GitHub Desktop.
Save thexa4/10d65b554d09ee172ffe to your computer and use it in GitHub Desktop.
Add schemas to ldap
#!/bin/sh
slapcat -n0 -F /etc/ldap/ldif > /tmp/schema.ldif
#warning, ignores errors
slapadd -n0 -F -c /etc/ldap/slapd.d -l /tmp/schema.ldif
#!/bin/sh
rm -r /etc/ldap/ldif/*
slaptest -f /etc/ldap/schema/schema_convert.conf -F /etc/ldap/ldif
#For gosa
include /etc/ldap/schema/core.schema
include /etc/ldap/schema/cosine.schema
include /etc/ldap/schema/nis.schema
include /etc/ldap/schema/inetorgperson.schema
include /etc/ldap/schema/gosa/dhcp.schema
include /etc/ldap/schema/gosa/dnszone.schema
include /etc/ldap/schema/gosa/fai.schema
include /etc/ldap/schema/gosa/goconfig.schema
include /etc/ldap/schema/gosa/gofax.schema
include /etc/ldap/schema/gosa/gofon.schema
include /etc/ldap/schema/gosa/gosystem.schema
include /etc/ldap/schema/gosa/goto-mime.schema
include /etc/ldap/schema/gosa/goto.schema
include /etc/ldap/schema/gosa/hdb.schema
include /etc/ldap/schema/gosa/nagios.schema
include /etc/ldap/schema/gosa/openssh-lpk.schema
include /etc/ldap/schema/gosa/openxchange.schema
include /etc/ldap/schema/gosa/phpgwaccount.schema
include /etc/ldap/schema/gosa/phpscheduleit.schema
include /etc/ldap/schema/gosa/pptp.schema
include /etc/ldap/schema/gosa/pureftpd.schema
include /etc/ldap/schema/gosa/rfc2739.schema
include /etc/ldap/schema/gosa/samba3.schema
include /etc/ldap/schema/gosa/sudo.schema
include /etc/ldap/schema/gosa/trust.schema
include /etc/ldap/schema/gosa/gosa-samba3.schema
include /etc/ldap/schema/gosa/goserver.schema
include /etc/ldap/schema/dyngroup.schema
#FusionDirectory
include /etc/ldap/schema/core.schema
include /etc/ldap/schema/cosine.schema
include /etc/ldap/schema/nis.schema
include /etc/ldap/schema/inetorgperson.schema
include /etc/ldap/schema/fusiondirectory/samba.schema
include /etc/ldap/schema/fusiondirectory/samba-fd-conf.schema
include /etc/ldap/schema/fusiondirectory/core-fd-conf.schema
include /etc/ldap/schema/fusiondirectory/core-fd.schema
include /etc/ldap/schema/fusiondirectory/dhcp-fd.schema
include /etc/ldap/schema/fusiondirectory/dns-fd-conf.schema
include /etc/ldap/schema/fusiondirectory/dnszone.schema
include /etc/ldap/schema/fusiondirectory/dovecot-fd.schema
include /etc/ldap/schema/fusiondirectory/freeradius.schema
include /etc/ldap/schema/fusiondirectory/gpg-fd.schema
include /etc/ldap/schema/fusiondirectory/ldapns.schema
include /etc/ldap/schema/fusiondirectory/mail-fd-conf.schema
include /etc/ldap/schema/fusiondirectory/mail-fd.schema
include /etc/ldap/schema/fusiondirectory/mod_vhost_ldap.schema
include /etc/ldap/schema/fusiondirectory/nagios-fd-conf.schema
include /etc/ldap/schema/fusiondirectory/netways.schema
include /etc/ldap/schema/fusiondirectory/openssh-lpk.schema
include /etc/ldap/schema/fusiondirectory/pgp-keyserver.schema
include /etc/ldap/schema/fusiondirectory/pgp-recon.schema
include /etc/ldap/schema/fusiondirectory/pgp-remte-prefs.schema
include /etc/ldap/schema/fusiondirectory/puppet-fd.schema
include /etc/ldap/schema/fusiondirectory/puppet.schema
include /etc/ldap/schema/fusiondirectory/quota-fd.schema
include /etc/ldap/schema/fusiondirectory/quota.schema
include /etc/ldap/schema/fusiondirectory/recovery-fd.schema
include /etc/ldap/schema/fusiondirectory/repository-fd-conf.schema
include /etc/ldap/schema/fusiondirectory/repository-fd.schema
#include /etc/ldap/schema/fusiondirectory/rfc2307bis.schema
include /etc/ldap/schema/fusiondirectory/service-fd.schema
include /etc/ldap/schema/fusiondirectory/sudo-fd-conf.schema
include /etc/ldap/schema/fusiondirectory/sudo.schema
include /etc/ldap/schema/fusiondirectory/systems-fd-conf.schema
include /etc/ldap/schema/fusiondirectory/systems-fd.schema
include /etc/ldap/schema/fusiondirectory/webservice-fd-conf.schema
include /etc/ldap/schema/dyngroup.schema
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment