nshastings,
My pleasure! And don't worry, you can save your thanks till it is completely working for you.
My first step would be to verify basic network connectivity and DNS. To do that I would first try pinging the IP address of the Windows domain controller, and secondly execute:
nslookup <hostname>
And see if it resolves correctly. If it doesn't, you may want to check the network settings in /etc/resolv.conf for DNS, and /etc/rc.conf for IP address, network mask, etc. If you post the contents of those files, I'll be glad to take a look.
If the network connectivity is OK, the next thing I would test is LDAP connectivity.
From the filter, try querying the domain controller with:
ldapsearch -h <hostname> -b "" -s base
You should receive a pretty long list of stuff ending with:
...
domainControllerFunctionality: 2
# search result
search: 2
result: 0 Success
# numEntries: 1
If that query works, I would try one very similar to the one used by the Exchange and auth integration (watch out for line breaks in the forum version; there shouldn't be any in the command):
ldapsearch -h <hostname> -D "administrator@mydomain.dom" -W -s sub -b "DC=mydomain,DC=dom" '(&(|(objectclass=user)(objectclass=contact)(objectclass=group))(proxyAddresses=smtp:*))'
Notice that here I am trying to bind as administrator (-D <id>). Information regarding all your users should be displayed. If you'd like to cut down the output slightly use:
ldapsearch -h <hostname> -D "administrator@mydomain.dom" -W -s sub -LLL -b "DC=mydomain,DC=dom" '(&(|(objectclass=user)(objectclass=contact)(objectclass=group))(proxyAddresses=smtp:*))' dn
Once that query is executing successfully, you should try it as a less privileged user and check that it still works as well.
Please tell me how this goes for you, or if there is any additional information I can provide. I’m pleased to help.