Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. ISAPI FILTER ON ISA SERVER

ISAPI FILTER ON ISA SERVER

Scheduled Pinned Locked Moved C / C++ / MFC
sysadminhelpquestion
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    SuzannaS
    wrote on last edited by
    #1

    Is there anybody who can help me by developping an ISAPI FILTER on a ISA SERVER 2000, please????? :(( :eek:

    M 1 Reply Last reply
    0
    • S SuzannaS

      Is there anybody who can help me by developping an ISAPI FILTER on a ISA SERVER 2000, please????? :(( :eek:

      M Offline
      M Offline
      Mahendra_786
      wrote on last edited by
      #2

      Thats a lot of help to ask for on a Discussion forum. Still I can try, if you care. Due Regards Mahendra

      S 1 Reply Last reply
      0
      • M Mahendra_786

        Thats a lot of help to ask for on a Discussion forum. Still I can try, if you care. Due Regards Mahendra

        S Offline
        S Offline
        SuzannaS
        wrote on last edited by
        #3

        Hi Mahendra, are you ready for my questions? so, let's start: FIRST QUESTION: How can I get the client's browser's session ID? For each browser does an ID exist? SECOND QUESTION I would like to know why the following code for the event OnAuthComplete is not working; I have already declared the method and caught the notification (SF_NOTIFY_AUTH_COMPLETE: dwRet = OnAuthComplete(pfc, (PHTTP_FILTER_AUTH_COMPLETE_INFO))pvNotification); : HANDLE TokenHandle = (HANDLE)1; DWORD dwLen = 0; PTOKEN_USER pTokenUser = NULL; DWORD dwErr; char name[MAX_NAME], domain[MAX_NAME]; // Get user token. if ( pAuthCompInfo->GetUserToken(pfc,&TokenHandle) ) { // Get token information size. if ( !GetTokenInformation(TokenHandle,TokenUser,NULL,dwLen,&dwLen) ) { dwErr = GetLastError(); if ( ERROR_INSUFFICIENT_BUFFER == dwErr ) { // Alocate buffer for token information. pTokenUser = (PTOKEN_USER)GlobalAlloc(GPTR,dwLen); dwErr = S_OK; } } // Now get the actual token information. if ( dwErr != S_OK || !GetTokenInformation(TokenHandle, TokenUser,pTokenUser,dwLen,&dwLen) ) { return WriteIntoFile(pfc, "Evento OnAuthComplete: ERRORE 1"); } else // We have the token information in hand. { // Extract from the token information - the SID. SID *pSid = (SID *)pTokenUser->User.Sid; DWORD dwNLen = MAX_NAME, dwDLen = MAX_NAME; SID_NAME_USE eUse; // Get the user name and the domain from the SID. if (!LookupAccountSid(NULL,pSid,name,&dwNLen,domain,&dwDLen,&eUse) ) { return WriteIntoFile(pfc, "Evento OnAuthComplete: ERRORE 2"); } else { return WriteIntoFile(pfc, "Evento OnAuthComplete: User name:" + *name); // name buffer contains user name. // domain buffer contains user domain. } } } SQLPOINTER sp = name; long userID = GetUserID(sp); return WriteIntoFile(pfc, "Evento OnAuthComplete: "); } WriteIntoFile is a method that write into a file and I have already tested it and it works well. I have other question but I start just with the two first question. Thanks a lot.:)

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups