add "reset" command

This commit is contained in:
Thomas NOËL 2014-11-09 22:06:20 +01:00
parent 79bb646819
commit 707e05b6d2
9 changed files with 672 additions and 6 deletions

View File

@ -6,6 +6,7 @@ LIBDIR = $(DESTDIR)/usr/lib/slapd-supann
BINDIR = $(DESTDIR)/usr/bin
SBINDIR = $(DESTDIR)/usr/sbin
ETCDIR = $(DESTDIR)/etc
SHAREDIR = $(DESTDIR)/usr/share/slapd-supann
MANDIR = $(DESTDIR)/usr/share/man
all:
@ -14,13 +15,15 @@ install:
install -o root -g root -m 0755 slapd-supann $(BINDIR)
install -o root -g root -m 0644 slapd-supann.1 $(MANDIR)/man1
install -o root -g root -m 0755 -d $(LIBDIR)
install -o root -g root -m 0755 commands/* $(LIBDIR)
install -o root -g root -m 0755 lib/* $(LIBDIR)
chmod 0644 $(LIBDIR)/*.help
install -o root -g root -m 0755 -d $(SHAREDIR)
install -o root -g root -m 0755 share/* $(SHAREDIR)
uninstall:
rm $(BINDIR)/slapd-supann
rm $(MANDIR)/man1/slapd-supann.1
rm -rf $(LIBDIR)
rm -rf $(LIBDIR) $(SHAREDIR)
# eobuilder targets -- see http://repos.entrouvert.org/eobuilder.git/tree/README.rst
dist-bzip2:

View File

@ -1,3 +0,0 @@
#!/bin/sh
echo "not implemented"

36
lib/reset Executable file
View File

@ -0,0 +1,36 @@
#!/bin/sh
# initial configuration of slapd
set -e
LDIFDIR=/usr/share/slapd-supann/
SERVICE="/usr/sbin/service slapd"
${SERVICE} stop || true
BACKUPDIR=/var/backup/slapd-reset-`date +%Y%m%dT%H%M%S`
echo -n "backup in $BACKUPDIR .."
mkdir -p ${BACKUPDIR}
cp -R /var/lib/ldap /etc/ldap/slapd.d/ ${BACKUPDIR}
echo "done"
echo -n "erase config and data .."
rm -rf /var/lib/ldap/* /etc/ldap/slapd.d/*
mkdir /var/lib/ldap/config-accesslog/
echo "ok"
echo -n "install new config .."
slapadd -n0 -F/etc/ldap/slapd.d -l${LDIFDIR}/config.ldif
echo "ok"
echo -n "install schemas .."
slapadd -n0 -F/etc/ldap/slapd.d -l/etc/ldap/schema/core.ldif
slapadd -n0 -F/etc/ldap/slapd.d -l/etc/ldap/schema/cosine.ldif
slapadd -n0 -F/etc/ldap/slapd.d -l/etc/ldap/schema/inetorgperson.ldif
slapadd -n0 -F/etc/ldap/slapd.d -l${LDIFDIR}/supann-2009.ldif
slapadd -n0 -F/etc/ldap/slapd.d -l${LDIFDIR}/eduperson.ldif
slapadd -n0 -F/etc/ldap/slapd.d -l${LDIFDIR}/eduorg-200210-openldap.ldif
echo "ok"
chown -R openldap:openldap /etc/ldap/slapd.d /var/lib/ldap
${SERVICE} start

76
share/config.ldif Normal file
View File

@ -0,0 +1,76 @@
dn: cn=config
objectClass: olcGlobal
cn: config
olcArgsFile: /var/run/slapd/slapd.args
olcPidFile: /var/run/slapd/slapd.pid
olcToolThreads: 1
olcLogLevel: none
olcServerId: 1
dn: cn=module{0},cn=config
objectClass: olcModuleList
cn: module{0}
olcModulePath: /usr/lib/ldap
olcModuleLoad: {0}back_hdb
olcModuleLoad: {1}back_monitor
olcModuleLoad: {2}back_mdb
olcModuleLoad: {3}accesslog
olcModuleLoad: {4}unique
olcModuleLoad: {5}refint
olcModuleLoad: {6}constraint
olcModuleLoad: {7}syncprov
dn: cn=schema,cn=config
objectClass: olcSchemaConfig
cn: schema
dn: olcDatabase={-1}frontend,cn=config
objectClass: olcDatabaseConfig
objectClass: olcFrontendConfig
olcDatabase: {-1}frontend
olcAccess: {0}to *
by dn.exact=gidNumber=0+uidNumber=0,cn=peercred,cn=external,cn=auth manage
by * break
olcAccess: {1}to dn.exact="" by * read
olcAccess: {2}to dn.base="cn=Subschema" by * read
olcSizeLimit: 500
dn: olcDatabase={0}config,cn=config
objectClass: olcDatabaseConfig
olcDatabase: {0}config
olcAccess: {0}to *
by dn.exact=gidNumber=0+uidNumber=0,cn=peercred,cn=external,cn=auth manage
by * break
olcRootDN: cn=admin,cn=config
dn: olcDatabase={1}mdb,cn=config
objectClass: olcDatabaseConfig
objectClass: olcMdbConfig
olcSuffix: cn=config-accesslog
olcDbDirectory: /var/lib/ldap/config-accesslog/
# Allow reading accesslog only by root
olcAccess: {0}to *
by dn.exact="gidNumber=0+uidNumber=0,cn=peercred,cn=external,cn=auth" read
by * break
dn: olcDatabase={1}monitor,cn=config
objectClass: olcDatabaseConfig
objectClass: olcMonitorConfig
olcDatabase: {1}monitor
# Allow reading monitoring only by root
olcAccess: {0}to *
by dn.exact="gidNumber=0+uidNumber=0,cn=peercred,cn=external,cn=auth" read
by * break
# Log all writes to the configuration
dn: olcOverlay={0}accesslog,olcDatabase={0}config,cn=config
objectClass: olcAccesslogConfig
objectClass: olcOverlayConfig
objectClass: olcConfig
objectClass: top
olcOverlay: {0}accesslog
olcAccessLogDB: cn=config-accesslog
olcAccessLogOps: writes
# log are conserved one year and purged every day
olcAccessLogPurge: 365+00:00 1+00:00
olcAccessLogOld: objectClass=olcConfig

View File

@ -0,0 +1,21 @@
dn: cn=eduorg-200210,cn=schema,cn=config
objectClass: olcSchemaConfig
cn: eduorg-200210
olcAttributeTypes: {0}( 1.3.6.1.4.1.5923.1.2.1.2 NAME 'eduOrgHomePageURI' DESC
'eduOrg per Internet2 and EDUCAUSE' EQUALITY caseExactMatch SYNTAX 1.3.6.1.4
.1.1466.115.121.1.15 )
olcAttributeTypes: {1}( 1.3.6.1.4.1.5923.1.2.1.3 NAME 'eduOrgIdentityAuthNPoli
cyURI' DESC 'eduOrg per Internet2 and EDUCAUSE' EQUALITY caseExactMatch SYNTA
X 1.3.6.1.4.1.1466.115.121.1.15 )
olcAttributeTypes: {2}( 1.3.6.1.4.1.5923.1.2.1.4 NAME 'eduOrgLegalName' DESC '
eduOrg per Internet2 and EDUCAUSE' EQUALITY caseIgnoreMatch SYNTAX 1.3.6.1.4.
1.1466.115.121.1.15 )
olcAttributeTypes: {3}( 1.3.6.1.4.1.5923.1.2.1.5 NAME 'eduOrgSuperiorURI' DESC
'eduOrg per Internet2 and EDUCAUSE' EQUALITY caseExactMatch SYNTAX 1.3.6.1.4
.1.1466.115.121.1.15 )
olcAttributeTypes: {4}( 1.3.6.1.4.1.5923.1.2.1.6 NAME 'eduOrgWhitePagesURI' DE
SC 'eduOrg per Internet2 and EDUCAUSE' EQUALITY caseExactMatch SYNTAX 1.3.6.1
.4.1.1466.115.121.1.15 )
olcObjectClasses: {0}( 1.3.6.1.4.1.5923.1.2.2 NAME 'eduOrg' AUXILIARY MAY ( cn
$ eduOrgHomePageURI $ eduOrgIdentityAuthNPolicyURI $ eduOrgLegalName $ eduOr
gSuperiorURI $ eduOrgWhitePagesURI ) )

47
share/eduperson.ldif Normal file
View File

@ -0,0 +1,47 @@
# This LDIF file can be used to add to add the eduPerson schema to
# an OpenLDAP server > 2.4 that uses the new configuration format.
# Put this file to /etc/ldap/schema/ and then execute the following
# comand to add this schema:
# ldapadd -Y EXTERNAL -H ldapi:/// -f /etc/ldap/schema/eduperson.ldif
dn: cn=eduperson,cn=schema,cn=config
objectClass: olcSchemaConfig
cn: eduperson
olcAttributeTypes: {0}( 1.3.6.1.4.1.5923.1.1.1.1 NAME 'eduPersonAffiliation' D
ESC 'eduPerson per Internet2 and EDUCAUSE' EQUALITY caseIgnoreMatch SUBSTR ca
seIgnoreSubstringsMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 )
olcAttributeTypes: {1}( 1.3.6.1.4.1.5923.1.1.1.2 NAME 'eduPersonNickname' DESC
'eduPerson per Internet2 and EDUCAUSE' EQUALITY caseIgnoreMatch SUBSTR caseI
gnoreSubstringsMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 )
olcAttributeTypes: {2}( 1.3.6.1.4.1.5923.1.1.1.3 NAME 'eduPersonOrgDN' DESC 'e
duPerson per Internet2 and EDUCAUSE' EQUALITY distinguishedNameMatch SYNTAX 1
.3.6.1.4.1.1466.115.121.1.12 SINGLE-VALUE )
olcAttributeTypes: {3}( 1.3.6.1.4.1.5923.1.1.1.4 NAME 'eduPersonOrgUnitDN' DES
C 'eduPerson per Internet2 and EDUCAUSE' EQUALITY distinguishedNameMatch SYNT
AX 1.3.6.1.4.1.1466.115.121.1.12 )
olcAttributeTypes: {4}( 1.3.6.1.4.1.5923.1.1.1.5 NAME 'eduPersonPrimaryAffilia
tion' DESC 'eduPerson per Internet2 and EDUCAUSE' EQUALITY caseIgnoreMatch SU
BSTR caseIgnoreSubstringsMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 SINGLE-VA
LUE )
olcAttributeTypes: {5}( 1.3.6.1.4.1.5923.1.1.1.6 NAME 'eduPersonPrincipalName'
DESC 'eduPerson per Internet2 and EDUCAUSE' EQUALITY caseIgnoreMatch SUBSTR
caseIgnoreSubstringsMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 SINGLE-VALUE )
olcAttributeTypes: {6}( 1.3.6.1.4.1.5923.1.1.1.7 NAME 'eduPersonEntitlement' D
ESC 'eduPerson per Internet2 and EDUCAUSE' EQUALITY caseExactMatch SYNTAX 1.3
.6.1.4.1.1466.115.121.1.15 )
olcAttributeTypes: {7}( 1.3.6.1.4.1.5923.1.1.1.8 NAME 'eduPersonPrimaryOrgUnit
DN' DESC 'eduPerson per Internet2 and EDUCAUSE' EQUALITY distinguishedNameMat
ch SYNTAX 1.3.6.1.4.1.1466.115.121.1.12 SINGLE-VALUE )
olcAttributeTypes: {8}( 1.3.6.1.4.1.5923.1.1.1.9 NAME 'eduPersonScopedAffiliat
ion' DESC 'eduPerson per Internet2 and EDUCAUSE' EQUALITY caseIgnoreMatch SYN
TAX 1.3.6.1.4.1.1466.115.121.1.15 )
olcAttributeTypes: {9}( 1.3.6.1.4.1.5923.1.1.1.10 NAME 'eduPersonTargetedID' D
ESC 'eduPerson per Internet2 and EDUCAUSE' EQUALITY caseIgnoreMatch SYNTAX 1.
3.6.1.4.1.1466.115.121.1.15 )
olcAttributeTypes: {10}( 1.3.6.1.4.1.5923.1.1.1.11 NAME 'eduPersonAssurance' D
ESC 'eduPerson per Internet2 and EDUCAUSE' EQUALITY caseIgnoreMatch SYNTAX 1.
3.6.1.4.1.1466.115.121.1.15 )
olcObjectClasses: {0}( 1.3.6.1.4.1.5923.1.1.2 NAME 'eduPerson' DESC 'eduPerson
per Internet2 and EDUCAUSE' AUXILIARY MAY ( eduPersonAffiliation $ eduPerson
Nickname $ eduPersonOrgDN $ eduPersonOrgUnitDN $ eduPersonPrimaryAffiliation
$ eduPersonPrincipalName $ eduPersonEntitlement $ eduPersonPrimaryOrgUnitDN $
eduPersonScopedAffiliation $ eduPersonTargetedID $ eduPersonAssurance ) )

486
share/supann-2009.ldif Normal file
View File

@ -0,0 +1,486 @@
#
# 60supann.ldif - version 389 Directory Server du schéma SupAnn version 2009.6
#
# (cf original à http://www.cru.fr/_media/documentation/supann/supann_2009.schema.txt)
#
# Modifications :
# 21 mai 10 (JML): supannRefId : suppression du SINGLE-VALUE mis par erreur
# 23 fevr. 10 (JML): import du fichier OpenLDAP supann_2009.schema.txt pour 389 Directory Server
# 03 nov. 14 (BDA): ajout mailForwardingAddress
#
################################################################################
#
dn: cn=supann,cn=schema,cn=config
objectClass: olcSchemaConfig
#
################################################################################
#
olcAttributeTypes: (
1.3.6.1.4.1.7135.1.2.1.1
NAME 'supannListeRouge'
DESC 'indique que l entree correspondante n est pas publique'
EQUALITY booleanMatch
SINGLE-VALUE
SYNTAX 1.3.6.1.4.1.1466.115.121.1.7
)
#
################################################################################
#
olcAttributeTypes: (
1.3.6.1.4.1.7135.1.2.1.2
NAME 'supannActivite'
DESC 'activite ou metier de la personne'
EQUALITY caseIgnoreMatch
SUBSTR caseIgnoreSubstringsMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{128}
)
#
################################################################################
#
olcAttributeTypes: (
1.3.6.1.4.1.7135.1.2.1.3
NAME 'supannOrganisme'
DESC 'code organisme d appartenance'
EQUALITY caseIgnoreMatch
SUBSTR caseIgnoreSubstringsMatch
SINGLE-VALUE
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{128}
)
#
################################################################################
#
olcAttributeTypes: (
1.3.6.1.4.1.7135.1.2.1.4
NAME 'supannCivilite'
DESC 'civilite : M., Mme, Mlle'
EQUALITY caseIgnoreMatch
SUBSTR caseIgnoreSubstringsMatch
SINGLE-VALUE
SYNTAX 1.3.6.1.4.1.1466.115.121.1.44{32}
)
#
################################################################################
#
olcAttributeTypes: (
1.3.6.1.4.1.7135.1.2.1.5
NAME 'supannAffectation'
DESC 'affectation'
EQUALITY caseIgnoreMatch
SUBSTR caseIgnoreSubstringsMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{128}
)
#
################################################################################
#
olcAttributeTypes: (
1.3.6.1.4.1.7135.1.2.1.6
NAME 'supannCodeEntite'
DESC 'identifiant d entite'
EQUALITY caseIgnoreIA5Match
SUBSTR caseIgnoreIA5SubstringsMatch
SINGLE-VALUE
SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{128}
)
#
################################################################################
#
olcAttributeTypes: (
1.3.6.1.4.1.7135.1.2.1.7
NAME 'supannCodeEntiteParent'
DESC 'identifiant d entite parente'
EQUALITY caseIgnoreIA5Match
SUBSTR caseIgnoreIA5SubstringsMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{128}
)
#
################################################################################
#
olcAttributeTypes: (
1.3.6.1.4.1.7135.1.2.1.8
NAME 'supannEntiteAffectation'
DESC 'identifiant d entite d affectation'
EQUALITY caseIgnoreIA5Match
SUBSTR caseIgnoreIA5SubstringsMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{128}
)
#
################################################################################
#
olcAttributeTypes: (
1.3.6.1.4.1.7135.1.2.1.9
NAME 'supannCodeINE'
DESC 'code INE'
EQUALITY caseIgnoreMatch
SUBSTR caseIgnoreSubstringsMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.44{128}
)
#
################################################################################
#
olcAttributeTypes: (
1.3.6.1.4.1.7135.1.2.1.10
NAME 'supannEtuId'
DESC 'identifiant scolarite'
EQUALITY caseExactMatch
SUBSTR caseExactSubstringsMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{128}
)
#
################################################################################
#
olcAttributeTypes: (
1.3.6.1.4.1.7135.1.2.1.11
NAME 'supannEmpId'
DESC 'identifiant personnel'
EQUALITY caseExactMatch
SUBSTR caseExactSubstringsMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{128}
)
#
################################################################################
#
olcAttributeTypes: (
1.3.6.1.4.1.7135.1.2.1.12
NAME 'supannAutreTelephone'
SUP telephoneNumber
DESC 'numeros de telephone secondaires'
SYNTAX 1.3.6.1.4.1.1466.115.121.1.50
)
#
################################################################################
#
olcAttributeTypes: (
1.3.6.1.4.1.7135.1.2.1.13
NAME 'supannEntiteAffectationPrincipale'
DESC 'identifiant d entite principale d affectation'
EQUALITY caseIgnoreIA5Match
SUBSTR caseIgnoreIA5SubstringsMatch
SINGLE-VALUE
SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{128}
)
#
################################################################################
#
olcAttributeTypes: (
1.3.6.1.4.1.7135.1.2.1.14
NAME 'supannEtablissement'
DESC 'code d etablissement'
EQUALITY caseIgnoreMatch
SUBSTR caseIgnoreSubstringsMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{128}
)
#
################################################################################
#
olcAttributeTypes: (
1.3.6.1.4.1.7135.1.2.1.15
NAME 'supannMailPerso'
DESC 'Mailbox RFC822 privee'
EQUALITY caseIgnoreIA5Match
SUBSTR caseIgnoreIA5SubstringsMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{256}
)
#
################################################################################
#
olcAttributeTypes: (
1.3.6.1.4.1.7135.1.2.1.16
NAME 'supannTypeEntite'
DESC 'type de structure ou entite'
EQUALITY caseIgnoreMatch
SUBSTR caseIgnoreSubstringsMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{128}
)
#
################################################################################
#
olcAttributeTypes: (
1.3.6.1.4.1.7135.1.2.1.17
NAME 'supannParrainDN'
SUP distinguishedName
DESC 'dn du responsable de cette entree'
SYNTAX 1.3.6.1.4.1.1466.115.121.1.12
)
#
################################################################################
#
olcAttributeTypes: (
1.3.6.1.4.1.7135.1.2.1.18
NAME 'supannGroupeDateFin'
DESC 'indique la date de fin de validite de l entree correspondante'
EQUALITY generalizedTimeMatch
ORDERING generalizedTimeOrderingMatch
SINGLE-VALUE
SYNTAX 1.3.6.1.4.1.1466.115.121.1.24
)
#
################################################################################
#
olcAttributeTypes: (
1.3.6.1.4.1.7135.1.2.1.19
NAME 'supannGroupeAdminDN'
SUP distinguishedName
DESC 'dn des administrateurs du groupe concerne'
SYNTAX 1.3.6.1.4.1.1466.115.121.1.12
)
#
################################################################################
#
olcAttributeTypes: (
1.3.6.1.4.1.7135.1.2.1.20
NAME 'supannAliasLogin'
DESC 'login personalise'
EQUALITY caseExactMatch
SUBSTR caseExactSubstringsMatch
SINGLE-VALUE
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{128}
)
#
################################################################################
#
olcAttributeTypes: (
1.3.6.1.4.1.7135.1.2.1.21
NAME 'supannRole'
DESC 'role'
EQUALITY caseIgnoreMatch
SUBSTR caseIgnoreSubstringsMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{128}
)
#
################################################################################
#
olcAttributeTypes: (
1.3.6.1.4.1.7135.1.2.1.22
NAME 'supannGroupeLecteurDN'
SUP distinguishedName
DESC 'dn des entites habilite a lire le contenu d un groupe'
SYNTAX 1.3.6.1.4.1.1466.115.121.1.12
)
#
################################################################################
#
olcAttributeTypes: (
1.3.6.1.4.1.7135.1.2.1.23
NAME 'supannRoleGenerique'
DESC 'role generique d une personne'
EQUALITY caseIgnoreMatch
SUBSTR caseIgnoreSubstringsMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{256}
)
#
################################################################################
#
olcAttributeTypes: (
1.3.6.1.4.1.7135.1.2.1.24
NAME 'supannRoleEntite'
DESC 'role contextuel'
EQUALITY caseIgnoreMatch
SUBSTR caseIgnoreSubstringsMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{512}
)
#
################################################################################
#
olcAttributeTypes: (
1.3.6.1.4.1.7135.1.2.1.25
NAME 'supannEtuAnneeInscription'
DESC 'annee inscription'
EQUALITY numericStringMatch
ORDERING numericStringOrderingMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.36{4}
)
#
################################################################################
#
olcAttributeTypes: (
1.3.6.1.4.1.7135.1.2.1.26
NAME 'supannEtuCursusAnnee'
DESC 'cursus et annee dans le diplome'
EQUALITY caseIgnoreMatch
SUBSTR caseIgnoreSubstringsMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{128}
)
#
################################################################################
#
olcAttributeTypes: (
1.3.6.1.4.1.7135.1.2.1.27
NAME 'supannEtuDiplome'
DESC 'diplome'
EQUALITY caseIgnoreMatch
SUBSTR caseIgnoreSubstringsMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{128}
)
#
################################################################################
#
olcAttributeTypes: (
1.3.6.1.4.1.7135.1.2.1.28
NAME 'supannEtuElementPedagogique'
DESC 'element pedagogique'
EQUALITY caseIgnoreMatch
SUBSTR caseIgnoreSubstringsMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{128}
)
#
################################################################################
#
olcAttributeTypes: (
1.3.6.1.4.1.7135.1.2.1.29
NAME 'supannEtuEtape'
DESC 'etape'
EQUALITY caseIgnoreMatch
SUBSTR caseIgnoreSubstringsMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{128}
)
#
################################################################################
#
olcAttributeTypes: ( 1.3.6.1.4.1.7135.1.2.1.30
NAME 'supannEtuInscription'
DESC 'description d inscriptions'
EQUALITY caseIgnoreMatch
SUBSTR caseIgnoreSubstringsMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{4096}
)
#
################################################################################
#
olcAttributeTypes: (
1.3.6.1.4.1.7135.1.2.1.31
NAME 'supannEtuRegimeInscription'
DESC 'regime d inscription'
EQUALITY caseIgnoreMatch
SUBSTR caseIgnoreSubstringsMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{128}
)
#
################################################################################
#
olcAttributeTypes: (
1.3.6.1.4.1.7135.1.2.1.32
NAME 'supannEtuSecteurDisciplinaire'
DESC 'secteur disciplinaire'
EQUALITY caseIgnoreMatch
SUBSTR caseIgnoreSubstringsMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{128}
)
#
################################################################################
#
olcAttributeTypes: (
1.3.6.1.4.1.7135.1.2.1.33
NAME 'supannEtuTypeDiplome'
DESC 'type de diplome'
EQUALITY caseIgnoreMatch
SUBSTR caseIgnoreSubstringsMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{128}
)
#
################################################################################
#
olcAttributeTypes: (
1.3.6.1.4.1.7135.1.2.1.34
NAME 'supannAutreMail'
SUP mail
DESC 'adresses mail non institutionnelles'
SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{256}
)
#
################################################################################
#
olcAttributeTypes: (
1.3.6.1.4.1.7135.1.2.1.35
NAME 'supannEmpCorps'
DESC 'corps d appartenance d un agent'
EQUALITY caseIgnoreMatch
SUBSTR caseIgnoreSubstringsMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{128}
)
#
################################################################################
#
olcAttributeTypes: (
1.3.6.1.4.1.7135.1.2.1.36
NAME 'supannTypeEntiteAffectation'
DESC 'type de structure ou entite d affectation'
EQUALITY caseIgnoreMatch
SUBSTR caseIgnoreSubstringsMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{128}
)
#
################################################################################
#
olcAttributeTypes: (
1.3.6.1.4.1.7135.1.2.1.37
NAME 'supannRefId'
DESC 'identifiant partage avec autre brique du SI'
EQUALITY caseExactMatch
SUBSTR caseExactSubstringsMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{128}
)
# repris du schema Netscape (enlever si conflit) :
olcAttributeTypes: ( 2.16.840.1.113730.3.1.17
NAME 'mailForwardingAddress'
DESC 'coin'
EQUALITY caseIgnoreMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15
)
#
################################################################################
#
olcObjectClasses: (
1.3.6.1.4.1.7135.1.2.2.1
NAME 'supannPerson'
SUP top AUXILIARY
DESC 'classe d infos complementaires sur personnes supann'
MAY ( supannOrganisme $ supannCivilite $ supannAutreTelephone $ supannAffectation $ supannEmpId $ supannCodeINE $ supannEtuId $ supannAliasLogin $ supannParrainDN $ supannActivite $ supannEntiteAffectation $ supannEntiteAffectationPrincipale $ supannMailPerso $ supannRole $ supannRoleEntite $ supannRoleGenerique $ supannEtuAnneeInscription $ supannEtuCursusAnnee $ supannEtuDiplome $ supannEtuElementPedagogique $ supannEtuEtape $ supannEtuInscription $ supannEtuRegimeInscription $ supannEtuSecteurDisciplinaire $ supannEtuTypeDiplome $ supannEtablissement $ supannListeRouge $ supannAutreMail $ mailForwardingAddress $ supannEmpCorps $ supannTypeEntiteAffectation $ supannRefId )
)
#
################################################################################
#
olcObjectClasses: (
1.3.6.1.4.1.7135.1.2.2.2
NAME 'supannOrg'
SUP top AUXILIARY
DESC 'classe d infos complementaires pour etablissement'
MAY ( supannEtablissement )
)
#
################################################################################
#
olcObjectClasses: (
1.3.6.1.4.1.7135.1.2.2.3
NAME 'supannEntite'
SUP top AUXILIARY
DESC 'classe d infos complementaires pour entite'
MUST ( supannCodeEntite )
MAY ( supannTypeEntite $ supannCodeEntiteParent $ supannRefId )
)
#
################################################################################
#
#objectClasses: (
# 1.3.6.1.4.1.7135.1.2.2.4
# NAME 'entree disponible'
# )
#
################################################################################
#
#objectClasses: (
# 1.3.6.1.4.1.7135.1.2.2.5
# NAME 'entree disponible'
# )
#
################################################################################
#
olcObjectClasses: (
1.3.6.1.4.1.7135.1.2.2.6
NAME 'supannGroupe'
SUP top AUXILIARY
DESC 'attributs specifiques des groupes'
MAY ( supannGroupeDateFin $ supannGroupeAdminDN $ supannGroupeLecteurDN $ supannRefId )
)
#
################################################################################
#

View File

@ -1,7 +1,7 @@
#!/bin/sh
ME=`basename $0`
COMMANDDIR=`dirname $0`/commands
COMMANDDIR=`dirname $0`/lib
test -d ${COMMANDDIR} || COMMANDDIR=/usr/lib/`basename $0`
help() {