Apache-Roaming
view release on metacpan or search on metacpan
Makefile.PL view on Meta::CPAN
sub {
my $out = shift;
$out = '0' if !defined($out) or $out eq 'none';
}],
['By default send HTML mail', 'bool', 'initial',
'mail.html_compose', 'false'],
['Default domain', 'string', 'initial',
'mail.identity.defaultdomain'],
['Leave mail on server', 'bool', 'initial',
'mail.leave_on_server', 'false'],
['Remember mail password', 'bool', 'initial',
'mail.remember_password', 'false'],
['Default NNTP server', 'string', 'initial',
'network.hosts.nntp_server'],
['Default POP3 server', 'string', 'initial',
'network.hosts.pop_server'],
['Default SMTP server', 'string', 'initial',
'network.hosts.smtp_server'],
['Proxy autoconfiguration URL', 'string', 'initial',
'network.proxy.autoconfig_url'],
['FTP Proxy', 'string', 'initial',
'network.proxy.ftp'],
Makefile.PL view on Meta::CPAN
['SSL Proxy', 'string', 'initial',
'network.proxy.ssl'],
['SSL Proxy Port', 'string', 'initial',
'network.proxy.ssl_port'],
['WAIS Proxy', 'string', 'initial',
'network.proxy.wais'],
['WAIS Proxy Port', 'string', 'initial',
'network.proxy.wais_port'],
['No Proxies for', 'string', 'initial',
'network.proxy.no_proxies_on', '127.0.0.1 localhost'],
['Send Email address as FTP password', 'bool', 'initial',
'security.email_as_ftp_password', 'true'],
['Send Warning while submitting an insecure POST', 'bool',
'initial', 'security.warn_entering_secure', 'true'],
['Send Warning while entering a secure area', 'bool', 'initial',
'security.warn_submit_insecure', 'true']) {
my($prompt, $type, $initial, $var, $default, $in_filter,
$out_filter) = @$ref;
if (exists($Apache::Roaming::LiPrefs::ALWAYS{$var})) {
$initial = 'always';
$default = $Apache::Roaming::LiPrefs::ALWAYS{$var};
} elsif (exists($Apache::Roaming::LiPrefs::INITIAL{$var})) {
only. For example I do
mkdir /home/httpd/html/roaming
chown nobody /home/httpd/html/roaming
chgrp nobody /home/httpd/html/roaming
chmod 700 /home/httpd/html/roaming
with *nobody* being the web server user.
Access to the roaming directory must be restricted and enabled via
password only. Finally tell the web server, that Apache::Roaming is
handling requests to this directory by adding something like this to
your srm.conf or access.conf:
PerlModule Apache::Roaming
<Location /roaming>
PerlHandler Apache::Roaming->handler
PerlTypeHandler Apache::Roaming->handler_type
AuthType Basic
AuthName "Roaming User"
AuthUserFile /home/httpd/.htusers
lib/Apache/Roaming.pm view on Meta::CPAN
server only. For example I do
mkdir /home/httpd/html/roaming
chown nobody /home/httpd/html/roaming
chgrp nobody /home/httpd/html/roaming
chmod 700 /home/httpd/html/roaming
with I<nobody> being the web server user.
Access to the roaming directory must be restricted and enabled via
password only. Finally tell the web server, that Apache::Roaming is
handling requests to this directory by adding something like this
to your srm.conf or access.conf:
PerlModule Apache::Roaming
<Location /roaming>
PerlHandler Apache::Roaming->handler
PerlTypeHandler Apache::Roaming->handler_type
AuthType Basic
AuthName "Roaming User"
AuthUserFile /home/httpd/.htusers
lib/Apache/Roaming/LiPrefs.pm view on Meta::CPAN
Lines corresponding to one of the given hash keys will be silently
replaced by the given values. If no corresponding line is found,
the hash key will be treated like it where part of the I<INITIAL>
hash.
=back
An example might help. Suggest the following arrays:
%Apache::Roaming::LiPrefs::INITIAL = {
'security.email_as_ftp_password' => 'true',
'mail.remember_password' => 'false'
};
%Apache::Roaming::LiPrefs::ALWAYS = {
'network.hosts.pop_server' => 'pop.cmo.de',
'network.hosts.smtp_server' => 'smtp.cmo.de'
}
If the users saved liprefs file is
user_pref("network.hosts.pop_server", "pop.company.com");
user_pref("mail.remember_password", true);
Then the module will change it to
user_pref("network.hosts.pop_server", "pop.cmo.de");
user_pref("network.hosts.smtp_server", "smtp.cmo.de");
user_pref("mail.remember_password", true);
user_pref("security.email_as_ftp_password", true);
=head1 INSTALLATION
Follow the instructions for installing the Apache::Roaming module.
See L<Apache::Roaming(3)>. The only difference is that you use
Apache::Roaming::LiPrefs rather than its superclass Apache::Roaming:
PerlModule Apache::Roaming::LiPrefs
<Location /roaming>
( run in 0.499 second using v1.01-cache-2.11-cpan-49f99fa48dc )