Web Analytics Made Easy -
StatCounter ASP can get the User Information from Active Directory (AD) ? - CodingForum

Announcement

Collapse
No announcement yet.

ASP can get the User Information from Active Directory (AD) ?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • ASP can get the User Information from Active Directory (AD) ?

    Dear all,

    I would like to know ASP can get the User Information from Active Directory (AD) or not. In the internet, I have found the following code to check the valid AD user, but, it is not the user information from AD.


    Dim oADsObject
    Set oADsObject = GetObject(strADsPath)
    Dim strADsNamespace
    Dim oADsNamespace
    strADsNamespace = left(strADsPath, instr(strADsPath, ":"))
    set oADsNamespace = GetObject(strADsNamespace)
    Set oADsObject = oADsNamespace.OpenDSObject(strADsPath, strUserName,strPassword, 0)
    if not (Err.number = 0) then
    Response.Write "Authentication has failed..."
    else
    Response.Write "USER authenticated!"
    end if


    I'd appreciate any help I can get.
Working...
X