<% Z::set_settings( "title" => "Distributed Authentication and Content API", "help" => "/apps/web/docs/modules/distributed/index.html", "base" => "modules!distributed" ); $::f{back} = "/apps/web/modules.ahtml?server=$::f{server}" if( !defined $::f{back} ); %> <% Z::parse( "../../etc/editheader.ahtml" ) %>

The distributed module implements the Zeus Distributed Authentication and Content API. The ZDAC API allows the web server to interact with external authentication servers and content generation servers over a TCP/IP socket interface. The Distributed module also implements support for Java Servlets using Live Software's JRun servlet runner, and the legacy internal Zeus servlet runner.

Information on how to program with the ZDAC API is available in the documentation system.


Authentication API
<%= Z::form( ) %>

<% @leaf = ("server Server 10", "realm Realm 25"); if ( grep /^\!authd!urls\!/, keys %::f ) { $html = Z::form_table( key=>"URL", leaf=>\@leaf, base=>"authd!urls" ); } else { $html = "No authd interfaces are currently defined"; } Z::write( $html ); %>

Add Authd interface
Docroot path:
eg. /
Remote machine:
hostname:port
Realm:
<%= Z::endform() %>
Content API
<%= Z::form( ) %> <%= ( grep /^\!sockd!mappings\!/, keys %::f ) and Z::form_table( key=>"Docroot Path", value=>"Content Server", base=>"sockd!mappings" ) or "No content servers are currently defined" %>

Add Content Server
Service name:
Content server:
(host:port)
Services are referenced as <service prefix>/<service name>, where <service prefix> could be /distributed for example.
Service prefix: " name=!sockd!prefix>
<%= Z::endform() %>
Java Servlets
<%= Z::form( target=>$::f{back} ) %>
Service prefix: " name=!servlet!prefix>
Servlet server:
(host:port)
" name=!servlet!server>
<%= Z::endform() %> <% Z::parse( "../../etc/footer.ahtml" ) %>