You can actually just use this bit of code and pass it a username and
password for authentication purposes. That should work. Of note, if you
are using a strictly Active Directory environment, you should use LDAP, not
WinNT. LDAP is a little faster.
Hope that works for ya.
Getobject("WinNT://mcardenas",strUser,strPass)
David Debreceni
Senior VB/ASP Developer
david_debreceni@r... <mailto:david_debreceni@r...>
xxx-xxx-xxxx x1086
-----Original Message-----
From: marc cardenas [mailto:marclena@h...]
Sent: Friday, July 26, 2002 12:34 PM
To: Security_asp
Subject: [security_asp] ADSI
I've got this piece of code to create a user through ASP
Dim Computer
Dim User
strUser=Request.Form("username")
strPassword=Request.Form("password")
Set Computer = Getobject("WinNT://mcardenas")
Set User = computer.create("User",strUser)
'User.fullname = strFullname
User.Description = strDesc
call User.SetPassword(strPassword)
User.setinfo
Set User = nothing
Set computer = nothing
and it works but now I want to create a login screen.
How can I check if the password match with the password for that user
Thanks