diff -Nur -x '*.orig' -x '*.rej' smeserver-freepbx-0.1/createlinks mezzanine_patched_smeserver-freepbx-0.1/createlinks --- smeserver-freepbx-0.1/createlinks 2010-07-15 11:11:54.000000000 +0200 +++ mezzanine_patched_smeserver-freepbx-0.1/createlinks 2010-07-15 11:06:21.000000000 +0200 @@ -39,9 +39,7 @@ event_link("freepbx-checkinstall", $event, "10"); event_link("freepbx-applypatch", $event, "20"); -event_link("freepbx-security", $event, "30"); event_link("freepbx-clean-crontab", $event, "40"); -event_link("freepbx-security", "bootstrap-console-save", "90"); event_link("freepbx-dump-astdb", "pre-backup", "30"); safe_symlink("restart", "root/etc/e-smith/events/$event/services2adjust/mysql.init"); diff -Nur -x '*.orig' -x '*.rej' smeserver-freepbx-0.1/root/etc/e-smith/db/configuration/migrate/freepbx mezzanine_patched_smeserver-freepbx-0.1/root/etc/e-smith/db/configuration/migrate/freepbx --- smeserver-freepbx-0.1/root/etc/e-smith/db/configuration/migrate/freepbx 2010-07-15 11:11:54.000000000 +0200 +++ mezzanine_patched_smeserver-freepbx-0.1/root/etc/e-smith/db/configuration/migrate/freepbx 2010-07-15 11:05:50.000000000 +0200 @@ -7,6 +7,9 @@ my $managerpass = $freepbx->prop('ManagerPassword') || $freepbx->set_prop('ManagerPassword', `/usr/bin/openssl rand -base64 10 | /usr/bin/tr -c -d '[:alnum:]'`); +my $aripass = $freepbx->prop('AriPassword') || + $freepbx->set_prop('AriPassword', `/usr/bin/openssl rand -base64 10 | /usr/bin/tr -c -d '[:alnum:]'`); + my $fop = $DB->get('fop') || $DB->new_record('fop', {type => 'service'}); my $foppass = $fop->prop('Password') || ''; diff -Nur -x '*.orig' -x '*.rej' smeserver-freepbx-0.1/root/etc/e-smith/events/actions/freepbx-security mezzanine_patched_smeserver-freepbx-0.1/root/etc/e-smith/events/actions/freepbx-security --- smeserver-freepbx-0.1/root/etc/e-smith/events/actions/freepbx-security 2010-07-15 11:11:54.000000000 +0200 +++ mezzanine_patched_smeserver-freepbx-0.1/root/etc/e-smith/events/actions/freepbx-security 1970-01-01 01:00:00.000000000 +0100 @@ -1,11 +0,0 @@ -#!/bin/bash - -# Put a random password for ari admin. This function should be more documented - -PASS=`/usr/bin/openssl rand -base64 40 | /usr/bin/tr -c -d '[:graph:]'` - -if [ -e /opt/freepbx/recordings/includes/main.conf.php ]; then - sed -i -e "s/\$ARI_ADMIN_PASSWORD =\"ari_password\";/\$ARI_ADMIN_PASSWORD = \"$PASS\";/" \ - /opt/freepbx/recordings/includes/main.conf.php -fi - diff -Nur -x '*.orig' -x '*.rej' smeserver-freepbx-0.1/root/etc/e-smith/templates/etc/amportal.conf/70ari mezzanine_patched_smeserver-freepbx-0.1/root/etc/e-smith/templates/etc/amportal.conf/70ari --- smeserver-freepbx-0.1/root/etc/e-smith/templates/etc/amportal.conf/70ari 1970-01-01 01:00:00.000000000 +0100 +++ mezzanine_patched_smeserver-freepbx-0.1/root/etc/e-smith/templates/etc/amportal.conf/70ari 2010-07-15 11:04:47.000000000 +0200 @@ -0,0 +1,14 @@ +{ +my $aripass = ${'freepbx'}{'AriPassword'} || 'azerty'; + +$OUT.=<<"HERE"; + +# This is the default admin name used to allow an administrator to login to ARI bypassing all security. +ARI_ADMIN_USERNAME=admin + +# This is the default admin password to allow an administrator to login to ARI bypassing all security. +ARI_ADMIN_PASSWORD=$aripass + +HERE +} +