Bug 839 - Typo in doc/schema.OpenLDAP gives syntax error
Typo in doc/schema.OpenLDAP gives syntax error
Status: RESOLVED FIXED
Product: Sudo
Classification: Unclassified
Component: Documentation
1.8.23
All All
: low normal
Assigned To: Todd C. Miller
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2018-06-25 11:34 MDT by Norman Gray
Modified: 2018-08-18 13:27 MDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Norman Gray 2018-06-25 11:34:04 MDT
The sudoers schema in doc/schema.OpenLDAP inclues a number of `attributetype` stanzas.  However one of these (sudoOrder) is given as `attributetypes` in the file.  This causes an error if this file is mechanically translated into the .ldif appropriate for uploading to an OpenLDAP server.

As described at http://www.openldap.org/doc/admin24/schema.html the keyword is indeed expected to be `attributetype`.

Changing this in the provided schema file does indeed fix the problem.

Diff:

% diff schema.OpenLDAP{-orig,} 
64c64
< attributeTypes ( 1.3.6.1.4.1.15953.9.1.10
---
> attributeType ( 1.3.6.1.4.1.15953.9.1.10
Comment 1 Todd C. Miller 2018-06-25 12:52:27 MDT
Thanks for reporting this, the typo is fixed by https://www.sudo.ws/repos/sudo/rev/dee2dad738de
Comment 2 Todd C. Miller 2018-08-18 13:27:17 MDT
Fixed in sudo 1.8.24, available now.