I was having problems getting login_krb5 to work.  It would work if I ran
the login_-krb5-or-pwd directly, but logins wouldn't work.  Finally I tried
su and got:

-bash-4.3$ su kurt
su: invalid script: /usr/libexec/auth/login_krb5-or-pwd
Sorry
-bash-4.3$

It's invalid because the package put the file in as login_-krb5-or-pwd in
/usr/libexec/auth but as login_krb5-or-pwd in /usr/local/libexec/auth.

Either providing a hardlink or renaming the file as login_krb5-or-pwd and
everything happily works.

So I believe it was down to a couple typos in the PLIST.  I've provided 
a patch below.

--Kurt

Index: sysutils/login_krb5/pkg/PLIST
===================================================================
RCS file: /cvs/ports/sysutils/login_krb5/pkg/PLIST,v
retrieving revision 1.1.1.1
diff -u -p -r1.1.1.1 PLIST
--- sysutils/login_krb5/pkg/PLIST       10 Dec 2014 12:48:12 -0000      1.1.1.1
+++ sysutils/login_krb5/pkg/PLIST       21 Jun 2015 17:25:18 -0000
@@ -5,13 +5,13 @@ libexec/auth/
 @bin libexec/auth/login_krb5
 @mode 4555
 @owner root
-@sample /usr/libexec/auth/login_-krb5
+@sample /usr/libexec/auth/login_krb5
 @mode
 @owner
 @bin libexec/auth/login_krb5-or-pwd
 @mode 4555
 @owner root
-@sample /usr/libexec/auth/login_-krb5-or-pwd
+@sample /usr/libexec/auth/login_krb5-or-pwd
 @mode
 @owner
 @group

Reply via email to