If you are seeing this in your browser, PHP is not installed on your web server!!! *******************************************/ require './common.php'; if( ! file_exists(realpath( 'config.php' )) ) { ?> phpLDAPadmin - <?php echo pla_version(); ?>

Configure phpLDAPadmin



\n"; ?> phpLDAPadmin - <?php echo pla_version(); ?> phpLDAPadmin Config File Error

Config file error

Syntax error on line

Looks like your config file has a syntax error on line . Here is a snippet around that line

"; if( $i < 0 ) continue; echo "" . ($i+1) . ": " . htmlspecialchars($file[ $i ]) . "
"; if( $i+1 == $line_num ) echo "
"; } ?>
Hint: Sometimes these errors are caused by lines preceding the line reported. $server ) if( isset( $server['host'] ) ) $count++; if( $count == 0 ) { pla_error( "None of the " . count($servers) . " servers in your \$servers configuration is active in config.php. At least one of your servers must set the 'host' directive. Example:
\$servers['host'] = \"ldap.example.com\";
phpLDAPadmin cannot proceed util you correct this.", false ); return false; } // Check that 'base' is present on all serve entries foreach( $servers as $id => $server ) { if( isset( $server['host'] ) && isset( $server['name'] ) ) isset( $server['base'] ) or pla_error ( "Your configuration has an error. You omitted the 'base' directive on server number $id. Your server entry must have a 'base' directive even if it's empty ('')." ); } // Check each of the servers in the servers array foreach( $servers as $id => $server ) { if( isset( $server['host'] ) ) { // Make sure they specified an auth_type if( ! isset( $server['auth_type'] ) ) { pla_error( "Your configuration has an error. You omitted the 'auth_type' directive on server number $id 'auth_type' must be set, and it must be one of 'config', 'cookie', or 'session'.", false ); return false; } // Make sure they specified a correct auth_type if( ! in_array( $server['auth_type'], array( 'config', 'cookie', 'session' ) ) ) { global $lang; pla_error( sprintf( $lang['error_auth_type_config'], htmlspecialchars( $server['auth_type'] ) ) ); return false; } } } return true; } ?>