esmith::NetworksDB - interface to esmith networks database
use esmith::NetworksDB; my $c = esmith::NetworksDB->open;
# everything else works just like esmith::DB::db
This module provides an abstracted interface to the esmith master configuration database.
Unless otherwise noted, esmith::NetworksDB acts like esmith::DB::db.
Like esmith::DB->open, but if given no $file it will try to open the file in the ESMITH_NETWORKS_DB environment variable or networks.
Like esmith::DB->open_ro, but if given no $file it will try to open the file in the ESMITH_NETWORKS_DB environment variable or networks.
Return a list of all objects of type "network".
Compute the network/netmask entries which are to treated as local access.
There is also an optional access parameter which can further restrict
the values returned. If
If called in scalar context, the returned string is suitable for use in /etc/hosts.allow, smb.conf and httpd.conf, for example:
Note: The elements are space separated, which is suitable for use in
hosts.allow, smb.conf and httpd.conf. httpd.conf does not permit
comma separated lists in
If called in list context, returns the array of addresses and network/netmask strings. It's trivial, of course, to convert an array to a comma separated list :-)
SME Server Developers <email@example.com>
Site consacré à la distribution Linux SME Server
Site sous licence Creative Commons (by, nc, sa)