Open Source Mobile Device Management?

I would like to ask if someone of you know an open source MDM and if we could use it under NS ?

2 Likes

Now that would be an interesting functionality. I know Meraki but it is a commercial, cloud based system by cisco. maybe there is something similar available as open source solution…

found:

Furthermore this one looks interesting:

3 Likes

Rob this looks very nice, thank you for the infos. :grinning: - FLYVE MDM - How it works

Looking forward to your howto on installing it on NS with the GLPI module… :smiley:
Only thing that concerns me a bit is the need of an agent running on the mobile device. For corporate mobile devices this isn’t a problem but I see great opportunities in BYOD (bring your own device) environments. But in BYOD scenario’s, an agent running on a personal phone or tablet might be a problem.

This would be the main target for me but lets see how it works…

Is it possible to update GLPI to ver 9.2.1 ?

@stephdl, is it possible to give your GLPI module an update?

I’m based on epel, where I could find the version 9.2.1 @fausp

I found 9.2 in remi repo: https://blog.remirepo.net/post/2017/09/26/GLPI-version-9.2-en

yum --enablerepo=remi,remi-test install glpi

my concern is the remi-test

You need to install php56 , definitively no way

First, you need to install a version of PHP ≥ 5.6, following the Wizard explanation (installation as Single version), then

So is this the end for the Flyve MDM Plugin for GLPI on NethServer ?

My Version:
    [root@infra02 ~]# php -r \@phpinfo\(\)\; | grep 'PHP Version' -m 1
    PHP Version => 5.4.16

You could look after php ugrade and find if the way is conform to your needs

Normally we use php software collection, but here the rpm calls the php56 as dependencies, therefore no chance to get it easily

1 Like

Nextcloud shows me:

grafik

7.1.8 ?

Nextcloud 13 uses PHP 7.1 via FPM with the package nethserver-rh-php71-php-fpm.

http://php.net/manual/install.fpm.php

You may try to install nethserver-rh-php56-php-fpm and change the glpi httpd conf to use it but I don’t know if it works, never tried:

<FilesMatch \.php$>
            SetHandler "proxy:fcgi://127.0.0.1:9000"
</FilesMatch>

Or use php-scl, then you have to set the port to 9056.

EDIT:

I just tried it and it seems to work.

Install everything needed:

yum --enablerepo=remi,remi-test install glpi nethserver-mysql rh-php56-php-mysql rh-php56-php-mbstring rh-php56-php-gd

In the /etc/httpd/conf.d/glpi.conf add the above snippet to the two <directory> directives and allow your clients ip to install:

<Directory /usr/share/glpi>
    Options None
    AllowOverride Limit Options FileInfo

    <IfModule mod_authz_core.c>
        Require all granted
    </IfModule>
    <IfModule !mod_authz_core.c>
        Order deny,allow
        Allow from all
    </IfModule>

    <FilesMatch \.php$>
            SetHandler "proxy:fcgi://127.0.0.1:9000"
    </FilesMatch>

</Directory>

<Directory /usr/share/glpi/install>
    # Install is only allowed via local access (from the GLPI server).
    # Add your IP address if you need it for remote installation,
    # but remember to remove it after installation for security.

    <IfModule mod_authz_core.c>
        # Apache 2.4
        Require local
        Require ip CLIENT_IP_TO_ALLOW_INSTALLATION
    </IfModule>
    <IfModule !mod_authz_core.c>
        # Apache 2.2
        Order Deny,Allow
        Deny from All
        Allow from 127.0.0.1
        Allow from ::1
    </IfModule>

    ErrorDocument 403 "<p><b>Restricted area.</b><br />Only local access allowed.<br />Check your configuration or contact your administrator.</p>"

    <IfModule mod_php5.c>
        # migration could be very long
        php_value max_execution_time 0
        php_value memory_limit -1
    </IfModule>

    <FilesMatch \.php$>
            SetHandler "proxy:fcgi://127.0.0.1:9000"
    </FilesMatch>

</Directory>

Then restart the services:

systemctl restart httpd
systemctl restart rh-php56-php-fpm

Then browse to https://YOURNETHSERVER/glpi and install…

2 Likes

Awesome, you are working like a machine… :sweat_smile:

I wil try that out, maybe tomorrow… Thank you very much…

1 Like
Error: Package: php-sabre-xml-1.5.0-2.el7.remi.noarch (remi)
           Requires: php(language) >= 5.5.5
           Removing: php-common-5.4.16-43.el7_4.x86_64 (@updates)
               php(language) = 5.4.16
           Updated By: php-common-5.4.45-14.el7.remi.x86_64 (remi)
               php(language) = 5.4.45
           Available: php-common-5.4.16-42.el7.x86_64 (base)
               php(language) = 5.4.16
           Available: php-common-5.4.16-43.el7_4.1.x86_64 (updates)
               php(language) = 5.4.16
           Available: php-common-5.4.45-13.el7.remi.x86_64 (remi)
               php(language) = 5.4.45
