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.