Ok so I have been struggling with this plugin that binds to LDAP, and this is what I have figured out so far:
there are a two strings I can modify and send to the plugins .Search() method, one of them is the baseDN and the other is the filter.
So far the baseDN value that works properly looks like this: "DC=something,DC=something" and the value for filter looks like this: "objectClass=*".
This is all well and good and returns me back a tree of various items that look like this:
>DC=something,DC=something
-DC=admin
-CN=Builtin
-CN=Computers...
etc, and more things I don't understand, I am not sure exactly what I am seeing here but I am trying to look up a user and get his attributes.
What would I change the baseDN to or the filter to do this?
I tried this for the baseDN: "uid=username@domain.com" and it gave me an error, I also tried it like this "uid=username@domain.com,DC=something,DC=something" and it also gave me an error.
I think I am really confused though because I am able to browse through these tree of things but none of it looks like actual values they more look like definitions if you know what I mean, is there another layer of searching that must be done to get back user attributes?