Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 472948 - app-admin/sudo[ldap] should install schema file in /etc/openldap/schema/
Summary: app-admin/sudo[ldap] should install schema file in /etc/openldap/schema/
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-06-11 06:43 UTC by John J. Aylward
Modified: 2015-11-02 10:14 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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>