The content of the
user.map file can be generated
automatically, for example by automatically extracting information from
a separate service, such as LDAP, NIS or others. To specify the script
that will generate the information, the
@script directive can be used
When using the script method:
The information must be generated in the same format as for standard entries, i.e.:
username password servicename
If the script generates multiple entries with the same name, the later output will overwrite the previous entry.
can be specified. Each will be processed in turn.
If a generated list of usernames changes due to the scripts, the
connector must be manually forced to reload the usermap using
privileges on a connector connection. If you are using the
this command must be run through both ports. Alternatively, you can
trigger a simultaneous flush by running:
If a script within the
@script fails to be executed
correctly, or generates no user entries, the connector will fail to
The script itself can be relatively simple, the standard output of the
command must contain the user entries to be included in
user.map. Standard error is ignored.
#!/bin/bash echo 'app_user password dsone'
This generates a simple user entry.