[BackupPC-users] Backup PC Ldap groups.
2008-04-18 12:57:26
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
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone _______________________________________________
BackupPC-users mailing list
BackupPC-users AT lists.sourceforge DOT net
List: https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki: http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/
|
<Prev in Thread] |
Current Thread |
[Next in Thread>
|
- [BackupPC-users] Backup PC Ldap groups.,
D P <=
|
|
|