I'm running a copy of Snitz forum. in a mixed mode (and migrating) NT/AD domain. The forums utilise auto logon which works for NT users with this
NT
and for AD users with this
AD
The full code segment for one type is below, can anyone suggest a way to combine this so it works for users in both NT and AD?
NT
Code:
Set strNTUserInfo = GetObject("WinNT://"+strNTUser)
strNTUserFullName=strNTUserInfo.FullName
and for AD users with this
AD
Code:
Set strNTUserInfo = GetObject("LDAP://GB001SV0001/DC=NS,DC=TPNET,DC=INTRA")
strNTUserFullName=strNTUserInfo.Name
The full code segment for one type is below, can anyone suggest a way to combine this so it works for users in both NT and AD?
Code:
if strAutoLogon="1" then
strNTUserFullName = Session(strCookieURL & "strNTUserFullName")
if Session(strCookieURL & "strNTUserFullName") = "" then
Set strNTUserInfo = GetObject("WinNT://"+strNTUser)
& "strNTUserFullName") = strNTUserFullName
end if