On 6/5/06 5:39, Erich Weiler <[EMAIL PROTECTED]> wrote:
> What I CAN'T seem to do is replace 'cn=staff' with a variable, like
> 'cn=$ARGV[0]'. When I do that the search doesn't work. Maybe it's
> actually searching for the string '$ARGV[0]' instead of actually
> inserting the value of the variable there? Can anyone help me figure
> this out?
This is basic perl :-) Just write the filter value in double-quotes to get
any variables included in the value ("interpolated", in perl lingo):
filter => "cn=$ARGV[0]"
Cheers,
Chris