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


Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

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