I am trying to convert an asp page running on IIS over to a php page running on apache. The asp page uses the code below to validate a windows login. Is there a way to validate a windows login with php?
If Request.ServerVariables("LOGON_USER") = "" Then
Response.Status = "401 Access Denied"
Response.End
End If
DIM i
i = Request.ServerVariables("LOGON_USER")
if i="domainname\username" then......
Thanks,
Jana