summaryrefslogtreecommitdiff
path: root/resources/openldap
diff options
context:
space:
mode:
authorAndrew Branson <andrew@andrewbranson.net>2011-06-21 15:46:02 +0200
committerAndrew Branson <andrew@andrewbranson.net>2011-06-21 15:46:02 +0200
commit254ee6f47eebfc00462c10756a92066e82cc1a96 (patch)
tree8273ff95c704e6faa3f92b4711253427b9ba0481 /resources/openldap
Initial commit2.2
Diffstat (limited to 'resources/openldap')
-rwxr-xr-xresources/openldap/README5
-rwxr-xr-xresources/openldap/cristal2.schema49
-rwxr-xr-xresources/openldap/slapd.conf20
3 files changed, 74 insertions, 0 deletions
diff --git a/resources/openldap/README b/resources/openldap/README
new file mode 100755
index 0000000..6bfdabc
--- /dev/null
+++ b/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/resources/openldap/cristal2.schema b/resources/openldap/cristal2.schema
new file mode 100755
index 0000000..2370964
--- /dev/null
+++ b/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/resources/openldap/slapd.conf b/resources/openldap/slapd.conf
new file mode 100755
index 0000000..65cebf1
--- /dev/null
+++ b/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