Jump to content

Archived

This topic is now archived and is closed to further replies.

Smeagollum

error with ldap_get_values_len()

Recommended Posts

im trying to read mac addresses out of a novell edirectory dhcp server with php. the mac address is binary data so i cannot use the function ldap_get_entries().

when i use the function ldap_get_values_len() i get the following error:
Warning: ldap_get_values(): Cannot get the value(s) of attribute Decoding error in /var/ww...

here is my code:
[code]$ldap_result2=ldap_search($ldap,$base_dn,'objectClass=*',array('dnipmacaddress'));
$erster=ldap_first_entry($ldap,$ldap_result2 );
$mac=ldap_get_values($ldap,$next,'dnipmacaddress');[/code]

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.