Toon posts:

Uitlezen active directory met asp

Pagina: 1
Acties:
  • 31 views sinds 30-01-2008

Verwijderd

Topicstarter
Hello,
Please help us.
This is what we want
We want to use a forum called Snitz (http://forum.snitz.com). In this forum there is an option to use windows authentication. This works. Also there is an option to read in active directory the full name of an active directory member. This is not working.

This is the code we use
sub NTAuthenticate()
dim strUser, strNTUser, checkNT, strLogon
strNTUser = Request.ServerVariables("AUTH_USER")
strNTUser = replace(strNTUser, "\", "/")
'response.write(strNTUser & "<br>")

if Session(strCookieURL & "userid") = "" then
strUser = Mid(strNTUser,(instr(1,strNTUser,"/")+1),len(strNTUser))
Session(strCookieURL & "userid") = strUser
end if

if strAutoLogon="1" then
strNTUserFullName = Session(strCookieURL & "strNTUserFullName")
if Session(strCookieURL & "strNTUserFullName") = "" then
on error resume next
Set strNTUserInfo = GetObject("WinNT://"+strNTUser)
strNTUserFullName=strNTUserInfo.FullName
Session(strCookieURL & "strNTUserFullName") = strNTUserFullName
end if
end if
end sub

Problem:
The bold line gives a problem. The error code is: error '80070035'

Regards,
Eelco Middelburg

  • Creepy
  • Registratie: Juni 2001
  • Laatst online: 18:05

Creepy

Tactical Espionage Splatterer

This is a Dutch forum, so please ask in Dutch. :)

Ten tweede, je krijgt een foutmelding. Zoek die eens op, kijk wat het betekent en los het op. We gaan er hier stiekum vanuit dat je zelf in staat bent om te debuggen ;) Zie ook P&W FAQ - Leer **** debuggen!!

Ten derde kan je het beste een support vraag stellen bij de ontwikkelaar van je forum ;)

[ Voor 14% gewijzigd door Creepy op 26-01-2005 14:48 ]

"I had a problem, I solved it with regular expressions. Now I have two problems". That's shows a lack of appreciation for regular expressions: "I know have _star_ problems" --Kevlin Henney


Dit topic is gesloten.