Make fetching of users from LDAP or MySQL faster, by only reading DB entries

that we actually need.
This commit is contained in:
Jamie Cameron
2010-09-20 15:07:42 -07:00
parent ba7b3a8da6
commit cb5cbcd970
5 changed files with 75 additions and 59 deletions

View File

@@ -8,12 +8,6 @@ $access{'pass'} || &error($text{'sql_ecannot'});
&error_setup($text{'sql_err'});
$p = $in{'proto'};
if ($in{'schema'}) {
# Redirect to schema download page
&redirect("schema.cgi");
return;
}
# Parse inputs
if ($p eq 'mysql' || $p eq 'postgresql' || $p eq 'ldap') {
gethostbyname($in{$p."_host"}) ||