Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 472948

Summary: app-admin/sudo[ldap] should install schema file in /etc/openldap/schema/
Product: Gentoo Linux Reporter: John J. Aylward <john>
Component: [OLD] Core systemAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED FIXED    
Severity: normal CC: ldap-bugs, volkov
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=209395
Whiteboard:
Package list:
Runtime testing required: ---

Description John J. Aylward 2013-06-11 06:43:54 UTC
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
Comment 1 SpanKY gentoo-dev 2013-06-17 01:48:09 UTC
someone who knows about ldap should comment on whether this is a good idea
Comment 2 John J. Aylward 2013-06-18 22:44:48 UTC
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
Comment 3 Andrey Volkov 2013-12-10 11:12:01 UTC
+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
Comment 4 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2015-11-02 10:14:45 UTC
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>