Click here to Skip to main content
15,891,204 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
I have url like https://some.world.com/xyz/state.asmx

I am new to LDAP authentication Please help me to figure out the LDAP path.
or using exchange url how can i authenticate user.What are all we need to authenticate.
Please help..
Posted
Updated 18-Dec-13 3:17am
v2

Please try searching for yourself or use Google.

I found this in seconds Simple Active Directory Authentication Using LDAP and ASP.NET[^]
 
Share this answer
 
Comments
s#@!k 18-Dec-13 9:43am    
yes, I got but m getting "The server is not operational" Exception.
CHill60 18-Dec-13 12:01pm    
We can't help you very well if you miss out fundamental information from your post! If you have already tried something that doesn't work then post details of what you have tried and exactly what problems you have
s#@!k 23-Dec-13 8:25am    
Thanks for your quick response.I tried below solution and able to authenticate user.Please check the code snippet and welcome with your concerns..
using Microsoft.Exchange.WebServices.Data;
public static bool ValidateUser(string userName, string password)
{
  bool _ExchangeConnected = false;
  try
  {
   String domain = "xy";
   String exchangeURL = "url";
   String email = "aaaa.abc@mail.com";
   userName = String.Format("{0}\\{1}", domain, userName);
   ExchangeService exchangeService = new ExchangeService(ExchangeVersion.Exchange2010_SP1);
   exchangeService.Credentials = new WebCredentials(userName, password);
   exchangeService.Url = new Uri(exchangeURL);
   exchangeService.KeepAlive = true;
   Mailbox mailbox = new Mailbox(email);
   FolderId folder = new FolderId(WellKnownFolderName.Inbox, mailbox);
   ItemView view = new ItemView(1);
   FindItemsResults<Item> items = exchangeService.FindItems(folder, view);
   _ExchangeConnected = true;
  }
  catch (Exception ex)
  {
   Logger.CreateLog.LogInfo(ex);
   _ExchangeConnected = false;
  }
  return _ExchangeConnected;
 }
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900