From b086f57f56bf0eb9dab9cf321a0f69aaaae84347 Mon Sep 17 00:00:00 2001 From: Andrew Branson Date: Wed, 30 May 2012 08:37:45 +0200 Subject: Initial Maven Conversion --- src/main/resources/openldap/README | 5 +++ src/main/resources/openldap/cristal2.schema | 49 +++++++++++++++++++++++++++++ src/main/resources/openldap/slapd.conf | 20 ++++++++++++ 3 files changed, 74 insertions(+) create mode 100644 src/main/resources/openldap/README create mode 100644 src/main/resources/openldap/cristal2.schema create mode 100644 src/main/resources/openldap/slapd.conf (limited to 'src/main/resources/openldap') diff --git a/src/main/resources/openldap/README b/src/main/resources/openldap/README new file mode 100644 index 0000000..6bfdabc --- /dev/null +++ b/src/main/resources/openldap/README @@ -0,0 +1,5 @@ +cristal2.schema goes in OpenLDAP/schemas, or change the include line to point to it here. + +edit your slapd.conf to include it, and replace the env vars with your local path. +edit the suffix and rootdn and rootpass +use this slapd to help you diff --git a/src/main/resources/openldap/cristal2.schema b/src/main/resources/openldap/cristal2.schema new file mode 100644 index 0000000..2370964 --- /dev/null +++ b/src/main/resources/openldap/cristal2.schema @@ -0,0 +1,49 @@ +attributetype ( 1.3.6.1.4.1.96.64.10.1 NAME 'intsyskey' + EQUALITY integerMatch + SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 ) + +attributetype ( 1.3.6.1.4.1.96.64.10.6 NAME 'ior' + EQUALITY caseIgnoreMatch + SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 + SINGLE-VALUE ) + +attributetype ( 1.3.6.1.4.1.96.64.10.7 NAME 'cristalprop' + EQUALITY caseIgnoreMatch + SUBSTR caseIgnoreSubstringsMatch + SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 ) + +objectclass ( 1.3.6.1.4.1.96.64.10.10 NAME 'cristalentity' SUP top STRUCTURAL + MUST ( cn $ objectclass ) + MAY ( intsyskey $ ior $ cristalprop ) ) + +objectclass ( 1.3.6.1.4.1.96.64.10.13 NAME 'cristalcontext' SUP top STRUCTURAL + MUST ( cn $ objectclass ) + MAY ( intsyskey ) ) + +objectclass ( 1.3.6.1.4.1.96.64.10.15 NAME 'aliasObject' SUP alias STRUCTURAL + MUST ( cn $ objectclass $ aliasedObjectName ) ) + +# agent +attributetype ( 1.3.6.1.4.1.96.64.10.8 NAME 'jobList' + EQUALITY booleanMatch + SYNTAX 1.3.6.1.4.1.1466.115.121.1.7 ) + + # uid must store userName if agent (for authentication to work) +objectclass ( 1.3.6.1.4.1.96.64.10.14 NAME 'cristalagent' SUP cristalentity STRUCTURAL + MUST ( userPassword $ uid ) ) + +objectclass ( 1.3.6.1.4.1.96.64.10.16 NAME 'cristalrole' SUP top STRUCTURAL + MUST ( cn $ objectclass ) + MAY ( jobList $ uniqueMember ) ) + +# old + +attributetype ( 1.3.6.1.4.1.96.64.10.2 NAME 'propval' + EQUALITY caseIgnoreMatch + SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 + SINGLE-VALUE ) + +objectclass ( 1.3.6.1.4.1.96.64.10.11 NAME 'cristalproperty' SUP top STRUCTURAL + MUST ( cn $ objectclass ) + MAY ( propval ) ) + diff --git a/src/main/resources/openldap/slapd.conf b/src/main/resources/openldap/slapd.conf new file mode 100644 index 0000000..65cebf1 --- /dev/null +++ b/src/main/resources/openldap/slapd.conf @@ -0,0 +1,20 @@ +# $OpenLDAP: pkg/ldap/servers/slapd/slapd.conf,v 1.8.8.7 2001/09/27 20:00:31 kurt Exp $ +# +# See slapd.conf(5) for details on configuration options. +# This file should NOT be world readable. +# +include D:/openldap-2_0_19_debug/schema/core.schema +include D:/openldap-2_0_19_debug/schema/cristal2.schema +pidfile D:/openldap-2_0_19_debug/slapd.pid +argsfile D:/openldap-2_0_19_debug/slapd.args + + +# if no access controls are present, the default is: +# Allow read by all +# rootdn can always write! + +database ldbm +suffix "o=cern,c=ch" +rootdn "cn=Directory Manager,o=cern,c=ch" +rootpw estrella +index objectClass eq -- cgit v1.2.3