Hi,<br><br>I have wiki'd my sudo setup<br><br><a href="http://wiki.unixcraft.com/display/MainPage/Sudo+in+Centos+Directory+Server">http://wiki.unixcraft.com/display/MainPage/Sudo+in+Centos+Directory+Server</a><br><br><br>
<div class="gmail_quote">2008/12/1 Rich Megginson <span dir="ltr"><<a href="mailto:rmeggins@redhat.com">rmeggins@redhat.com</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Erling Ringen Elvsrud wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I try to add the schema for sudoers from README.LDAP in<br>
the srpm-file of sudo-1.6.8p12. I assume the iPlanet-version will work best, but<br>
get this problem when I restart directory server:<br>
<br>
[root@testserver schema]# service dirsrv restart<br>
Shutting down dirsrv:<br>
    testserver...                                          [  OK  ]<br>
Starting dirsrv:<br>
    testserver...[27/Nov/2008:10:37:31 +0100] - Entry "cn=schema<br>
attributeTypes: ( 1.3.6.1.4.1.15953.9.1.1 NAME 'sudoUser' DESC<br>
'User(s) who may  run sudo' EQUALITY caseExactIA5Match SUBSTR caseE"<br>
required attribute "objectclass" missing<br>
  <br>
</blockquote>
<br>
The sudo schema is now in CVS HEAD and will be part of the next release of Fedora DS:<br>
<a href="http://cvs.fedoraproject.org/viewvc/ldapserver/ldap/schema/60sudo.ldif?revision=1.1&root=dirsec&view=markup" target="_blank">http://cvs.fedoraproject.org/viewvc/ldapserver/ldap/schema/60sudo.ldif?revision=1.1&root=dirsec&view=markup</a><br>

<br>
You can go ahead and download and use this file with any version of Fedora DS.<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
                                                           [  OK  ]<br>
[root@testserver schema]# cat 99sudoers.ldif<br>
dn: cn=schema attributeTypes: ( 1.3.6.1.4.1.15953.9.1.1 NAME<br>
'sudoUser' DESC 'User(s) who may  run sudo' EQUALITY caseExactIA5Match<br>
SUBSTR caseE<br>
<br>
xactIA5SubstringsMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 X-ORIGIN 'SUDO' )<br>
  attributeTypes: ( 1.3.6.1.4.1.15953.9.1.2 NAME 'sudoHost' DESC<br>
'Host(s) who may run sudo' EQUALITY caseExactIA5Match SUBSTR caseEx<br>
<br>
actIA5SubstringsMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 X-ORIGIN 'SUDO' )<br>
  attributeTypes: ( 1.3.6.1.4.1.15953.9.1.3 NAME 'sudoCommand' DESC<br>
'Command(s) to be executed by sudo' EQUALITY caseExactIA5Match S<br>
<br>
YNTAX 1.3.6.1.4.1.1466.115.121.1.26 X-ORIGIN 'SUDO' )<br>
  attributeTypes: ( 1.3.6.1.4.1.15953.9.1.4 NAME 'sudoRunAs' DESC<br>
'User(s) impersonated by sudo' EQUALITY caseExactIA5Match SYNTAX 1<br>
<br>
.3.6.1.4.1.1466.115.121.1.26 X-ORIGIN 'SUDO' )<br>
  attributeTypes: ( 1.3.6.1.4.1.15953.9.1.5 NAME 'sudoOption' DESC<br>
'Options(s) followed by sudo' EQUALITY caseExactIA5Match SYNTAX 1<br>
<br>
.3.6.1.4.1.1466.115.121.1.26 X-ORIGIN 'SUDO' )<br>
  objectClasses: ( 1.3.6.1.4.1.15953.9.2.1 NAME 'sudoRole' SUP top<br>
STRUCTURAL DESC 'Sudoer Entries' MUST ( cn ) MAY ( sudoUser $ sud<br>
<br>
oHost $ sudoCommand $ sudoRunAs $ sudoOption $ description ) X-ORIGIN 'SUDO' )<br>
<br>
Any help to get the schema for sudo correctly added is appreciated.<br>
<br>
Thanks,<br>
<br>
Erling<br>
<br>
--<br>
Fedora-directory-users mailing list<br>
<a href="mailto:Fedora-directory-users@redhat.com" target="_blank">Fedora-directory-users@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/fedora-directory-users" target="_blank">https://www.redhat.com/mailman/listinfo/fedora-directory-users</a><br>
  <br>
</blockquote>
<br>
<br>--<br>
Fedora-directory-users mailing list<br>
<a href="mailto:Fedora-directory-users@redhat.com">Fedora-directory-users@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/fedora-directory-users" target="_blank">https://www.redhat.com/mailman/listinfo/fedora-directory-users</a><br>
<br></blockquote></div><br>