haveAuthInfo()) pla_error( $lang['not_enough_login_info'] ); // Fetch basic RootDSE attributes using the + and *. $r = @ldap_read( $ldapserver->connect(), '', 'objectClass=*', array( '+', '*' ) ); if( ! $r ) pla_error( $lang['could_not_fetch_server_info'], ldap_error( $ldapserver->connect() ), ldap_errno( $ldapserver->connect() ) ); $entry = @ldap_first_entry( $ldapserver->connect(), $r ); if( ! $entry ) pla_error( $lang['could_not_fetch_server_info'], ldap_error( $ldapserver->connect() ), ldap_errno( $ldapserver->connect() ) ); $attrs = @ldap_get_attributes( $ldapserver->connect(), $entry ); $count = @ldap_count_entries( $ldapserver->connect(), $r ); // After fetching the "basic" attributes from the RootDSE, try fetching the // more advanced ones (from ths list). Add them to the list of attrs to display // if they weren't already fetched. (this was added as a work-around for OpenLDAP // on RHEL 3. $r2 = @ldap_read( $ldapserver->connect(), '', 'objectClass=*', $root_dse_attributes ); if( $r2 ) { $entry2 = @ldap_first_entry( $ldapserver->connect(), $r ); $attrs2 = @ldap_get_attributes( $ldapserver->connect(), $entry ); for( $i=0; $i<$attrs2['count']; $i++ ) { $attr = $attrs2[$i]; if( ! isset( $attrs[ $attr ] ) ) { $attrs[ $attr ] = $attrs2[ $attr ]; $attrs[ 'count' ]++; $attrs[] = $attr; } } } unset( $attrs2, $entry, $entry2 ); include './header.php'; ?>

name ); ?>



"; if (support_oid_to_text($attrs[ $attr ][ $j ] )) echo ""; } ?>
".htmlspecialchars( $attrs[ $attr ][ $j ] )."".support_oid_to_text($attrs[ $attr ][ $j ] ). "