Thanks. Using the pop-entry line does in fact return all the DN's from the
input file. Unfortunately, once I try to print the next two lines and insert
more code to iteratively lookup and print a dn, everything breaks. The goal is
to print to a file in the following order:
search dn result
Getting closer. I've started over using new code from the examples. Without the
second while or LDAPsearchmgr code, we get the desired results using while
() etc...:
dn: cn=me,dc=corp
changetype: modify
replace: manager
Unfortunately, attempts to insert a second while with LDAPsea
On 7 Jul 2010, at 22:47, rfran...@comcast.net wrote:
> my $HOST = "1";
> my $ADMIN = "cn=me,DC=corp";
> my $PWD = "0";
> my $BASEDN = "DC=corp";
>
> my $ldap = Net::LDAP->new("$HOST", port=>389) or die "$@";
> my $dn = $ldap->bind("$ADMIN", password=>"$PWD");
> my $mgrdn = $ldap->bind("$AD