Jump to content

Recommended Posts

Posted

Greetings,

I have a bit of a problem. I built a web app to pull our office phone list from Active Directory. Unfortunately, in order to make it work, I had to embed a Domain Admin username and password on the page as part of the query. Obviously, this did not go over too well. So, I am trying to change the page to get the username and password out of the code. So far, it's worked... sort of. Here's my problem:

I can get the distinguishedName of the Domain which returns something like DC=Division,DC=Region,DC=Company,DC=net... so far, so good. When I run the query with a "subTree" scope, I get back everyone in the division. That's too much information for this app. When I narrow it down to a specific OU, however, I get a "table not found" error. I have checked the path to the OU I am trying to pull from and it is correct. In fact, if I put in a specific CN, it works to pull the information for one person. In other words, CN=Me,OU=Users,OU=Office,OU=District,DC=Division,DC=Region,DC=Company,DC=net works with no errors; OU=Users,OU=Office,OU=District,DC=Division,DC=Region,DC=Company,DC=net returns the "Table not found" error.

Can anyone point me at a solution or at least a good resource for fixing this problem?

Thanks in Advance

--Dave


Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...