def set_pw(isdsAppliance, newPassword, oldPassword, sessionTimeout='30',
    check_mode=False, force=False):
    """
    Set password for admin user (super user for appliance)
    """
    warnings = [
        'Password change requested - cannot query existing password for idempotency check.'
        ]
    if check_mode is True:
        return isdsAppliance.create_return_object(changed=True, warnings=
            warnings)
    else:
        json_data = {'oldPassword': oldPassword, 'newPassword': newPassword,
            'confirmPassword': newPassword, 'sessionTimeout': sessionTimeout}
        return isdsAppliance.invoke_put('Setting admin password',
            '/admin_cfg', json_data, warnings=warnings)
