|
A Complete Module Example For The Impatient
|
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.
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.
Utilities
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.