diff --git a/dev/libvirt-bootstrap.sh b/dev/libvirt-bootstrap.sh index e129177..66eb6de 100644 --- a/dev/libvirt-bootstrap.sh +++ b/dev/libvirt-bootstrap.sh @@ -375,7 +375,7 @@ __check_end_of_life_versions # install_centos() { if [ $DISTRO_MAJOR_VERSION -ge 6 ]; then - yum -y install qemu-kvm libvirt bridge-utils python-libguestfs supervisor || return 1 + yum -y install qemu-kvm libvirt bridge-utils python-libguestfs supervisor cyrus-sasl-md5 || return 1 fi return 0 } @@ -401,6 +401,13 @@ install_centos_post() { echoerror "/etc/libvirt/qemu.conf not found. Exiting..." exit 1 fi + if [ -f /etc/sasl2/libvirt.conf ]; then + sed -i 's/: gssapi/: digest-md5/g' /etc/sasl2/libvirt.conf + sed -i 's/#sasldb_path/sasldb_path/g' /etc/sasl2/libvirt.conf + else + echoerror "/etc/sasl2/libvirt.conf not found. Exiting..." + exit 1 + fi if [ $DISTRO_MAJOR_VERSION -lt 7 ]; then if [ -f /etc/supervisord.conf ]; then curl https://raw.githubusercontent.com/retspen/webvirtcloud/master/conf/daemon/gstfsd > /usr/local/bin/gstfsd diff --git a/webvirtcloud/settings.py.template b/webvirtcloud/settings.py.template index 0effb8e..e1f3c20 100644 --- a/webvirtcloud/settings.py.template +++ b/webvirtcloud/settings.py.template @@ -45,7 +45,7 @@ MIDDLEWARE_CLASSES = ( ) AUTHENTICATION_BACKENDS = ( - #'django.contrib.auth.backends.RemoteUserBackend', + 'django.contrib.auth.backends.RemoteUserBackend', #'accounts.backends.MyRemoteUserBackend', )