From 5e335c04f01174267c8a25754e52529eb4de75fc Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Wed, 20 Jul 2011 21:23:31 +0000 Subject: fixed rhimport-dn user handling git-svn-id: https://svn.helsinki.at/rhimport/trunk@79 7c65635b-ec39-4f67-a626-873dbafdd612 diff --git a/rhimport-dn b/rhimport-dn index bf98e81..bf72584 100755 --- a/rhimport-dn +++ b/rhimport-dn @@ -39,10 +39,8 @@ my $DBPW = "lldriven"; my $DB = "rivendell"; -my $luser = `/usr/bin/id -un`; -$luser =~ s/\n//; -($luser eq "equinox") or die "You are not allowed to use this script\n"; -my $user = "autoimport"; +my $user = `/usr/bin/id -un`; +$user =~ s/\n//; my $group = "democracyn"; my $dbh = DBI->connect("DBI:mysql:$DB:$DBHOST","$DBUSER","$DBPW") or die "Database Error: $DBI::errstr"; -- cgit v0.10.2