• RSS
  • Twitter
  • FaceBook

Welcome to ISAserver.org

Forums | Register | Login | My Profile | Inbox | RSS RSS icon | My Subscription | My Forums | Address Book | Member List | Search | FAQ | Ticket List | Log Out

using VC++ and programming ISA

Users viewing this topic: none

Logged in as: Guest
  Printable Version
All Forums >> [ISA Server 2000 Misc.] >> ISA Server Programming >> using VC++ and programming ISA Page: [1]
Login
Message << Older Topic   Newer Topic >>
using VC++ and programming ISA - 15.Apr.2002 3:20:00 AM   
mehrm

 

Posts: 14
Joined: 14.Apr.2002
From: Seattle
Status: offline
I would like to know if there is any book available in programming ISA in VC++. Also, is it possible to program ISA to remove the banner and pop up windows effectively( sample code appreciated)?
Post #: 1
RE: using VC++ and programming ISA - 15.Apr.2002 6:08:00 PM   
Jez

 

Posts: 367
Joined: 30.Jan.2002
From: Essex, England
Status: offline
Hmmm..i dont think your going to easily find a neat book on this (I just checked amazon, but nothing came up). To be honest most of the stuff in the SDK is pretty ok once you get to grips with it (as long as you know your VB to VC equivelents).

If your not trying to do anything super complex, id actaully suggest learning a bit of VB and programming it that way. Ive never really tried much in VC++, but ive heard its a nightmare compared to VB...

Jeremy.

(in reply to mehrm)
Post #: 2
RE: using VC++ and programming ISA - 18.Apr.2002 8:18:00 AM   
HJB417

 

Posts: 187
Joined: 24.Jul.2001
From: nYc
Status: offline
I've seen VB code and C++ code for ISA and C++ looks scary, I prefer c++ over VB whenever possible, but if I'm gonna do an ISA program, I'm definitely leaning towards VB. I think it should be just as easy to do in c#.

(in reply to mehrm)
Post #: 3
RE: using VC++ and programming ISA - 3.May2002 11:43:00 PM   
Guest
Where did you happen to see examples of application filters with VB? I'm not very good at the c++ to VB conversion so the SDK is hard to work with. Also, the SDK that I got from Microsoft is just a help file - where are the .idl files and .h files it mentions? I realize those are more for the c++ folks, but I must be missing something...

Thanks

(in reply to mehrm)
  Post #: 4
RE: using VC++ and programming ISA - 5.May2002 6:49:00 AM   
HJB417

 

Posts: 187
Joined: 24.Jul.2001
From: nYc
Status: offline
there are sample apps in the ISA SDK in c++ and I've seen some ISA scripts in VB Script. The C++ ones look confusing (beyond my knowledge of windows programming) but the VB script looks easy but hopefully it can be done (just as easily) in c#, I haven't really fooled around with c# or ISA programming except for modying an auto IP update script in VB Script.
Set ISA = CreateObject("FPC.Root") is what you need to get full access in VB

(in reply to mehrm)
Post #: 5
RE: using VC++ and programming ISA - 7.May2002 12:50:00 AM   
Guest
Thanks for the reply.

I did a little more research on this. I'm thinking the vbscript that you saw was just the administrative objects being used. It seems that the application filters must be done in C++ as I tried using the .idl library files (compiled to tlb files) with VB and got errors about VB not supporting parameter types used in the libraries. Ack, c++/atl here I come [Frown]

(in reply to mehrm)
  Post #: 6
RE: using VC++ and programming ISA - 3.Jun.2002 11:47:00 PM   
padmaxi

 

Posts: 5
Joined: 3.Jun.2002
From: Chennai, TN, India
Status: offline
Hi,

The Proxy that i am using is having a strictly configured ISA server such that the internet clients (eg IE, Netscape or some customized internet clients) needs to authenticate by giving a
1. User Name
2. Pass Word
3. Domain Name

(If i am using IE and trying to open a url, immidiatly IE prompts a dialog for "User Name", "Pass Word" and "Domain Name" that are used for authentication from the serverside. These credentials are normally my emailid/password/email-domain-name)

I am trying to write a program that uses the following APIs for accessing the internet and download a page..
//START
HINTERNET goInetHnd;
HINTERNET aoURL;

//OPEN CONNECTION
goInetHnd = ::InternetOpen (
STD_BROWSER_SIG,
INTERNET_OPEN_TYPE_PRECONFIG,
NULL, NULL, 0
);

//SPECIFY AUTHENTICATION USERNAME
strcpy (azUser,"user-name");
aiUsrLen=strlen (azUser);
InternetSetOption (goInetHnd, INTERNET_OPTION_USERNAME, azUser, (unsigned long)aiUsrLen);

//SPECIFY AUTHENTICATION PASSWORD
strcpy (azPass, "pass-word");
aiPasLen=strlen (azPass);
InternetSetOption (goInetHnd, INTERNET_OPTION_PASSWORD, azPass, (unsigned long)aiPasLen);

//OPEN URL
aoURL = ::InternetOpenUrl (
goInetHnd,
azUrl,
NULL, 0, 0, 0
);

//GET PAGE DATA
InternetReadFile (aoURL, azTemp, aiReadLen, &aiLen); // placed in loop

//CLOSE URL
InternetCloseHandle (aoURL);
//END

Here i donno how to specify the "domain name" authentication. There is no option in InternetSetOption API like INTERNET_OPTION_DOMAINNAME. I also tried by passing the domain-name along with user-name as
//SPECIFY AUTHENTICATION USERNAME
strcpy (azDomAndUser,"domain-name\\user-name"); // strcpy (azDomAndUser,"\\domain-name\\user-name");
aiDomUsrLen=strlen (azDomAndUser);
InternetSetOption (goInetHnd, INTERNET_OPTION_USERNAME, azDomAndUser, (unsigned long)aiDomUsrLen);
And this is also not working..

Actually, the returning page has the following text.
HTTP 407 Proxy Authentication Required - The ISA Server requires authorization to fulfill the request. Access to the Web Proxy service is denied. (12209)
Internet Security and Acceleration Server

This error message is very similar to the page that is obtained by cancelling the authentication dialog.

I am in extreme need to obtain a good optimum solution for this.. if possible by using WinInet API. Please let me know your suggestion.

Regards
R.Padmakumar

(in reply to mehrm)
Post #: 7
RE: using VC++ and programming ISA - 27.Jun.2005 7:53:00 AM   
indiancoolman

 

Posts: 1
Joined: 27.Jun.2005
Status: offline
Hi,
I get this error on my 2000 servers and not the 2003 servers.

Error Code: 407 Proxy Authentication Required. The ISA Server requires authorization to fulfill the request. Access to the Web Proxy service is denied. (12209)

Manoj.

(in reply to mehrm)
Post #: 8

Page:   [1] << Older Topic    Newer Topic >>
All Forums >> [ISA Server 2000 Misc.] >> ISA Server Programming >> using VC++ and programming ISA Page: [1]
Jump to:

New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts