check_ica_program_neigbourhood.pl 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619
  1. #!/usr/bin/perl -w
  2. # $Id$
  3. # $Log$
  4. # Revision 1.1 2005/01/25 09:05:53 stanleyhopcroft
  5. # New plugin to check Citrix Metaframe XP "Program Neighbourhood"
  6. #
  7. # Revision 1.1 2005-01-25 16:50:30+11 anwsmh
  8. # Initial revision
  9. #
  10. use strict ;
  11. use Getopt::Long;
  12. use utils qw($TIMEOUT %ERRORS &print_revision &support);
  13. use LWP 5.65 ;
  14. use XML::Parser ;
  15. my $PROGNAME = 'check_program_neigbourhood' ;
  16. my ($debug, $xml_debug, $pn_server, $pub_apps, $app_servers, $server_farm, $usage) ;
  17. Getopt::Long::Configure('bundling', 'no_ignore_case') ;
  18. GetOptions
  19. ("V|version" => \&version,
  20. "A|published_app:s" => \$pub_apps,
  21. "h|help" => \&help,
  22. 'usage|?' => \&usage,
  23. "F|server_farm=s" => \$server_farm,
  24. "P|pn_server=s" => \$pn_server,
  25. "S|app_server=s" => \$app_servers,
  26. "v|verbose" => \$debug,
  27. "x|xml_debug" => \$xml_debug,
  28. ) ;
  29. $pn_server || do {
  30. print "Name or IP Address of _one_ Program Neighbourhood server is required.\n" ;
  31. &print_usage ;
  32. exit $ERRORS{UNKNOWN} ;
  33. } ;
  34. $pub_apps ||= 'Word 2003' ;
  35. $pub_apps =~ s/["']//g ;
  36. my @pub_apps = split /,\s*/, $pub_apps ;
  37. my @app_servers = split /,\s*/, $app_servers ;
  38. @app_servers || do {
  39. print "IP Address of _each_ Application server in the Metaframe Citrix XP server farm is required.\n" ;
  40. &print_usage ;
  41. exit $ERRORS{UNKNOWN} ;
  42. } ;
  43. my @non_ip_addresses = grep ! /\d+\.\d+\.\d+\.\d+/, @app_servers ;
  44. scalar(@non_ip_addresses) && do {
  45. print qq(Application servers must be specified by IP Address (not name): "@non_ip_addresses".\n) ;
  46. &print_usage ;
  47. exit $ERRORS{UNKNOWN} ;
  48. } ;
  49. $server_farm || do {
  50. print "Name of Citrix Metaframe XP server farm is required.\n" ;
  51. &print_usage ;
  52. exit $ERRORS{UNKNOWN} ;
  53. } ;
  54. my %xml_tag = () ;
  55. my @tag_stack = () ;
  56. my $xml_p = new XML::Parser(Handlers => {Start => \&handle_start,
  57. End => sub { pop @tag_stack },
  58. Char => \&handle_char}) ;
  59. # values required by Metaframe XP that don't appear to matter too much
  60. my $client_host = 'Nagios server (http://www.Nagios.ORG)' ;
  61. my $user_name = 'nagios' ;
  62. my $domain = 'Nagios_Uber_Alles' ;
  63. # end values required by Metaframe XP
  64. my $nilpotent_req = <<'EOR' ;
  65. <?xml version="1.0" encoding="ISO-8859-1"?>
  66. <!DOCTYPE NFuseProtocol SYSTEM "NFuse.dtd"><NFuseProtocol version="1.1">
  67. <RequestProtocolInfo>
  68. <ServerAddress addresstype="dns-port" />
  69. </RequestProtocolInfo>
  70. </NFuseProtocol>
  71. EOR
  72. my $server_farm_req = <<'EOR' ;
  73. <?xml version="1.0" encoding="ISO-8859-1"?>
  74. <!DOCTYPE NFuseProtocol SYSTEM "NFuse.dtd">
  75. <NFuseProtocol version="1.1">
  76. <RequestServerFarmData>
  77. <Nil />
  78. </RequestServerFarmData>
  79. </NFuseProtocol>
  80. EOR
  81. my $spec_server_farm_req = <<EOR ;
  82. <?xml version="1.0" encoding="ISO-8859-1"?>
  83. <!DOCTYPE NFuseProtocol SYSTEM "NFuse.dtd">
  84. <NFuseProtocol version="1.1">
  85. <RequestAddress>
  86. <Name>
  87. <UnspecifiedName>$server_farm*</UnspecifiedName>
  88. </Name>
  89. <ClientName>$client_host</ClientName>
  90. <ClientAddress addresstype="dns-port" />
  91. <ServerAddress addresstype="dns-port" />
  92. <Flags />
  93. <Credentials>
  94. <UserName>$user_name</UserName>
  95. <Domain>$domain</Domain>
  96. </Credentials>
  97. </RequestAddress>
  98. </NFuseProtocol>
  99. EOR
  100. my $app_req = <<EOR ;
  101. <?xml version="1.0" encoding="ISO-8859-1"?>
  102. <!DOCTYPE NFuseProtocol SYSTEM "NFuse.dtd">
  103. <NFuseProtocol version="1.1">
  104. <RequestAddress>
  105. <Name>
  106. <UnspecifiedName>PUBLISHED_APP_ENCODED</UnspecifiedName>
  107. </Name>
  108. <ClientName>Nagios_Service_Check</ClientName>
  109. <ClientAddress addresstype="dns-port"/>
  110. <ServerAddress addresstype="dns-port" />
  111. <Flags />
  112. <Credentials>
  113. <UserName>$PROGNAME</UserName>
  114. <Domain>$domain</Domain>
  115. </Credentials>
  116. </RequestAddress>
  117. </NFuseProtocol>
  118. EOR
  119. my $ua = LWP::UserAgent->new ;
  120. my $req = HTTP::Request->new('POST', "http://$pn_server/scripts/WPnBr.dll") ;
  121. $req->content_type('text/xml') ;
  122. my $svr ;
  123. my @pubapp_encoded = map { my $x = $_ ; $x =~ s/(\W)/'&#' . ord($1) . ';'/eg; $x } @pub_apps ;
  124. my $error_tag_cr = sub { ! exists($xml_tag{ErrorId}) } ;
  125. my @app_reqs = (
  126. # { Content => url, Ok => ok_condition, Seq => \d+ }
  127. { Content => $nilpotent_req, Ok => $error_tag_cr, Seq => 0 },
  128. { Content => $server_farm_req, Ok => sub {
  129. ! exists($xml_tag{ErrorId}) &&
  130. exists( $xml_tag{ServerFarmName}) &&
  131. defined($xml_tag{ServerFarmName}) &&
  132. $xml_tag{ServerFarmName} eq $server_farm
  133. }, Seq => 2 },
  134. { Content => $nilpotent_req, Ok => $error_tag_cr, Seq => 4 },
  135. { Content => $spec_server_farm_req, Ok => sub {
  136. ! exists($xml_tag{ErrorId}) &&
  137. exists( $xml_tag{ServerAddress}) &&
  138. defined($xml_tag{ServerAddress}) &&
  139. $xml_tag{ServerAddress} =~ /\d+\.\d+\.\d+\.\d+:\d+/
  140. }, Seq => 6 },
  141. { Content => $nilpotent_req, Ok => $error_tag_cr, Seq => 8 },
  142. { Content => $app_req, Ok => sub {
  143. ! exists($xml_tag{ErrorId}) &&
  144. exists( $xml_tag{ServerAddress}) &&
  145. defined($xml_tag{ServerAddress}) &&
  146. (($svr) = split(/:/, $xml_tag{ServerAddress})) &&
  147. defined($svr) &&
  148. scalar(grep $_ eq $svr, @app_servers)
  149. }, Seq => 10 }
  150. ) ;
  151. my $app_location ;
  152. foreach my $pub_app (@pub_apps) {
  153. my $pubapp_enc = shift @pubapp_encoded ;
  154. my $app_req_tmp = $app_reqs[5]{Content} ;
  155. $app_reqs[5]{Content} =~ s/PUBLISHED_APP_ENCODED/$pubapp_enc/ ;
  156. foreach (@app_reqs) {
  157. $req->content($_->{Content}) ;
  158. $debug && print STDERR "App: $pub_app Seq: $_->{Seq}\n", $req->as_string, "\n" ;
  159. my $resp = $ua->request($req) ;
  160. $debug && print STDERR "App: $pub_app Seq: ", $_->{Seq} + 1, "\n", $resp->as_string, "\n" ;
  161. $resp->is_error && do {
  162. my $err = $resp->as_string ;
  163. $err =~ s/\n//g ;
  164. &outahere(qq(Failed. HTTP error finding $pub_app at seq $_->{Seq}: "$err")) ;
  165. } ;
  166. my $xml = $resp->content ;
  167. my $xml_disp ;
  168. ($xml_disp = $xml) =~ s/\n//g ;
  169. $xml_disp =~ s/ \s+/ /g ;
  170. &outahere($resp->as_string)
  171. unless $xml ;
  172. my ($xml_ok, $whine) = &valid_xml($xml_p, $xml) ;
  173. $xml_ok || &outahere(qq(Failed. Bad XML finding $pub_app at eq $_->{Seq} in "$xml_disp".)) ;
  174. &{$_->{Ok}} || &outahere(qq(Failed. \"\&\$_->{Ok}\" false finding $pub_app at seq $_->{Seq} in "$xml_disp".)) ;
  175. # Ugly but alternative is $_->{Ok}->().
  176. # eval $_->{Ok} where $_->{Ok} is an
  177. # expression returning a bool is possible. but
  178. # sub { } prevent recompilation.
  179. }
  180. $app_reqs[5]{Content} = $app_req_tmp ;
  181. $app_location .= qq("$pub_app" => $svr, ) ;
  182. }
  183. substr($app_location, -2, 2) = '' ;
  184. print qq(Ok. Citrix XML service located all published apps $app_location.\n) ;
  185. exit $ERRORS{'OK'} ;
  186. sub outahere {
  187. print "Citrix XML service $_[0]\n" ;
  188. exit $ERRORS{CRITICAL} ;
  189. }
  190. sub valid_xml {
  191. my ($p, $input) = @_ ;
  192. %xml_tag = () ;
  193. @tag_stack = () ;
  194. eval {
  195. $p->parse($input)
  196. } ;
  197. return (0, qq(XML::Parser->parse failed: Bad XML in "$input".!))
  198. if $@ ;
  199. if ( $xml_debug ) {
  200. print STDERR pack('A4 A30 A40', ' ', $_, qq(-> "$xml_tag{$_}")), "\n"
  201. foreach (keys %xml_tag)
  202. }
  203. return (1, 'valid xml')
  204. }
  205. sub handle_start {
  206. push @tag_stack, $_[1] ;
  207. $xml_debug && print STDERR pack('A8 A30 A40', ' ', 'handle_start - tag', " -> '$_[1]'"), "\n" ;
  208. $xml_debug && print STDERR pack('A8 A30 A60', ' ', 'handle_start - @tag_stack', " -> (@tag_stack)"), "\n" ;
  209. }
  210. sub handle_char {
  211. my $text = $_[1] ;
  212. !($text =~ /\S/ || $text =~ /^[ \t]$/) && return ;
  213. $text =~ s/\n//g ;
  214. my $tag = $tag_stack[-1] ;
  215. $xml_debug && print STDERR pack('A8 A30 A30', ' ', 'handle_char - tag', " -> '$tag'"), "\n" ;
  216. $xml_debug && print STDERR pack('A8 A30 A40', ' ', 'handle_char - text', " -> '$text'"), "\n" ;
  217. $xml_tag{$tag} .= $text ;
  218. }
  219. sub print_help() {
  220. # 1 2 3 4 5 6 7 8
  221. #12345678901234567890123456789012345678901234567890123456789012345678901234567890
  222. print_revision($PROGNAME,'$Revision$ ');
  223. my $help = <<EOHELP ;
  224. Copyright (c) 2004 Karl DeBisschop/S Hopcroft
  225. $PROGNAME -P <pn_server> -S <svr1,svr2,..> -A <app1,app2,..>
  226. -F <Farm> [-v -x -h -V]
  227. Check the Citrix Metaframe XP service by completing an HTTP dialogue with a Program
  228. Neigbourhood server (pn_server) that returns an ICA server in the named Server farm
  229. hosting the specified applications (an ICA server in a farm which runs some MS app).
  230. EOHELP
  231. print $help ;
  232. print "\n";
  233. print "\n";
  234. print_usage();
  235. print "\n";
  236. support();
  237. }
  238. sub print_usage () {
  239. # 1 2 3 4 5 6 7 8
  240. #12345678901234567890123456789012345678901234567890123456789012345678901234567890
  241. my $usage = <<EOUSAGE ;
  242. $PROGNAME
  243. [-P | --pn_server] The name or address of the Citrix Metaframe XP
  244. Program Neigbourhood server (required).
  245. [-A | --pub_apps] The name or names of an application published by the
  246. server farm (default 'Word 2003').
  247. [-F | --server_farm] The name of a Citrix Metaframe XP server farm. (required)
  248. [-S | --app_servers] The _IP addresses_ of _all_ of the Farms ICA servers expected
  249. to host the published application.
  250. Enter as a comma separated string eg 'Srv1, Svr2, ..,Srvn'.
  251. Since the PN servers round-robin the app servers to the clients,
  252. _all_ the server farm addresses must be specified or the check
  253. will fail (required).
  254. [-v | --verbose]
  255. [-h | --help]
  256. [-x | --xml_debug]
  257. [-V | --version]
  258. EOUSAGE
  259. print $usage ;
  260. }
  261. sub usage {
  262. &print_usage ;
  263. exit $ERRORS{'OK'} ;
  264. }
  265. sub version () {
  266. print_revision($PROGNAME,'$Revision$ ');
  267. exit $ERRORS{'OK'};
  268. }
  269. sub help () {
  270. print_help();
  271. exit $ERRORS{'OK'};
  272. }
  273. =begin comment
  274. This is the set of requests and responses transmitted between a Citrix Metaframe XP Program Neigbourhood (PN) client and a PN server.
  275. This dialogue was captured by and reconstructed from tcpdump.
  276. Citrix are not well known for documenting their protocols although the DTD may be informative. Note that the pair(s) 0 and 1, 4 and 5, ...
  277. do not appear to do anything.
  278. req 0
  279. POST /scripts/WPnBr.dll HTTP/1.1
  280. Content-type: text/xml
  281. Host: 10.1.2.2:80
  282. Content-Length: 220
  283. Connection: Keep-Alive
  284. <?xml version="1.0" encoding="ISO-8859-1"?>
  285. <!DOCTYPE NFuseProtocol SYSTEM "NFuse.dtd">
  286. <NFuseProtocol version="1.1"><RequestProtocolInfo><ServerAddress addresstype="dns-port" /></RequestProtocolInfo></NFuseProtocol>
  287. HTTP/1.1 100 Continue
  288. Server: Citrix Web PN Server
  289. Date: Thu, 30 Sep 2004 00:12:40 GMT
  290. resp 1
  291. HTTP/1.1 200 OK
  292. Server: Citrix Web PN Server
  293. Date: Thu, 30 Sep 2004 00:12:40 GMT
  294. Content-type: text/xml
  295. Content-length: 253
  296. <?xml version="1.0" encoding="ISO-8859-1" ?>
  297. <!DOCTYPE NFuseProtocol SYSTEM "NFuse.dtd">
  298. <NFuseProtocol version="1.1">
  299. <ResponseProtocolInfo>
  300. <ServerAddress addresstype="no-change"></ServerAddress>
  301. </ResponseProtocolInfo>
  302. </NFuseProtocol>
  303. req 2
  304. POST /scripts/WPnBr.dll HTTP/1.1
  305. Content-type: text/xml
  306. Host: 10.1.2.2:80
  307. Content-Length: 191
  308. Connection: Keep-Alive
  309. <?xml version="1.0" encoding="ISO-8859-1"?>
  310. <!DOCTYPE NFuseProtocol SYSTEM "NFuse.dtd">
  311. <NFuseProtocol version="1.1"><RequestServerFarmData><Nil /></RequestServerFarmData></NFuseProtocol>
  312. HTTP/1.1 100 Continue
  313. Server: Citrix Web PN Server
  314. Date: Thu, 30 Sep 2004 00:12:40 GMT
  315. resp 3
  316. HTTP/1.1 200 OK
  317. Server: Citrix Web PN Server
  318. Date: Thu, 30 Sep 2004 00:12:40 GMT
  319. Content-type: text/xml
  320. Content-length: 293
  321. <?xml version="1.0" encoding="ISO-8859-1" ?>
  322. <!DOCTYPE NFuseProtocol SYSTEM "NFuse.dtd">
  323. <NFuseProtocol version="1.1">
  324. <ResponseServerFarmData>
  325. <ServerFarmData>
  326. <ServerFarmName>FOOFARM01</ServerFarmName>
  327. </ServerFarmData>
  328. </ResponseServerFarmData>
  329. </NFuseProtocol>
  330. req 4
  331. POST /scripts/WPnBr.dll HTTP/1.1
  332. Content-type: text/xml
  333. Host: 10.1.2.2:80
  334. Content-Length: 220
  335. Connection: Keep-Alive
  336. <?xml version="1.0" encoding="ISO-8859-1"?>
  337. <!DOCTYPE NFuseProtocol SYSTEM "NFuse.dtd">
  338. <NFuseProtocol version="1.1"><RequestProtocolInfo><ServerAddress addresstype="dns-port" /></RequestProtocolInfo></NFuseProtocol>
  339. HTTP/1.1 100 Continue
  340. Server: Citrix Web PN Server
  341. Date: Thu, 30 Sep 2004 00:12:55 GMT
  342. resp 5
  343. HTTP/1.1 200 OK
  344. Server: Citrix Web PN Server
  345. Date: Thu, 30 Sep 2004 00:12:55 GMT
  346. Content-type: text/xml
  347. Content-length: 253
  348. <?xml version="1.0" encoding="ISO-8859-1" ?>
  349. <!DOCTYPE NFuseProtocol SYSTEM "NFuse.dtd">
  350. <NFuseProtocol version="1.1">
  351. <ResponseProtocolInfo>
  352. <ServerAddress addresstype="no-change"></ServerAddress>
  353. </ResponseProtocolInfo>
  354. </NFuseProtocol>
  355. req 6
  356. POST /scripts/WPnBr.dll HTTP/1.1
  357. Content-type: text/xml
  358. Host: 10.1.2.2:80
  359. Content-Length: 442
  360. Connection: Keep-Alive
  361. <?xml version="1.0" encoding="ISO-8859-1"?>
  362. <!DOCTYPE NFuseProtocol SYSTEM "NFuse.dtd">
  363. <NFuseProtocol version="1.1">
  364. <RequestAddress><Name>i
  365. <UnspecifiedName>FOOFARM01*</UnspecifiedName>
  366. </Name><ClientName>WS09535</ClientName>
  367. <ClientAddress addresstype="dns-port" />
  368. <ServerAddress addresstype="dns-port" />
  369. <Flags />
  370. <Credentials>
  371. <UserName>foo-user</UserName>
  372. <Domain>some-domain</Domain>
  373. </Credentials>
  374. </RequestAddress></NFuseProtocol>
  375. HTTP/1.1 100 Continue
  376. Server: Citrix Web PN Server
  377. Date: Thu, 30 Sep 2004 00:12:56 GMT
  378. resp 7
  379. HTTP/1.1 200 OK
  380. Server: Citrix Web PN Server
  381. Date: Thu, 30 Sep 2004 00:12:56 GMT
  382. Content-type: text/xml
  383. Content-length: 507
  384. <?xml version="1.0" encoding="ISO-8859-1" ?>
  385. <!DOCTYPE NFuseProtocol SYSTEM "NFuse.dtd">
  386. <NFuseProtocol version="1.1">
  387. <ResponseAddress>
  388. <ServerAddress addresstype="dot-port">10.1.2.2:1494</ServerAddress>
  389. <ServerType>win32</ServerType>
  390. <ConnectionType>tcp</ConnectionType>
  391. <ClientType>ica30</ClientType>
  392. <TicketTag>10.1.2.2</TicketTag>
  393. <SSLRelayAddress addresstype="dns-port">ica_svr01.some.domain:443</SSLRelayAddress>
  394. </ResponseAddress>
  395. </NFuseProtocol>
  396. req 8
  397. POST /scripts/WPnBr.dll HTTP/1.1
  398. Content-type: text/xml
  399. Host: 10.1.2.2:80
  400. Content-Length: 220
  401. Connection: Keep-Alive
  402. <?xml version="1.0" encoding="ISO-8859-1"?>
  403. <!DOCTYPE NFuseProtocol SYSTEM "NFuse.dtd">
  404. <NFuseProtocol version="1.1"><RequestProtocolInfo><ServerAddress addresstype="dns-port" /></RequestProtocolInfo></NFuseProtocol>
  405. HTTP/1.1 100 Continue
  406. Server: Citrix Web PN Server
  407. Date: Thu, 30 Sep 2004 00:13:29 GMT
  408. resp 9
  409. HTTP/1.1 200 OK
  410. Server: Citrix Web PN Server
  411. Date: Thu, 30 Sep 2004 00:13:29 GMT
  412. Content-type: text/xml
  413. Content-length: 253
  414. <?xml version="1.0" encoding="ISO-8859-1" ?>
  415. <!DOCTYPE NFuseProtocol SYSTEM "NFuse.dtd">
  416. <NFuseProtocol version="1.1">
  417. <ResponseProtocolInfo>
  418. <ServerAddress addresstype="no-change"></ServerAddress>
  419. </ResponseProtocolInfo>
  420. </NFuseProtocol>
  421. req 10
  422. POST /scripts/WPnBr.dll HTTP/1.1
  423. Content-type: text/xml
  424. Host: 10.1.2.2:80
  425. Content-Length: 446
  426. Connection: Keep-Alive
  427. <?xml version="1.0" encoding="ISO-8859-1"?>
  428. <!DOCTYPE NFuseProtocol SYSTEM "NFuse.dtd">
  429. <NFuseProtocol version="1.1">
  430. <RequestAddress>i
  431. <Name>
  432. <UnspecifiedName>EXCEL#32;2003</UnspecifiedName>
  433. </Name>
  434. <ClientName>WS09535</ClientName>
  435. <ClientAddress addresstype="dns-port" />
  436. <ServerAddress addresstype="dns-port" />
  437. <Flags />
  438. <Credentials><UserName>foo-user</UserName>
  439. <Domain>some-domain</Domain>
  440. </Credentials>
  441. </RequestAddress>i
  442. </NFuseProtocol>
  443. HTTP/1.1 100 Continue
  444. Server: Citrix Web PN Server
  445. Date: Thu, 30 Sep 2004 00:13:29 GMT
  446. resp 11
  447. HTTP/1.1 200 OK
  448. Server: Citrix Web PN Server
  449. Date: Thu, 30 Sep 2004 00:13:29 GMT
  450. Content-type: text/xml
  451. Content-length: 509
  452. <?xml version="1.0" encoding="ISO-8859-1" ?>
  453. <!DOCTYPE NFuseProtocol SYSTEM "NFuse.dtd">
  454. <NFuseProtocol version="1.1">
  455. <ResponseAddress>
  456. <ServerAddress addresstype="dot-port">10.1.2.14:1494</ServerAddress>
  457. <ServerType>win32</ServerType>
  458. <ConnectionType>tcp</ConnectionType>
  459. <ClientType>ica30</ClientType>
  460. <TicketTag>10.1.2.14</TicketTag>
  461. <SSLRelayAddress addresstype="dns-port">ica_svr02.some.domain:443</SSLRelayAddress>
  462. </ResponseAddress>
  463. </NFuseProtocol>
  464. ** One sees this XML on an error (there may well be other error XML also, but I haven't seen it) **
  465. <?xml version="1.0" encoding="ISO-8859-1" ?>
  466. <!DOCTYPE NFuseProtocol SYSTEM "NFuse.dtd">
  467. <NFuseProtocol version="1.1">
  468. <ResponseAddress>
  469. <ErrorId>unspecified</ErrorId>
  470. <BrowserError>0x0000000E</BrowserError>
  471. </ResponseAddress>
  472. </NFuseProtocol>
  473. =end comment
  474. =cut
  475. # You never know when you may be embedded ...