I'm trying to get information about certain machines at remote locations and would like to get the information about the DHCP leases stored in the DNSDHCP OU and compare the data to what is in our database. I'm using Net::LDAP to get the information rather than a ldapsearch although I have tested the querying the objects in the DNSDHCP OU's with ldapsearch. I noticed that the values in the dNIPMACAddress attribute under the dNIPIPAddressConfiguration ObjectClass appear to be encoded via base64 when I run the ldapsearch. If I essentially do the same query with Net::LDAP the values are garbled. Such as

dNIPMACAddress: N

My assumption is that value is not getting decoded properly. Does anyone know how to fix this?