From 333021130fbac25610c775750c4ebd31d5ca86b7 Mon Sep 17 00:00:00 2001 From: opensides Date: Sat, 27 Oct 2007 13:10:14 +0000 Subject: [PATCH] First import preparing work on sudo-ldap plugin git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5-plugins@7677 594d385d-05f5-0310-b6e9-bd551577e9d8 --- sudo-ldap/doc/README.sudo | 8 +++++++ sudo-ldap/schema/sudo.schema | 43 ++++++++++++++++++++++++++++++++++++ 2 files changed, 51 insertions(+) create mode 100644 sudo-ldap/doc/README.sudo create mode 100644 sudo-ldap/schema/sudo.schema diff --git a/sudo-ldap/doc/README.sudo b/sudo-ldap/doc/README.sudo new file mode 100644 index 000000000..0c0864b09 --- /dev/null +++ b/sudo-ldap/doc/README.sudo @@ -0,0 +1,8 @@ +To use the sudo extension + +1) Add the sudo.schema to your schema directory + +Benoit Mortier +OpenSides October 2007 + + diff --git a/sudo-ldap/schema/sudo.schema b/sudo-ldap/schema/sudo.schema new file mode 100644 index 000000000..8117ec624 --- /dev/null +++ b/sudo-ldap/schema/sudo.schema @@ -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 ) + ) + -- 2.30.2