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); ?>



server_id,$attr); ?>
'; if (preg_match('/^[0-9]+\.[0-9]+/',$attrs[$attr][$j])) { printf('', htmlspecialchars($attrs[$attr][$j])); if ($oidtext = support_oid_to_text($attrs[$attr][$j])) if (isset($oidtext['ref'])) printf('',$oidtext['ref'],$oidtext['title']); else printf('',$oidtext['title']); else printf('',$attrs[$attr][$j]); } else { printf('',htmlspecialchars($attrs[$attr][$j])); } print ''; if (isset($oidtext['desc'])) printf('',$oidtext['desc']); } ?>
%s%s%s%s
%s