cvtsudoers instead of sudoers2ldif

This commit is contained in:
Todd C. Miller
2018-01-27 20:12:34 -07:00
parent 681fb2e76e
commit ea7daee6f7

View File

@@ -106,13 +106,12 @@ For instance, if using OpenLDAP:
objectClass: organizationalUnit objectClass: organizationalUnit
ou: SUDOers ou: SUDOers
(An example location is shown below). Then use the provided script to convert (An example location is shown below). Then use the cvtsudoers utility to
your sudoers file into LDIF format. The script will also convert any default convert your sudoers file into LDIF format.
options.
# SUDOERS_BASE=ou=SUDOers,dc=example,dc=com # SUDOERS_BASE=ou=SUDOers,dc=example,dc=com
# export SUDOERS_BASE # export SUDOERS_BASE
# ./sudoers2ldif /etc/sudoers > /tmp/sudoers.ldif # cvtsudoers -f ldif -o /tmp/sudoers.ldif /etc/sudoers
Step 2: Step 2:
Import into your directory server. The following example is for Import into your directory server. The following example is for