473,386 Members | 1,712 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

LDAP Query - Not working *sometimes*

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
2 2646
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
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

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

Similar topics

0
by: Tim | last post by:
Hello, I'm trying very (too) hard to log uses LDAP (via ADSI) to autheniticate users in an A2k2 application. We have AD and I have that working slick. We are in a tranistion from NDS to AD and...
0
by: Tim | last post by:
Hello, I'm trying very (too) hard to log uses LDAP (via ADSI) to autheniticate users in an A2k2 application. We have AD and I have that working slick. We are in a tranistion from NDS to AD and...
1
by: Andrew | last post by:
Hey all, Working on revamping our Intranet here and making use of the LDPA, Active Directory, Directory Services, etc. that .Net provides. I am still fairly new on this subject, so the problem...
3
by: Chad Beckner | last post by:
I am starting to translate some code from ASP to ASP.NET (VB). I was able to query ADS to get a users groups that they belong to, and also query a group and get a list of users. However, I can't...
5
by: Bryan | last post by:
Hello, I have a asp.net app working with directory services on my Windows XP development machine. However when I moved the application over to our production server (Win 2000 Server) it no longer...
0
by: Gerry Sinkiewicz | last post by:
Looking for a bit of software that will accept an LDAP query via port 389 and convert it to an SQL query and return the results to the originating LDAP client. Basically a dialect converter LDAP...
3
by: RJN | last post by:
Hi I've written a code that queries Windows LDAP server and works fine, but the same doesn't work when querying Solaris LDAP server. DirectoryEntry de = new...
7
by: MrHelpMe | last post by:
Sorry everyone, NOTE: I have posted this question to another site but unfortunately, am not getting the answers I need only because those helping haven't worked with ASP. I am in desperate...
5
by: wak0 | last post by:
Hi, I hope you guys can help me. I need to build a form that request username and password on ASP not ASP.net (sorry to clarify but i got some responses in other forums in .net) This form will...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.