connect(), $results );
// Iterate over each entry
$i = 0;
while( $entry_id ) {
$i++;
if( $i <= $start_entry ) {
$entry_id = ldap_next_entry( $ldapserver->connect(), $entry_id );
continue;
}
if( $i >= $end_entry )
break;
$dn = ldap_get_dn( $ldapserver->connect(), $entry_id );
$encoded_dn = rawurlencode( $dn );
$rdn = get_rdn( $dn ); ?>
connect(), $entry_id );
$attr = ldap_first_attribute( $ldapserver->connect(), $entry_id, $attrs );
// Always print out the DN in the attribute list
echo "dn | ";
echo "" . htmlspecialchars($dn) . " |
\n";
// Iterate over each attribute for this entry
while( $attr ) {
if( is_attr_binary( $ldapserver, $attr ) )
$values = array( "(binary)" );
else
$values = ldap_get_values( $ldapserver->connect(), $entry_id, $attr );
if( isset( $values['count'] ) )
unset( $values['count'] );
if( isset( $friendly_attrs[ strtolower( $attr ) ] ) )
$attr = "".htmlspecialchars( $friendly_attrs[ strtolower($attr) ] ) .
"";
else
$attr = htmlspecialchars( $attr ); ?>
|
\n"; ?>
|
connect(), $entry_id, $attrs );
} // end while( $attr ) ?>
connect(), $entry_id );
// flush every 5th entry (speeds things up a bit)
if( 0 == $i % 5 )
flush();
} // end while( $entry_id )
?>