$msg = $ldap->search( base => "o=amr", scope => "subtree", filter => "(&(objectClass=person)(isSupervisor=Y))", attrs => [ "cn", "uid" ]);
You don't need to specify scope => "subtree", to get subtree scoped searching. Subtree is the default. And even if you do specify it, the options are "base", "one", or "sub"; not "subtree".
That is one reason why your script does not work.
Not true. Both "sub" and "subtree" are supported and mean the same.
Graham.
