Smeagollum Posted August 29, 2006 Share Posted August 29, 2006 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] Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.