Error: Package: php-zendframework-zend-serializer-2.8.1-1.el7.remi.noarch (remi)
           Requires: php(language) >= 5.6

sure that your VM is not upgraded to php56, I got this following your commands

1 Like

[root@infra02 ~]# yum --enablerepo=remi,remi-test install glpi nethserver-mysql rh-php56-php-mysql rh-php56-php-mbstring rh-php56-php-gd

===================================================================================================================================
 Package                                       Arch              Version                           Repository                 Size
===================================================================================================================================
Installing:
 glpi                                          noarch            0.90.5-1.el7                      epel                      5.9 M
 rh-php56-php-gd                               x86_64            5.6.25-1.el7                      centos-sclo-rh            158 k
 rh-php56-php-mbstring                         x86_64            5.6.25-1.el7                      centos-sclo-rh            519 k
 rh-php56-php-mysqlnd                          x86_64            5.6.25-1.el7                      centos-sclo-rh            185 k
Installing for dependencies:
 compat-libtidy                                x86_64            0.99.0-37.20091203.el7            epel                      133 k
 gnu-free-fonts-common                         noarch            20120503-8.el7                    base                      127 k
 gnu-free-sans-fonts                           noarch            20120503-8.el7                    base                      1.3 M
 libc-client                                   x86_64            2007f-16.el7                      epel                      562 k
 liblzf                                        x86_64            3.6-7.el7                         epel                       22 k
 libvpx                                        x86_64            1.3.0-5.el7_0                     base                      498 k
 php-IDNA_Convert                              noarch            0.8.0-2.el7                       epel                       36 k
 php-PHPMailer                                 noarch            5.2.26-1.el7                      epel                      135 k
 php-ZendFramework2-Authentication             noarch            2.4.11-1.el7                      epel                       34 k
 php-ZendFramework2-Cache                      noarch            2.4.11-1.el7                      epel                       76 k
 php-ZendFramework2-Captcha                    noarch            2.4.11-1.el7                      epel                       18 k
 php-ZendFramework2-Code                       noarch            2.4.11-1.el7                      epel                       67 k
 php-ZendFramework2-Config                     noarch            2.4.11-1.el7                      epel                       24 k
 php-ZendFramework2-Console                    noarch            2.4.11-1.el7                      epel                       40 k
 php-ZendFramework2-Crypt                      noarch            2.4.11-1.el7                      epel                       34 k
 php-ZendFramework2-Db                         noarch            2.4.11-1.el7                      epel                      111 k
 php-ZendFramework2-Di                         noarch            2.4.11-1.el7                      epel                       38 k
 php-ZendFramework2-Escaper                    noarch            2.4.11-1.el7                      epel                       12 k
 php-ZendFramework2-EventManager               noarch            2.4.11-1.el7                      epel                       22 k
 php-ZendFramework2-Feed                       noarch            2.4.11-1.el7                      epel                       79 k
 php-ZendFramework2-Filter                     noarch            2.4.11-1.el7                      epel                       50 k
 php-ZendFramework2-Form                       noarch            2.4.11-1.el7                      epel                       80 k
 php-ZendFramework2-Http                       noarch            2.4.11-1.el7                      epel                       79 k
 php-ZendFramework2-I18n                       noarch            2.4.11-1.el7                      epel                       99 k
 php-ZendFramework2-InputFilter                noarch            2.4.11-1.el7                      epel                       22 k
 php-ZendFramework2-Json                       noarch            2.4.11-1.el7                      epel                       34 k
 php-ZendFramework2-Ldap                       noarch            2.4.11-1.el7                      epel                       50 k
 php-ZendFramework2-Loader                     noarch            2.4.11-1.el7                      epel                       19 k
 php-ZendFramework2-Log                        noarch            2.4.11-1.el7                      epel                       38 k
 php-ZendFramework2-Mail                       noarch            2.4.11-1.el7                      epel                       76 k
 php-ZendFramework2-Math                       noarch            2.4.11-1.el7                      epel                       18 k
 php-ZendFramework2-Mime                       noarch            2.4.11-1.el7                      epel                       17 k
 php-ZendFramework2-ModuleManager              noarch            2.4.11-1.el7                      epel                       29 k
 php-ZendFramework2-Mvc                        noarch            2.4.11-1.el7                      epel                       88 k
 php-ZendFramework2-Navigation                 noarch            2.4.11-1.el7                      epel                       24 k
 php-ZendFramework2-Paginator                  noarch            2.4.11-1.el7                      epel                       24 k
 php-ZendFramework2-Permissions-Acl            noarch            2.4.11-1.el7                      epel                       21 k
 php-ZendFramework2-Serializer                 noarch            2.4.11-1.el7                      epel                       22 k
 php-ZendFramework2-Server                     noarch            2.4.11-1.el7                      epel                       24 k
 php-ZendFramework2-ServiceManager             noarch            2.4.11-1.el7                      epel                       24 k
 php-ZendFramework2-Session                    noarch            2.4.11-1.el7                      epel                       37 k
 php-ZendFramework2-Stdlib                     noarch            2.4.11-1.el7                      epel                       53 k
 php-ZendFramework2-Text                       noarch            2.4.11-1.el7                      epel                       27 k
 php-ZendFramework2-Uri                        noarch            2.4.11-1.el7                      epel                       21 k
 php-ZendFramework2-Validator                  noarch            2.4.11-1.el7                      epel                      120 k
 php-ZendFramework2-Version                    noarch            2.4.11-1.el7                      epel                       10 k
 php-ZendFramework2-View                       noarch            2.4.11-1.el7                      epel                       85 k
 php-ZendFramework2-common                     noarch            2.4.11-1.el7                      epel                       75 k
 php-bcmath                                    x86_64            5.4.16-43.el7_4.1                 updates                    57 k
 php-doctrine-annotations                      noarch            1.2.7-4.el7                       epel                       28 k
 php-doctrine-cache                            noarch            1.5.4-1.el7                       epel                       23 k
 php-doctrine-collections                      noarch            1.3.0-2.el7                       epel                       17 k
 php-doctrine-common                           noarch            2.5.3-3.el7                       epel                       51 k
 php-doctrine-inflector                        noarch            1.1.0-4.el7                       epel                       12 k
 php-doctrine-lexer                            noarch            1.0.1-8.el7                       epel                      9.8 k
 php-fedora-autoloader                         noarch            1.0.0-1.el7                       epel                      9.6 k
 php-gd                                        x86_64            5.4.16-43.el7_4.1                 updates                   127 k
 php-htmLawed                                  noarch            1.1.21-1.el7                      epel                      102 k
 php-imap                                      x86_64            5.4.16-7.el7                      epel                       38 k
 php-ircmaxell-random-lib                      noarch            1.2.0-1.el7                       epel                       20 k
 php-ircmaxell-security-lib                    noarch            1.1.0-4.el7                       epel                       13 k
 php-ldap                                      x86_64            5.4.16-43.el7_4.1                 updates                    52 k
 php-mbstring                                  x86_64            5.4.16-43.el7_4.1                 updates                   505 k
 php-mcrypt                                    x86_64            5.4.16-7.el7                      epel                       20 k
 php-mysql                                     x86_64            5.4.16-43.el7_4.1                 updates                   101 k
 php-password-compat                           noarch            1.0.4-1.el7                       epel                       10 k
 php-pdo                                       x86_64            5.4.16-43.el7_4.1                 updates                    99 k
 php-pear                                      noarch            1:1.9.4-21.el7                    base                      357 k
 php-pear-CAS                                  noarch            1.3.5-1.el7                       epel                       70 k
 php-pecl-igbinary                             x86_64            1.2.1-1.el7                       epel                       38 k
 php-pecl-lzf                                  x86_64            1.6.2-4.el7                       epel                       13 k
 php-process                                   x86_64            5.4.16-43.el7_4.1                 updates                    56 k
 php-simplepie                                 noarch            1.3.1-4.el7                       epel                      463 k
 php-symfony-class-loader                      noarch            2.8.12-2.el7                      epel                       26 k
 php-symfony-common                            noarch            2.8.12-2.el7                      epel                      124 k
 php-tcpdf                                     noarch            6.2.13-1.el7                      epel                      2.1 M
 php-tidy                                      x86_64            5.4.16-7.el7                      epel                       23 k
 php-zendframework-zendxml                     noarch            1.0.2-2.el7                       epel                       10 k
 php-zetacomponents-base                       noarch            1.9-2.el7                         epel                      229 k
 php-zetacomponents-graph                      noarch            1.5.2-3.el7                       epel                      134 k
 rh-php56-php-common                           x86_64            5.6.25-1.el7                      centos-sclo-rh            742 k
 rh-php56-php-pdo                              x86_64            5.6.25-1.el7                      centos-sclo-rh            100 k
 rh-php56-php-pecl-jsonc                       x86_64            1.3.6-3.el7                       centos-sclo-rh             44 k
 rh-php56-runtime                              x86_64            2.3-1.el7                         centos-sclo-rh            1.1 M
 t1lib                                         x86_64            5.1.2-14.el7                      base                      166 k

Transaction Summary
===================================================================================================================================
Install  4 Packages (+85 Dependent packages)

Total download size: 18 M
Installed size: 91 M
Is this ok [y/d/N]:
1 Like

You are right, I missed the remi repo install and so the epel version was taken. My fault. Sorry @fausp, this does not help you. Nethserver requires php54 and gpli wants php56 so I have no solution at the moment.

1 Like

I know remi (thank to the fosdem) if he uses the php56 and not the software collection (He is one of the best contributors), he surely gets a good reason

1 Like