Bonjour,
J'aimerais bien permettre aux utilisateurs de modifier leur mot de passe via le Net.
Peut-on passer "user-password" en accés public et le faire sans trop de risques ?
Cordialement
Modérateur: modos Ixus
mkdir /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/VirtualHosts
cp /etc/e-smith/templates/etc/httpd/conf/httpd.conf/VirtualHosts/27ManagerProxyPass /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/VirtualHosts/
pico /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/VirtualHosts/27ManagerProxyPass
{
# vim: ft=perl:
$haveSSL = (exists ${modSSL}{status} and ${modSSL}{status} eq "enabled") ? 'yes' : 'no';
$plainTextAccess = ${'httpd-admin'}{PermitPlainTextAccess} || 'no';
$OUT = '';
foreach $place ('server-manager','server-common')
{
if (($port eq "80") && ($haveSSL eq 'yes') && ($plainTextAccess ne 'yes'))
{
$OUT .= " RewriteRule ^/$place(/.*|\$) https://%{HTTP_HOST}/$place\$1 [L,R]\n";
} else {
$OUT .= " ProxyPass /$place http://127.0.0.1:${'httpd-admin'}{TCPPort}/$place/\n";
}
$OUT .= " <Location /$place>\n";
$OUT .= " order deny,allow\n";
$OUT .= " deny from all\n";
if (($haveSSL eq 'yes') && (($port eq "443") || ($plainTextAccess ne 'yes')))
{
$OUT .= " allow from $localAccess $externalSSLAccess\n";
} else {
$OUT .= " allow from $localAccess\n";
}
$OUT .= " </Location>\n";
}
if (($port eq "80") && ($haveSSL eq 'yes') && ($plainTextAccess ne 'yes'))
{
$OUT .= " RewriteRule ^/user-password(/.*|\$) https://%{HTTP_HOST}/user-password\$1 [L,R]\n";
} else {
$OUT .= " ProxyPass /user-password http://127.0.0.1:${'httpd-admin'}{TCPPort}/user-password/\n";
}
$OUT .= " <Location /user-password>\n";
$OUT .= " order deny,allow\n";
$OUT .= " deny from all\n";
$OUT .= " allow from all\n";
$OUT .= " </Location>\n";
}
expand-template /etc/httpd/conf/httpd.conf
service httpd-e-smith sigusr1
Retour vers E-Smith / SME Server
Utilisateur(s) parcourant actuellement ce forum : Aucun utilisateur inscrit et 1 invité