Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 450948 - net-nds/openldap-2.4.33-r1: smbkrb5passwd use flag ignores kerberos and samba use flags
Summary: net-nds/openldap-2.4.33-r1: smbkrb5passwd use flag ignores kerberos and samba...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: LDAP Herd
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2013-01-08 20:05 UTC by Brian McCarter
Modified: 2014-10-12 06:52 UTC (History)
1 user (show)

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


Attachments
Patch net-nds/openldap-2.4.33-r1 to honor samba and kerberos flags when building smbk5pwd. (openldap-ebuild-smbkrb5passwd-honor-samba-kerberos.patch,728 bytes, patch)
2013-01-08 20:29 UTC, Brian McCarter
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Brian McCarter 2013-01-08 20:05:08 UTC
The smbkrb5passwd flag commands the ebuild to make and install an overlay called smbk5pwd.  When smbkrb5passwd is used, the ebuild defines DO_KRB5 and DO_SAMBA in the call to emake.  That builds smbk5pwd with support for kerberos and samba, even if those flags are not set for openldap.  

Reproducible: Always

Steps to Reproduce:
1. USE="smbkrb5passwd samba -kerberos" emerge net-nds/openldap
2. Add smbk5pwd overlay to an existing database, with samba schema but no kerberos schema.


Actual Results:  
This error gets printed to /var/log/messages:

smbk5pwd: unable to initialize krb5 admin context: unable to find realm of host


Expected Results:  
I want to be able to build support on my system for samba, but not for kerberos, and still be able to use smbk5pwd with openldap.
Comment 1 Brian McCarter 2013-01-08 20:29:21 UTC
Created attachment 334850 [details, diff]
Patch net-nds/openldap-2.4.33-r1 to honor samba and kerberos flags when building smbk5pwd.
Comment 2 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2014-10-12 06:27:51 UTC
in 2.4.40
Comment 3 Arfrever Frehtes Taifersar Arahesis 2014-10-12 06:52:32 UTC
MY_KRB5_INC="" should be outside 'if use samba' branch.