summaryrefslogtreecommitdiffabout
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--.gitignore3
-rw-r--r--Makefile4
-rw-r--r--gitacl.schema56
-rw-r--r--gray-assignments.texi34
4 files changed, 92 insertions, 5 deletions
diff --git a/.gitignore b/.gitignore
index c672b36..59631ac 100644
--- a/.gitignore
+++ b/.gitignore
@@ -6,3 +6,6 @@ MYSQL-STAT-MIB.txt
TALLYMAN-MIB.txt
*.html
gray-assignments
+.emacs.desktop
+.emacs.desktop.lock
+version.texi
diff --git a/Makefile b/Makefile
index f0581d4..554b8e5 100644
--- a/Makefile
+++ b/Makefile
@@ -1,8 +1,8 @@
-SCHEMES = gray.scheme umi.scheme
+SCHEMES = gray.schema gitacl.schema umi.schema
MIBS = OWS-STATS.txt SESSION-STATS.txt
REFMIBS = TALLYMAN-MIB.txt MYSQL-STAT-MIB.txt SENDMAIL-STATS.txt
-TEXINFO_SOURCES = $(SCHEMES:.scheme=.inc) $(MIBS:.txt=.inc) $(REFMIBS:.txt=.inc)
+TEXINFO_SOURCES = $(SCHEMES:.schema=.inc) $(MIBS:.txt=.inc) $(REFMIBS:.txt=.inc)
SOURCES = gray-assignments.texi version.texi $(TEXINFO_SOURCES)
gray-assignments.info: $(SOURCES)
diff --git a/gitacl.schema b/gitacl.schema
new file mode 100644
index 0000000..a9098d4
--- a/dev/null
+++ b/gitacl.schema
@@ -0,0 +1,56 @@
+# 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} )
+
+attributetype ( 1.3.6.1.4.1.9163.2.3.1.6 NAME 'gitAclTree'
+ DESC 'Git subtree'
+ 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 $
+ gitAclTree $ description ) )
+
diff --git a/gray-assignments.texi b/gray-assignments.texi
index f6c8a7f..8ae72ad 100644
--- a/gray-assignments.texi
+++ b/gray-assignments.texi
@@ -47,6 +47,7 @@ Private Enterprise Number node.
Apendices
* gray.schema::
+* gitacl.schema::
* SENDMAIL-STATS.txt::
* SESSION-STATS.txt::
* MYSQL-STAT-MIB.txt::
@@ -74,7 +75,7 @@ please contact @email{gray@@gnu.org, Sergey Poznyakoff}.
@defvr {OID} 1.3.6.1.4.1.9163.2
Name: @samp{gray.schema}
@*Purpose: Various LDAP assignments.
-@*References: @xref{gray.schema}.
+@*References: @xref{gray.schema}, @xref{gitacl.schema}.
@end defvr
@defvr {OID} 1.3.6.1.4.1.9163.100
@@ -124,7 +125,8 @@ Name: check_class_snmp
@defvr {OID} 1.3.6.1.4.1.9163.864
Name: @samp{umi.schema}
-@*Purpose: LDAP assignments for @command{UMI}.
+@*Purpose: LDAP assignments for @command{UMI}
+@*Author: Zeus Panchenko
@*Project: @uref{https://github.com/z-eos/umi}
@*References: @xref{umi.schema}.
@end defvr
@@ -135,12 +137,33 @@ Name: @samp{umi.schema}
The LDAP schema below defines various accounting objects I use on my
servers.
-Base OID: 1.3.6.1.4.1.9163.2
+@noindent
+Base OID: 1.3.6.1.4.1.9163.2 (except for @samp{1.3.6.1.4.1.9163.2.3},
+which see in @pxref{gitacl.schema}).
@example
@include gray.inc
@end example
+@node gitacl.schema
+@appendix gitacl.schema
+
+This is LDAP schema used by @command{gitaclhook}, a @command{git} hook
+implementing fine-grained access control for git repositories. For
+detailed information about the program including pointers to
+downloads, see @uref{https://puszcza.gnu.org.ua/projects/gitaclhook}.
+
+The most recent version of this MIB is available from
+@uref{http://git.gnu.org.ua/cgit/gitaclhook.git/tree/gitacl.schema}.
+
+
+@noindent
+Base OID: 1.3.6.1.4.1.9163.2.3
+
+@example
+@include gitacl.inc
+@end example
+
@node SENDMAIL-STATS.txt
@appendix SENDMAIL-STATS.txt
@@ -152,6 +175,7 @@ obtained by mailq and mailstats. It is used by the
The most recent version of this MIB is available from
@uref{http://git.gnu.org.ua/cgit/netsnmp-sendmail.git/tree/SENDMAIL-STATS.txt}.
+@noindent
Base OID: 1.3.6.1.4.1.9163.100
@example
@@ -169,6 +193,7 @@ Therefore I have never published it. Quite possibly the module would
phase out some of these days, and the OID will be reused for some
other purpose.
+@noindent
Base OID: 1.3.6.1.4.1.9163.101
@example
@@ -186,6 +211,7 @@ module is available at @uref{https://puszcza.gnu.org.ua/projects/mysqlstat}.
The most recent version of this MIB is available from
@uref{http://git.gnu.org.ua/cgit/mysqlstat.git/tree/src/MYSQL-STAT-MIB.txt}
+@noindent
Base OID: 1.3.6.1.4.1.9163.102
@example
@@ -202,6 +228,7 @@ avaialable from @uref{https://puszcza.gnu.org.ua/projects/tallyman}.
The most recent version of this MIB is available from
@uref{http://git.gnu.org.ua/cgit/tallyman.git/tree/src/TALLYMAN-MIB.txt}.
+@noindent
Base OID: 1.3.6.1.4.1.9163.103
@example
@@ -214,6 +241,7 @@ Base OID: 1.3.6.1.4.1.9163.103
Yet another unpublished project: @command{NetSNMP::OWSProbe}. Will
hopefully be withdrawn.
+@noindent
Base OID: 1.3.6.1.4.1.9163.110
@example

Return to:

Send suggestions and report system problems to the System administrator.