_, so if I wanted to scroll to * dc=example,dc=com for server 3, the URL would be: * tree.php#3_dc%3Dexample%2Cdc%3Dcom */ require 'config.php'; require_once 'functions.php'; // no expire header stuff header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); header("Cache-Control: no-store, no-cache, must-revalidate"); header("Cache-Control: post-check=0, pre-check=0", false); header("Pragma: no-cache"); // The entire visible tree is stored in the session. session_start(); // do we not have a tree yet? Build a new one. if( ! session_is_registered( 'tree' ) ) { session_register( 'tree' ); $_SESSION['tree'] = build_initial_tree(); session_register( 'tree_icons' ); $_SESSION['tree_icons'] = build_initial_tree_icons(); } // grab the tree out of the session variable $tree = $_SESSION['tree']; $tree_icons = $_SESSION['tree_icons']; ?>

phpLDAPAdmin -

Request a new feature (see open requests)
Report a bug (see open bugs)

$server_tree ) { if( $servers[$server_id]['host'] != '' ) { $server_name = $servers[$server_id]['name']; echo ''; echo ''; echo ''; $rdn = utf8_decode( $dn ); if( null == $servers[ $server_id ]['base'] ) { $base_dn = try_to_get_root_dn( $server_id ); } else { $base_dn = $servers[ $server_id ]['base']; } // Did we get a base_dn for this server somehow? if( $base_dn ) { // is the root of the tree expanded already? if( isset( $tree[$server_id][$base_dn] ) ) { $expand_href = "collapse.php?server_id=$server_id&" . "dn=" . rawurlencode( $base_dn ); $expand_img = "images/minus.png"; } else { $expand_href = "expand.php?server_id=$server_id&" . "dn=" . rawurlencode( $base_dn ); $expand_img = "images/plus.png"; } $edit_href = "edit.php?server_id=$server_id&dn=" . rawurlencode( $base_dn ); $icon = get_icon( $server_id, $base_dn ); echo "\n"; echo ""; echo "\n"; echo "\n"; echo "\n"; } else { if( "" === $base_dn || null === $base_dn ) { // The server refuses to give out the base dn echo ""; // Proceed to the next server. We cannot draw anything else for this server. continue; } else { // For some unknown reason, we couldn't determine the base dn echo ""; // Proceed to the next server. We cannot draw anything else for this server. continue; } } flush(); // Is the root of the tree expanded already? if( isset( $tree[$server_id][$base_dn] ) ) { foreach( $tree[ $server_id ][ $base_dn ] as $child_dn ) draw_tree_html( $child_dn, $server_id, 1 ); echo ''; echo ''; echo ''; echo ''; } } else // have_auth_info() returned false. { // We don't have enough information to login to this server $login_href = "login_form.php?server_id=$server_id"; echo '   '; echo 'login '; echo 'login...'; echo ''; } } } ?>
server' . htmlspecialchars( $server_name ) . '
'; // do we have what it takes to authenticate here, or do we need to // present the user with a login link (for 'form' auth_types)? if( have_auth_info( $server_id ) ) { $schema_href = 'schema.php?server_id=' . $server_id . '" target="right_frame'; $search_href= 'search.php?server_id=' . $server_id . '" target="right_frame'; $refresh_href = 'refresh.php?server_id=' . $server_id; $create_href = 'create_form.php?server_id=' . $server_id . '&container=' . rawurlencode( $servers[$server_id]['base'] ); $logout_href = 'logout.php?server_id=' . $server_id; $info_href = 'server_info.php?server_id=' . $server_id; if( $servers[$server_id]['auth_type'] == 'form' && have_auth_info( $server_id ) ) echo "Logged in as: " . htmlspecialchars(get_logged_in_dn($server_id)) . "
"; // Draw the quick-links below the server name: // ( schema | search | refresh | create ) echo '('; echo 'schema | '; echo 'search | '; echo 'refresh | '; echo 'create | '; echo 'info'; if( $servers[ $server_id ][ 'auth_type' ] == 'form' ) echo ' | logout'; echo ')
$base_dn
Could not determine "; echo "the root of your LDAP tree.
It appears that the LDAP server has "; echo "been configured to not give it out. Please specify it in config.php"; echo "
Could not determine "; echo "the root of your LDAP tree.
Please specify it in config.php"; echo "
Create New
'; for( $i=0; $i<=$level; $i++ ) { echo ''; } // is this node expanded? if( isset( $tree[$server_id][$dn] ) ) { ?> plus (' . count( $tree[$server_id][$dn] ) . ')'; ?> minus '; for( $i=0; $i<=$level; $i++ ) { echo ''; } echo ''; echo ''; echo 'Create New'; } echo ''; } ?>