I am attempting to take the tabled result from the below search:
| ldapsearch search="(mail=[EMAIL ADDRESS])" attrs="cn" | rename cn as group |table group
And then I want to then take that result and pass it to the below search:
| ldapsearch search="(memberOf=cn=$group$,OU=Special Group Objects,DC=[DC],DC=LOCAL)" attrs="mail" | table mail
We would like for this to be contained within one search if at all possible.
↧