Hi there,
I've developed an Intranet which allows users to access their documents over https:// connections, and i've got the following code, which checks their AD group membership and sets a base directory to connect to their home folder. I want to be a little cleverer though, and not check group membership, but check their 'Department' information on the 'Organisation' tab of the AD user properties.
Can anyone help?
Thanks very much/...
Code:
<%
set strUserData = Server.CreateObject("ADSystemInfo")
set strUserInfo = getObject ("LDAP://" & strUserData.Username)
For Each Group in strUserInfo.Groups
If Group.cn = "AYL Administrators" Then
strBaseDir = "staff/administrators"
End If
If Group.cn = "AYL Associate Staff" Then
strBaseDir = "staff/associate"
End If
If Group.cn = "AYL Teaching Staff" Then
strBaseDir = "staff/teachers"
End If
Next
%>