Nothing complicated.
Nothing involved.
Now, the solution I have here is modified from my specific need.
Here's my solution.
function ldapLogin( user, pass )
{
try
{
var obj = GetObject( "LDAP:" );
obj.OpenDSObject( "LDAP://yourco.local/DC=YOURCO,DC=local",
user + "@yourco.local",
pass,
1 );
return true;
}
catch( e )
{
// if it is an error - then the password or user is wrong.
}
return false;
}
www.cetuscript.com