Line ending problem while search Active Directory

2008-01-07 Thread Robin Mordasiewicz
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

RE: Line ending problem while search Active Directory

2008-01-07 Thread Don C. Miller
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---

RE: Line ending problem while search Active Directory

2008-01-07 Thread Robin Mordasiewicz
On Mon, 7 Jan 2008, Don C. Miller wrote: > 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_va

Net::LDAP::LDIF usage

2008-01-07 Thread Julien Garet
Hi, We are currently using Net::LDAP::LDIF module to transfer infos from an openldap server to an AD ldap server. We are importing the ldif using a Windows command called ldifde. Our problem is that ldifde needs some formatting characters between each modification using changetype: mo