Currently the file is copied straight from source doc dir to /usr/share/doc/sudo-1.8.6_p7/schema.OpenLDAP.bz2 It would be nice if the unzipped version of this file was installed into /etc/openldap/schema/ directory when the ldap use flag was specified. Specifically /etc/openldap/schema/sudo.schema
someone who knows about ldap should comment on whether this is a good idea
Adding the file to the schema directory does not enable it. The schema file would have to be added to the /etc/openldap/slapd.conf file to be enabled: like this: include /etc/openldap/schema/sudo.schema
+1 I'm waiting for this too. @@ -127,9 +127,12 @@ default if use ldap ; then - dodoc README.LDAP doc/schema.OpenLDAP + dodoc README.LDAP dosbin plugins/sudoers/sudoers2ldif + insinto /etc/openldap/schema + newins doc/schema.OpenLDAP sudo.schema + cat <<-EOF > "${T}"/ldap.conf.sudo # See ldap.conf(5) and README.LDAP for details # This file should only be readable by root
commit 3f9f5e66223fa478822cd23733f9e373f5b865e8 Author: Lars Wendler <polynomial-c@gentoo.org> Date: Mon Nov 2 11:13:53 2015 app-admin/sudo: Revbump to add ldap schema file (bug #472948). Package-Manager: portage-2.2.23 Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>