Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ASP & Active directory

Status
Not open for further replies.

jamiecottonuk

Technical User
Oct 29, 2007
12
GB
I want to have an ASP page which checks if a user is in a certain group in Active Directory (AD)

For example jbloggs is logged in and belongs to the group "project_allowed". When jbloggs goes to project.asp it will allow him access
However when jsmith is logged in and belongs to no groups and tries to access project.asp it will deny him access

I do the following and I get "DC=highwayx,DC=co,DC=uk"

<%@ Language=VBScript %>
<%
Option Explicit
Dim objADsPath,objDomain
%>
<html>
<head>
</head>
<body>
<%
Set objDomain = GetObject ("GC://RootDSE")
objADsPath = objDomain.Get("defaultNamingContext")
Set objDomain = Nothing
Response.Write objADsPath & "<BR>"
%>
</body>
</html>


But after that i am not sure what to do any one help??

Thanks in advance
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top