Carlos
8/1/2006 12:13:00 PM
Stuart Brand wrote:
> this is the full class and code to call it, it out puts fixnum then
> array
[...]
> ldap.search( :base => treebase, :filter => filter ) do |entry|
>
> if "#{entry["samaccountname"]}" == "#{name}" then
> return 1
> else
> return 0
> end
>
> end
What if you never enter that block, because ldap.search never found
anything?
Then the result of ldap.search will be returned, probably an empty array.
--