Mappa.Mundi Magazine
Rocket Science » SpaceKit for Perl » Tutorial Rocket Science Index »

Olive Left Top Corner Spacer Image
SpaceKit for Perl, page 4
Spacer Image
Olive Right Top Corner


1 Introduction
2 Example Client Applications
3 Example Server Implementation (bxxd.pl)
»  A Complete Module Example For The Impatient - Utilites

ascii
html
xml
this article in RFC-2629 formats

Khaki Left Bottom Corner
Khaki Right Bottom Corner
A Complete Module Example For The Impatient

download the code | copyright | legal | join the discussion list

      You can create your own modules by defining a new profile and implementing a new server module as well as the client using the new profile.

      In the example, we create a module named "reverse" that receives a server request, reverses the order of the octets in the request, and responds back to the client with the reversed results.

Profile Definition

      To access your new module, first define the new profile and its corresponding module in the configuration file for the port using the new profile:


      <profile uri="http://xml.resource.org/profiles/REVERSE" module="reverse">
      </profile>

      If you are using the server in stand-alone mode, you will need to restart since the configuration file loads at start time.

Module Structure

Utilities

SASL Administration Tool

      The SASL administration utility is found under the example server directory as etc/sasl-adm.pl. This utility will allow you to create, delete, list, and update the SASL anonymous and SASL OTP user accounts.


Usage:

% etc/sasl-adm.pl [-action create|delete|list|update]
                  [-authdir path/to/authdirectory]
                  [-logfile path/to/logfile]
                  [-mechanism anonymous|otp]
                  [-version]
                  [username]
                  [subtree ...]

  where

    -action    action to perform, defaults to create
    -authdir   path to authentication database directory, defaults to ./auth,
               and will be created as needed
    -logfile   path to log file, defaults to logs/sasl-adm.log
    -mechanism SASL mechanism, defaults to otp
    -version   display application version and exit
    username   user account to access, defaults to anonymous
    subtree    list of subtrees user account will be given full access to,
               default subtree is empty and allows fetch operations on any
               subtree


End - Return to » Introduction.


 Copyright © 2000 Invisible Worlds. All Rights Reserved.

Invisible Worlds
contact | about | site map | home T-O