Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

33 lines (28 sloc) 0.637 kb
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Net;
using System.DirectoryServices;
namespace adauthftw
{
public class adauthftwClass
{
public bool Authenticate(string path, string user, string pass)
{
try
{
var ad = new DirectoryEntry(path, user, pass);
if (ad.Properties.Count > 0) return true;
}
catch (Exception ex)
{
return false;
}
return false;
}
public adauthftwClass()
{
}
}
}
Jump to Line
Something went wrong with that request. Please try again.