By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,183 Members | 1,212 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,183 IT Pros & Developers. It's quick & easy.

LDAP Query - Not working *sometimes*

P: 3
Hi all, I have been knocking my head against this one for a few days -- haven't been able to find a solution to this anywhere so hopefully someone can help.

Situation: A really simple LDAP that searches for a users AD account - it works for some users, not for others. More bizarrely, for some people it seems to work occassionally.

Setup: This is an internal intranet. ASP pages are served from IIS 6 on a WIN 2003 Server box. Annon Access is OFF, Integrated and Basic directory security is ON. Active Directory is on another Win Server 2003 domain controller. The IIS box is 'trusted for delegation'.

In active directory we have all our employees set up with employee numbers. All I am doing is searching for the user with their WINNT login full name. (ie, from adsUser.get("FullName")). Before you ask - I have checked that the FullName returns exactly the same thing as appears as the AD users display name.

So, the query goes as follows:

<LDAP://ou=Support Centre Users,dc=mydomaincontroller,dc=co,dc=nz>;((&(objec tCategory=person)(objectClass=user)(cn=Some Users Name));cn,employeeNumber;subtree

Now - here's the wierdness - if [b]I[b] go to the page with this query I get a 'Table does not exist' error. If someone else in my same OU (with the same group policy, permissions, etc) goes there it works fine and returns their cn and employee number. Certain other users get an error, the rest it works find every time.

Now SOMETIMES when I go to the page it works, but mostly it doesn't. There were no modifications made to the script or to AD in that time.

Anyway have any ideas where to look?
Mar 20 '07 #1
Share this Question
Share on Google+
2 Replies


P: 3
Some additional info - it doesn't seem to be the query itself that isn't going - if I manually write out the query to find a different user (a query that I KNOW works) it still won't go from particular users.

It sounds like a permissions problem - but I cannot see where the problem is - why users in the same OU and same policy & permissions get different results.
Mar 21 '07 #2

P: 1
Hi !

did you find a solution to this problem ?


i have the same situation (IIS 6 on a 2003 server) and my ldap query don't always return a result

more strangly, if i refresh the page some minutes later, the query work well ;p

i found this post in archives, wich looks like to be in link, but for Win NT4 :

http://www.thescripts.com/forum/thre...6154-1-10.html

in the Microsoft KB i found this (also for NT4) :

http://support.microsoft.com/kb/230101/en-us


in my case, the website was working well on a 2000 server, the problem appeared when we made the migration on win 2003


thanks for any help :)

Guillaume
Apr 6 '07 #3

Post your reply

Sign in to post your reply or Sign up for a free account.