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/...
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"
If Group.cn = "AYL Associate Staff" Then
strBaseDir = "staff/associate"
If Group.cn = "AYL Teaching Staff" Then
strBaseDir = "staff/teachers"