I'm trying to populate config.pl
with the following.
$Conf{CgiAdminUsers} =
'';
{
my @ldapresults =
`ldapsearch -x -P2 -b ou=SOMEGROUP,ou=SOMEDIVISION group='BackupPCAdmin'
objectclass=webuser`;
die
"ldapsearch failed: $!" unless $0 ==
0;
my $ldapgroup = join (' ',
grep { defined $_ } map{ m/username=([^,]+)/; $1 }
@ldapresults);
$Conf{CgiAdminUsers} = $ldapgroup;
}
Basically its a way of
determining administration users via LDAP but it fails with the following
error.
Error: Unable to read config.pl or language strings!!
Is
there a way to make this work or is there some other facility to
use?
-Dex