VirtualBox

Changeset 41365 in vbox for trunk/src/VBox/Installer/linux


Ignore:
Timestamp:
May 21, 2012 12:48:57 PM (13 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
78057
Message:

Linux/Solaris installers: Added authentication method + PW hash to webservice configuration.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Installer/linux/vboxweb-service.sh.in

    r40130 r41365  
    3535if [ -n "$INSTALL_DIR" ]; then
    3636    binary="$INSTALL_DIR/vboxwebsrv"
     37    vboxmanage="$INSTALL_DIR/VBoxManage"
    3738else
    3839    binary="/usr/lib/%PACKAGE%/vboxwebsrv"
     40    vboxmanage="/usr/lib/%PACKAGE%/VBoxManage"
    3941fi
    4042
     
    308310        [ -n "$VBOXWEB_LOGSIZE" ]        && PARAMS="$PARAMS -S $VBOXWEB_LOGSIZE"
    309311        [ -n "$VBOXWEB_LOGINTERVAL" ]    && PARAMS="$PARAMS -I $VBOXWEB_LOGINTERVAL"
     312        # set authentication method + password hash
     313        if [ -n "$VBOXWEB_AUTH_LIBRARY" ]; then
     314            vboxmanage setproperty websrvauthlibrary $VBOXWEB_AUTH_LIBRARY
     315            if [ $? -ne 0 ]; then
     316                fail_msg "Error setting webservice authentication library to $VBOXWEB_AUTH_LIBRARY"
     317            fi
     318        fi
     319        if [ -n "$VBOXWEB_AUTH_PWHASH" ]; then
     320            vboxmanage setextradata global VBoxAuthSimple/users/$VBOXWEB_USER $VBOXWEB_AUTH_PWHASH
     321            if [ $? -ne 0 ]; then
     322                fail_msg "Error setting webservice password hash"
     323            fi
     324        fi
    310325        # prevent inheriting this setting to VBoxSVC
    311326        unset VBOX_RELEASE_LOG_DEST
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette