Bug 839

Summary: Typo in doc/schema.OpenLDAP gives syntax error
Product: Sudo Reporter: Norman Gray <norman.gray>
Component: DocumentationAssignee: Todd C. Miller <Todd.Miller>
Status: RESOLVED FIXED    
Severity: normal    
Priority: low    
Version: 1.8.23   
Hardware: All   
OS: All   

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.