Code

First import preparing work on sudo-ldap plugin
authoropensides <opensides@594d385d-05f5-0310-b6e9-bd551577e9d8>
Sat, 27 Oct 2007 13:10:14 +0000 (13:10 +0000)
committeropensides <opensides@594d385d-05f5-0310-b6e9-bd551577e9d8>
Sat, 27 Oct 2007 13:10:14 +0000 (13:10 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5-plugins@7677 594d385d-05f5-0310-b6e9-bd551577e9d8

sudo-ldap/doc/README.sudo [new file with mode: 0644]
sudo-ldap/schema/sudo.schema [new file with mode: 0644]

diff --git a/sudo-ldap/doc/README.sudo b/sudo-ldap/doc/README.sudo
new file mode 100644 (file)
index 0000000..0c0864b
--- /dev/null
@@ -0,0 +1,8 @@
+To use the sudo extension
+
+1) Add the sudo.schema to your schema directory
+
+Benoit Mortier <benoit Mortier@opensides.be>
+OpenSides October 2007
+
+
diff --git a/sudo-ldap/schema/sudo.schema b/sudo-ldap/schema/sudo.schema
new file mode 100644 (file)
index 0000000..8117ec6
--- /dev/null
@@ -0,0 +1,43 @@
+  #
+  #  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 )
+        )
+