in reply to Can't get correct returns when querying Active Directory with Net::LDAP

Your bind() does succeed, I assume? Try searching with the sAMAccountName attribute instead of cn.

  • Comment on Re: Can't get correct returns when querying Active Directory with Net::LDAP

Replies are listed 'Best First'.
Re^2: Can't get correct returns when querying Active Directory with Net::LDAP
by Anonymous Monk on Mar 09, 2009 at 15:06 UTC

    Thanks for the reply.

    My bind does work. The problem is not that my search does not return the attributes that I am asking for, but rather, the search does not even find the ID I am looking for in the first place even though the ID definitely does exist in Active Directory.

    If any one has any insight into this, I would appreciate it. I think the problem has something to do with referals/references but I don't understand it.

    Thanks!