aboutsummaryrefslogtreecommitdiff
path: root/files/usr/local/libexec/idm-ssh-authorized-keys.common
diff options
context:
space:
mode:
Diffstat (limited to 'files/usr/local/libexec/idm-ssh-authorized-keys.common')
-rw-r--r--files/usr/local/libexec/idm-ssh-authorized-keys.common8
1 files changed, 4 insertions, 4 deletions
diff --git a/files/usr/local/libexec/idm-ssh-authorized-keys.common b/files/usr/local/libexec/idm-ssh-authorized-keys.common
index 89d2f20..ef7ba3c 100644
--- a/files/usr/local/libexec/idm-ssh-authorized-keys.common
+++ b/files/usr/local/libexec/idm-ssh-authorized-keys.common
@@ -7,7 +7,7 @@ use Net::LDAP;
use Net::LDAP::Util qw(escape_filter_value);
use Authen::SASL;
-open my $fh, '<', '/usr/local/etc/openldap/ldap.conf' or quit($!);
+open my $fh, '<', '/usr/local/etc/openldap/ldap.conf' or die($!);
my %config;
while (<$fh>) {
chomp;
@@ -18,9 +18,9 @@ while (<$fh>) {
}
close($fh);
-my $mech = $config{SASL_MECH} // 'GSSAPI';
-my $uri = $config{URI} // quit('URI not specified');
-my $basedn = $config{USERS_BASE} // quit('USERS_BASE not specified');
+my $mech = $config{SASL_MECH} // 'GSSAPI';
+my $uri = $config{URI} // die("URI not specified\n");
+my $basedn = $config{USERS_BASE} // die("USERS_BASE not specified\n");
@ARGV == 1 or die "usage: $0 USERNAME\n";
my $username = $ARGV[0];