473,385 Members | 1,798 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,385 software developers and data experts.

LDAP Active Directory Bind Stops Working

I appear to be having a problem similar to Neil as posted at
http://msdn.microsoft.com/newsgroups...xp=&sloc=en-us

I thought my problem was solved when I changed the bind statement to use a
specific username/password like:
DirectoryEntry entry = new DirectoryEntry(_path,"test\\testAuth","test");

And it did work without any reported problems for over 3 weeks. Then I
received the "Failed to Bind" error message and each of the 4 asp.net apps
using active directory binding code (all use separate but exact copies of the
LDAP code) failed with this error. A restart of the box fixed the problem
(restarting IIS did not). Does anyone have any ideas? I have been unable to
find detailed info about caching/reconnecting to AD/mulitple apps connecting
to AD (are connections cached with security contexts), etc? And help would
be greatly appreciated!

--
Marshall
Nov 18 '05 #1
3 2468
I meant 'Any help would be appreciated', not 'And..'. Sorry.

Also, if it helps, I'm on W2k Server with IIS 5 running .net 1.1. I have
not been able to recreate the problem either.

"Marshall" wrote:
I appear to be having a problem similar to Neil as posted at :
http://msdn.microsoft.com/newsgroups...xp=&sloc=en-us

I thought my problem was solved when I changed the bind statement to use a
specific username/password like:
DirectoryEntry entry = new DirectoryEntry(_path,"test\\testAuth","test");

And it did work without any reported problems for over 3 weeks. Then I
received the "Failed to Bind" error message and each of the 4 asp.net apps
using active directory binding code (all use separate but exact copies of the
LDAP code) failed with this error. A restart of the box fixed the problem
(restarting IIS did not). Does anyone have any ideas? I have been unable to
find detailed info about caching/reconnecting to AD/mulitple apps connecting
to AD (are connections cached with security contexts), etc? And help would
be greatly appreciated!

--
Marshall

Nov 18 '05 #2
Marshall,
I'm probably not much help, considering I was trying to help Neil in the
link you provided. Have you looked through your event logs? Are there any
event that denote failed or slow connections? Did any Administrators change
any of the authentication schemes/updated group policy? Can you log in with
the specified account, fire up dsa.msc, do you have permissions to view the
objects you are trying to bind to? Can up download/run gpresults? Do any of
the settings look like they could conflict with access (secure channel,
etc.). Can you answer the same questions that I gave in Neil's post?
The more info you post the better your chances of an answer.
Jared

"Marshall" <Ma******@discussions.microsoft.com> wrote in message
news:74**********************************@microsof t.com...
I meant 'Any help would be appreciated', not 'And..'. Sorry.

Also, if it helps, I'm on W2k Server with IIS 5 running .net 1.1. I have
not been able to recreate the problem either.

"Marshall" wrote:
I appear to be having a problem similar to Neil as posted at :
http://msdn.microsoft.com/newsgroups...xp=&sloc=en-us

I thought my problem was solved when I changed the bind statement to use
a
specific username/password like:
DirectoryEntry entry = new DirectoryEntry(_path,"test\\testAuth","test");

And it did work without any reported problems for over 3 weeks. Then I
received the "Failed to Bind" error message and each of the 4 asp.net
apps
using active directory binding code (all use separate but exact copies of
the
LDAP code) failed with this error. A restart of the box fixed the
problem
(restarting IIS did not). Does anyone have any ideas? I have been
unable to
find detailed info about caching/reconnecting to AD/mulitple apps
connecting
to AD (are connections cached with security contexts), etc? And help
would
be greatly appreciated!

--
Marshall

Nov 18 '05 #3
Thanks Jared- to answer some of your questions:
-event logs show identical log entries (in the security log) for successful
as well as failed page requests
-no AD changes were made
-the account specified in the bind statement does have access to the objects
(code ran on a different box successfully, and was working on the production
box until something happened)

I am currently working with someone at MS to see if they can give any more
insight. What we are looking at now is how/whether the impersonation context
affects the bind to AD (is a process/thread security context stored with the
AD bind operation; is anything cached that could cause an access denied by
less privelaged impersonation accounts). I'll be sure and update if
something comes up.

"Jared" wrote:
Marshall,
I'm probably not much help, considering I was trying to help Neil in the
link you provided. Have you looked through your event logs? Are there any
event that denote failed or slow connections? Did any Administrators change
any of the authentication schemes/updated group policy? Can you log in with
the specified account, fire up dsa.msc, do you have permissions to view the
objects you are trying to bind to? Can up download/run gpresults? Do any of
the settings look like they could conflict with access (secure channel,
etc.). Can you answer the same questions that I gave in Neil's post?
The more info you post the better your chances of an answer.
Jared

"Marshall" <Ma******@discussions.microsoft.com> wrote in message
news:74**********************************@microsof t.com...
I meant 'Any help would be appreciated', not 'And..'. Sorry.

Also, if it helps, I'm on W2k Server with IIS 5 running .net 1.1. I have
not been able to recreate the problem either.

"Marshall" wrote:
I appear to be having a problem similar to Neil as posted at :
http://msdn.microsoft.com/newsgroups...xp=&sloc=en-us

I thought my problem was solved when I changed the bind statement to use
a
specific username/password like:
DirectoryEntry entry = new DirectoryEntry(_path,"test\\testAuth","test");

And it did work without any reported problems for over 3 weeks. Then I
received the "Failed to Bind" error message and each of the 4 asp.net
apps
using active directory binding code (all use separate but exact copies of
the
LDAP code) failed with this error. A restart of the box fixed the
problem
(restarting IIS did not). Does anyone have any ideas? I have been
unable to
find detailed info about caching/reconnecting to AD/mulitple apps
connecting
to AD (are connections cached with security contexts), etc? And help
would
be greatly appreciated!

--
Marshall


Nov 18 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Victor Lokhmatov | last post by:
Hello Everyone, My company has asked me to put a company directory on our intranet site and I'm trying to use php to extract the users from our active directory server. I've got everything...
3
by: Dirk Hagemann | last post by:
Hi! I asked here a few weeks ago the same question but the answer of Tim Golden didn't really help yet. I'd like to know how to set up a query for all computer-accounts in a special part of...
7
by: Amar | last post by:
I am trying to connect to my college LDAP directory using ASP.NET. This LDap does not have security as it returns only user demographic information. i do not need to bind with a username or...
3
by: mrwoopey | last post by:
Hi, I am using the example "Authenticate against the Active Directory by Using Forms Authentication and Visual Basic .NET": http://support.microsoft.com/default.aspx?scid=KB;EN-US;326340 ...
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...
7
by: Sync Walantaji | last post by:
Hi, I would like to write a asp.net winform program to authenticate users on Active Directory. Can I do this with asp.net if the IIS server is not part of the Active directory domain? Is...
2
by: Neil via .NET 247 | last post by:
I have some code vb.net winforms, that works fine most of the time but stops working occasionally such as right now. The code is this Dim objDE As New DirectoryEntry("LDAP://" & DomainName) Dim...
2
by: P Webster | last post by:
We recently moved a web site that validated user credentials in Active Directory from IIS 5.1 to IIS 6, and the validation code no longer works. The web.config file is set to Windows authentication...
1
by: Erick Perez - Quadrian Enterprises, S.A. | last post by:
Hi, I have a MS Windows AD domain, and have one OU with more tan 1000 users objects. When I try to read it, I hit the 1000 limit of AD while returning objects, so I'm asking for advice as to how...
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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,...

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.