PC Review


Reply
Thread Tools Rate Thread

LDAP Authentication fails on Web Application

 
 
Anbu
Guest
Posts: n/a
 
      12th Apr 2006

Sorry for cross posting the query. But I need a resolution as early as
possible.

I have developed an application to authenticate the user based on LDAP
Search and authentication.

The Windows application that was developed using C# works fine. But it
fails when I convert this as a DLL or Web Service. I need to host the
application on a server to use the result across different applications
and on different clients.

The code looks likes this,

System.DirectoryServices.DirectoryEntry entry;
System.DirectoryServices.DirectorySearcher mySearcher;

bool success = false;
string message = "";

try
{
entry = new System.DirectoryServices.DirectoryEntry(ldap_host,
application_user, application_password,
System.DirectoryServices.AuthenticationTypes.SecureSocketsLayer);
}

catch (Exception ex)
{
// Throws "The server is not operational error"
// Also the entry.AdsObject returns as
<error: an exception of type:
{System.Runtime.InteropServices.COMException} occurred>
}


But the server is in operations, and the code works fine with the
Desktop /Windows application.

Is there any problem with the ASPNET account? or should i really need
to do anything to make it work.

TIA

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
LDAP Authentication fails on Web Application Anbu Microsoft ASP .NET 2 12th Apr 2006 10:36 PM
Active Directory LDAP Authentication Fails in IIS 6 P Webster Microsoft ASP .NET 2 25th Mar 2006 03:48 PM
LDAP authentication fails with the final release version of ASP.Ne =?Utf-8?B?cmFqZW5zMDA=?= Microsoft ASP .NET 1 8th Nov 2005 07:40 AM
Does Outlook support LDAP and IMAP, and why is there only one of many LDAP questions even answered here??? Mike Matheny Microsoft Outlook Discussion 5 27th Aug 2004 08:57 PM
Moving From Novell LDAP (NLDAP) To Active Directory LDAP =?Utf-8?B?U3RlcGhlbiBNb29yZQ==?= Microsoft Windows 2000 Active Directory 1 27th Apr 2004 12:44 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:56 PM.