LiveLDAPLookup using substrings
I have LiveLDAPLookup working but have 2 more "advanced questions:
1. The value of the VARIABLE ($file-owner$) I want to use in the lookup is prepended with several characters (the domain name) e.g. "ABC\JohnDoe". In AD, all I have is JohnDoe. Is there a way to strip the "ABC\" from the value of the $file-owner$ variable so I find a match in AD?
2. One of the attributes I gwt back from AD is a DN. I want to store the DN in a temporary variable, and use it for a subsequent AD lookup. DN is not an attribute in AD for me to match. (If I can solve question 1 above - I could grab the CN from the DN and do a match on CN.)
Thanks for any help/advice... THANKS!