Accessing ActiveDirectory through LDAP with .NET

From: Tim Mavers (webview_at_hotmail.com)
Date: 12/22/04


Date: Tue, 21 Dec 2004 17:16:52 -0600

I am trying to determine the best way I can authenticate against an
ActiveDirectory using LDAP with .NET. I need to use LDAP because I need to
authenticate across the Internet.

Right now I have code that authenticates (e.g. I pass username/password to
it) via NTLM but the problem is I am accessing this via a domain user
account that has access to the domain controller (e.g. it's the account that
IIS is running under).

Obviously this doesn't work over the Internet and the only temporary
solution is for my client to set up a VPN and have a trust relationship,
which is really not something they want to do.

I read somewhere (brief blurb) that I could access this information via
LDAP.

Essentially I am building sort of a single-sign on application where the
user enters their name/password in my app and it is authenticated against an
ActiveDirectory instance.

Any ideas on how I can do this in a secure manner over the Internet without
the need for a VPN?

Thanks,



Relevant Pages

  • Re: ipfw plus authentication (authpf is cool but....)
    ... their ipaddress, mac address, workstation os, etc. in our ldap directory. ... gain network access is indeed belongs to that user. ... router first before being allowed to access any server. ... user will authenticate to a web based login form which is tied up ...
    (freebsd-questions)
  • Re: Trouble Authenticating users from trusted domains
    ... For the internal referrals, ... We have a new ERP system that can either authenticate with it's own user ... If you specify an LDAP server, ... >> login as a user from the child domain, ...
    (microsoft.public.win2000.active_directory)
  • RE: Cant authenticate to LDAP domain with Redhat9
    ... it is more used by the authconfig ... sure you can reach your ldap server with ldapsearch, ... Cant authenticate to LDAP domain with Redhat9 ...
    (RedHat)
  • Re: Anonymous LDAP Access Problem
    ... Check the ADSI ... I need to authenticate using LDAP and I still am having some problems. ... which works when that is a domain account, but does not when that account ...
    (microsoft.public.windows.server.active_directory)
  • Re: Accessing ActiveDirectory through LDAP with .NET
    ... ActiveDirectory using LDAP via LDAP's credentials vs using Microsoft's ... authenticate against it, I would need to include some sort of credentials ...
    (microsoft.public.dotnet.framework)