Vous êtes sur la page 1sur 2

XmlUserManager (com.bowman.cardserv.

XmlUserManager is a small extension of the built in example SimpleUserManager. I
nstead of reading user definitions
only from proxy.xml it can fetch an external xml file from any url. This can be
a simpler alternative to a full
database usermanager, when maintaining the same set of users in a cluster of mul
tiple proxies.
- XmlUserManager uses the exact same xml format as SimpleUserManager (see proxy-
- It will accept user definitions included in proxy.xml, just like SimpleUserMan
ager. These are parsed before any
attempts are made to get external definitions, making it possible to have some
local users in addition to the main
user db.
- If the same username exists both in proxy.xml and in the fetched user file, th
e local definition will be overwritten.
The following are settings are available for XmlUserManager:
<user-manager class="com.bowman.cardserv.XmlUserManager" log-failures="true">
- To load the XmlUserManager, use the following user-manager class name: com.bow
Changing from one user-manager to another requires a proxy restart.
- The url of the xml file with user definitions. The file should match the auth-
config for SimpleUserManager, but
the top level element is ignored. See config/users.example.xml for an example.
Any url can be used, including https/ftp with user:passwd@hostname type auth inf
o. File urls are also accepted.
NOTE: When using a http/https url, it doesn't have to point to an actual static
xml file. A php/jsp/asp page that
renders the xml dynamically from an underlying database is a more flexible solut
- Optionally, the user file can be blowfish encrypted using the included fishenc
.jar tool (found in lib). If the
file is not encrypted, omit the user-file-key element entirely.
<update-interval>5</update-interval> <!-- minutes -->
- How often to check for changes in the user file. If no changes have occured, t
he file will not be fetched/parsed.
<user name="local1" password="test" ip-mask="192.168.0.*" profiles="cable" adm
<user name="local2" password="test" debug="true"/>
NOTE: Errors in the user file will not prevent the proxy from starting, it will
only log warnings if unable to
fetch/parse the file. Local users in proxy.xml will still be available.
Should the user file become temporarily unavailable or broken, the proxy will ke
ep using the last known working one.
To see exactly what XmlUserManager is doing, use log-level FINE.
As of 0.8.8 it is possible to specify multiple source urls, using the following
<user-source name="someusers">
<user-source name="otherusers">
<user-source name="localusers">
<update-interval>5</update-interval> <!-- minutes -- >