Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re^8: Net::LDAP help with distinguished nameby Discreet Entity (Initiate) |
on Feb 04, 2012 at 23:27 UTC ( [id://951877]=note: print w/replies, xml ) | Need Help?? |
Resolved! There were two issues. First, I had to use distinguishedname= rather than dn=a. Apparently Active Directory is picky about the filter though oddly you can use dn when specifying get_value. Secondly, the sample distinguishednames I tested had parens in them which must be escaped. Net::LDAP doesn't handle that for you. I added this bit:
and called it before I constructed the filter. Worked just fine. Thank you very much for the feedback. It helped lead me to the solution. :) And nuts to those that think minimalist responses and snide comments are in any way helpful to the people who come here. If you don't have anything helpful to contribute then don't post. And for the record, posting greps to the doc that I already specified I'd read and that didn't have any relevant examples is just effing arrogant and lazy.
In Section
Seekers of Perl Wisdom
|
|