From 33ba97cd28f138b49697273e445b479d42bf42a9 Mon Sep 17 00:00:00 2001 From: Sergey Poznyakoff Date: Tue, 25 Jun 2013 12:36:31 +0300 Subject: Bugfixes. * gitacl.schema: An example LDAP schema. * MANIFEST: Add gitacl.schema * Makefile.PL: Update. * gitaclhook: Fix passing 'user' parameter in test mode. * lib/GitACL.pm: Fix malformed references. --- gitacl.schema | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 gitacl.schema (limited to 'gitacl.schema') diff --git a/gitacl.schema b/gitacl.schema new file mode 100644 index 0000000..d8083e5 --- /dev/null +++ b/gitacl.schema @@ -0,0 +1,49 @@ +# Git LDAP schema items +# +# depends upon: +# nis.schema + +attributetype ( 1.3.6.1.4.1.9163.2.3.1.0 NAME 'gitAclProject' + DESC 'Project for which the ACL entry is defined' + EQUALITY caseExactMatch + SUBSTR caseExactSubstringsMatch + SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{256} + SINGLE-VALUE ) + +attributetype ( 1.3.6.1.4.1.9163.2.3.1.1 NAME 'gitAclVerb' + DESC 'ACL verb' + EQUALITY caseExactMatch + SUBSTR caseExactSubstringsMatch + SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{256} + SINGLE-VALUE ) + +attributetype ( 1.3.6.1.4.1.9163.2.3.1.2 NAME 'gitAclOp' + DESC 'ACL opcode: any combination of C, D, U or R' + EQUALITY caseExactMatch + SUBSTR caseExactSubstringsMatch + SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{256} ) + +attributetype ( 1.3.6.1.4.1.9163.2.3.1.3 NAME 'gitAclRef' + DESC 'Git ref' + EQUALITY caseExactMatch + SUBSTR caseExactSubstringsMatch + SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{256} ) + +attributetype ( 1.3.6.1.4.1.9163.2.3.1.4 NAME 'gitAclOrder' + DESC 'an integer to order ACL entries' + EQUALITY integerMatch + SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 + SINGLE-VALUE ) + +attributetype ( 1.3.6.1.4.1.9163.2.3.1.5 NAME 'gitAclUser' + DESC 'Git username' + EQUALITY caseExactMatch + SUBSTR caseExactSubstringsMatch + SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{256} ) + +objectclass ( 1.3.6.1.4.1.9163.2.3.2.0 NAME 'gitACL' + DESC 'Git Access Control List Entry' + SUP top STRUCTURAL + MUST ( cn $ gitAclProject $ gitAclVerb ) + MAY ( gitAclUser $ gitAclOp $ gitAclRef $ gitAclOrder $ description ) ) + -- cgit v1.2.1