Code

* Created "old" branch and moved stuff
[gosa.git] / branches / old / gosa-plugins / sudo / contrib / sudo.schema
diff --git a/branches/old/gosa-plugins/sudo/contrib/sudo.schema b/branches/old/gosa-plugins/sudo/contrib/sudo.schema
new file mode 100644 (file)
index 0000000..1790d03
--- /dev/null
@@ -0,0 +1,44 @@
+#
+#  schema file for sudo
+#
+
+attributetype ( 1.3.6.1.4.1.15953.9.1.1
+               NAME 'sudoUser'
+               DESC 'User(s) who may  run sudo'
+               EQUALITY caseExactIA5Match
+               SUBSTR caseExactIA5SubstringsMatch
+               SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 )
+
+attributetype ( 1.3.6.1.4.1.15953.9.1.2
+               NAME 'sudoHost'
+               DESC 'Host(s) who may run sudo'
+               EQUALITY caseExactIA5Match
+               SUBSTR caseExactIA5SubstringsMatch
+               SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 )
+
+attributetype ( 1.3.6.1.4.1.15953.9.1.3
+               NAME 'sudoCommand'
+               DESC 'Command(s) to be executed by sudo'
+               EQUALITY caseExactIA5Match
+               SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 )
+
+attributetype ( 1.3.6.1.4.1.15953.9.1.4
+               NAME 'sudoRunAs'
+               DESC 'User(s) impersonated by sudo'
+               EQUALITY caseExactIA5Match
+               SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 )
+
+attributetype ( 1.3.6.1.4.1.15953.9.1.5
+               NAME 'sudoOption'
+               DESC 'Options(s) followed by sudo'
+               EQUALITY caseExactIA5Match
+               SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 )
+
+objectclass ( 1.3.6.1.4.1.15953.9.2.1 NAME 'sudoRole' SUP top STRUCTURAL
+               DESC 'Sudoer Entries'
+               MUST ( cn )
+               MAY ( sudoUser $ sudoHost $ sudoCommand $ sudoRunAs $ sudoOption $
+                       description )
+           )
+
+