|
Hi, I know that there are some Perl guru’s on this list,
one of who’s name starts with a ‘j’ and ends in ‘oe’…
so I thought I’d ask a tricky question. I’m writing a Perl script to monitor my replication
topology. One of the things I need to accomplish is to read the attribute mS-DS-ReplicatesNCReason from a
connection object. This turns out to be surprisingly hard… in Perl, that
is. Browsing technet gives the following trivial piece of VBS script that works
just fine: For Each objDNWithBin In objConnection.GetEx("ms-DS-ReplicatesNCReason") Wscript.Echo
objDNWithBin.DNString Next However, a similar syntax in Perl fails miserably: $o_co->GetEx("mS-DS-ReplicatesNCReason") It returns an object of type “DN Binary”, and I
cannot find a way to tell Perl how to deal with it. Robbie Allen in his
excellent cookbook has a recipe involving the IadsTools dll. Is there no way
around it? Is Perl really inferior to VBS in this respect? Surely not … Thanks, |
- RE: [ActiveDir] read mS-DS-ReplicatesNCReason with Perl? Willem Kasdorp
- RE: [ActiveDir] read mS-DS-ReplicatesNCReason with Per... Ken Cornetet
- RE: [ActiveDir] read mS-DS-ReplicatesNCReason with... Willem Kasdorp
