Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.

Welcome, Guest
Guest Settings

Thread: Getting windows username from IIS in an ISAPI dll

This question is not answered. Helpful answers available: 2. Correct answers available: 1.

Permlink Replies: 0
Pieter van Wyk

Posts: 8
Registered: 8/2/08
Getting windows username from IIS in an ISAPI dll  
Click to report abuse...   Click to reply to this thread Reply
  Posted: May 1, 2015 4:31 AM

We have bought Intraweb Ultimate (Martin McColl Limited, Product No. 0782409) and we are trying to implement SSO (Single Sign-On) for our Intraweb applications.

Using IIS6 on Windows Server 2003, it was possible to retrieve the windows username using [AUTH_USER] if "Windows Authentication" is enabled for the application where the Intraweb dll is run. Anonymous access must be disabled.

So, in
add the following line:

In the
procedure of the main form, get the username using:

We have since upgraded to Windows Server 2012, IIS 8.5.

If the defaults are used, ie. "Anonymous" Authentication, then dll loads and the main form is displayed. If however we turn enable "Windows Authentication" the dll aborts with a access violation exception.

exception class    : EAccessViolation
exception message  : Access violation at address 02497B74 in module 'iwonlinerecruitment.dll'. Write of address 000000E2.

I would appreciate any help with setting up IIS 8.5 or settings in Intraweb that can assist us.

Regards, Pieter
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02