Robin, take a look at the get_value documentation about what is returned in a list context vs. a scalar context. Without seeing the code I assume you are returning this in scalar. Try:
print "$attribute: ",join("\n$attribute: ",$object->get_value($attribute)),"\n"; Don -----Original Message----- From: Robin Mordasiewicz [mailto:[EMAIL PROTECTED] Sent: Monday, January 07, 2008 6:38 AM To: perl-ldap@perl.org Subject: Line ending problem while search Active Directory I am connecting to Microsoft Active Directory using Net::ADP from a Linux box running perl-ldap Release: 0.34 I am trying to print an entry's attribute values, but when I print out an entry which has multiple values, I have a problem. However, when I use Net:LDAP:LDIF to dump the same entry there is no problem for example the result while printing the values of memberOf ends up being as the following <snip> memberOf: CN=SMTCORLinuxUser,OU=Groups,DC=domain,DC=comCN=SMTCORLinuxAdmin,OU=Grou ps,DC=domain,DC=com </snip> and while using Net::LDAP::LDIF to write the file then it ends up looking like <snip> memberOf: CN=SMTCORLinuxUser,OU=Groups,DC=domain,DC=com memberOf: CN=SMTCORLinuxAdmin,OU=Groups,DC=domain,DC=com </snip> I believe I am running into a CR+LF problem with Entry.pm After reviewing the problems reported http://osdir.com/ml/lang.perl.modules.ldap/2005-07/msg00026.html Any help or suggestions are appreciated.