Skip Menu |

This queue is for tickets about the Authen-Krb5-Admin CPAN distribution.

Report information
The Basics
Id: 81146
Status: resolved
Priority: 0/
Queue: Authen-Krb5-Admin

People
Owner: Nobody in particular
Requestors: tfpoage [...] ucdavis.edu
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Environment variable conflict in Makefile.PL
Date: Tue, 13 Nov 2012 11:52:51 -0800
To: bug-Authen-Krb5-Admin [...] rt.cpan.org
From: Tom Poage <tfpoage [...] ucdavis.edu>
Makefile.PL looks for environment variable KRB5_CONFIG as pointing to the krb5-config utility(1) (a shell script). Kerberos uses KRB5_CONFIG to reference the krb5.conf configuration file, a la: ... Show quoted text
> [realms] > EXAMPLE.COM = { > kdc = kerberos.example.com > admin_server = kerberos.example.com > }
... This environment variable 'aliasing' makes it difficult to build the software when one uses a non-standard krb5.conf name or location, e.g. pointing to a development Kerberos admin server (how I build/test the package). Suggest renaming $KRB5_CONFIG in Makefile.PL to e.g. $KRB5_CONFTOOL and looking for $ENV{KRB5_CONFTOOL}. E.g. Show quoted text
> my $KRB5_CONFTOOL; > print 'checking for krb5-config ... '; > for my $path ( $ENV{KRB5_CONFTOOL}, '/usr/local/bin/krb5-config', '/usr/bin/krb5-config' ) { > if ( $path && -x $path ) { > $KRB5_CONFTOOL = $path; > last; > } > }
etc. Thank you. Tom.
Thanks for the bug report, it is much appreciated. I've uploaded version 0.16 which fixes this problem. Cheers, Stephen Quinney On Tue Nov 13 14:53:08 2012, tfpoage@ucdavis.edu wrote: Show quoted text
> Makefile.PL looks for environment variable KRB5_CONFIG as pointing to > the krb5-config utility(1) (a shell script). > > Kerberos uses KRB5_CONFIG to reference the krb5.conf configuration > file, > a la: > > ...
> > [realms] > > EXAMPLE.COM = { > > kdc = kerberos.example.com > > admin_server = kerberos.example.com > > }
> ... > > This environment variable 'aliasing' makes it difficult to build the > software when one uses a non-standard krb5.conf name or location, e.g. > pointing to a development Kerberos admin server (how I build/test the > package). > > Suggest renaming $KRB5_CONFIG in Makefile.PL to e.g. $KRB5_CONFTOOL > and > looking for $ENV{KRB5_CONFTOOL}. E.g. >
> > my $KRB5_CONFTOOL; > > print 'checking for krb5-config ... '; > > for my $path ( $ENV{KRB5_CONFTOOL}, '/usr/local/bin/krb5-config',
> '/usr/bin/krb5-config' ) {
> > if ( $path && -x $path ) { > > $KRB5_CONFTOOL = $path; > > last; > > } > > }
> etc. > > Thank you. > Tom.