souci lors de la synchronisation azure ad

Vous avez trouvé un bug dans l'application (dernière version stable ou bêta): Décrivez le ici afin que la correction soit intégrée a la prochaine version.
Répondre
fabrice
Gsup LEVEL 7
Messages : 378
Enregistré le : mar. 11 mars 2014 12:01

Bonjour, lors de la synchronisation Azure les utilisateurs ne se créer pas

j'ai lancé la commande sur le serveur et voici le retour de la commande :

Code : Tout sélectionner

php /var/www/html/core/azure_ad.php
php.ini location : /etc/php/8.2/cli/php.ini
        <div class="page-header position-relative">
            <h1 class="page-title text-primary-m2">
                <i class="fa fa-sync"></i>
                Synchronisation : Entra ID > GestSup
            </h1>
        </div>

        <button onclick='window.location.href="index.php?page=admin&amp;subpage=user&amp;azure_ad=1&amp;action=simul"' type="submit" class="btn btn-success">
            <i class="fa fa-flask"></i>
          Lancer une simulation
        </button>
        <button onclick='window.location.href="index.php?page=admin&amp;subpage=user&amp;azure_ad=1&amp;action=run"' type="submit" class="btn btn-warning">
            <i class="fa fa-bolt text-white"></i>
            <span class="text-white">Lancer la synchronisation</span>
        </button>
        <button onclick='window.location.href="index.php?page=admin&subpage=user"' type="submit" class="btn btn-primary btn-danger">
            <i class="fa fa-reply"></i>
            Retour
        </button>

    <div class="mt-4"></div><h5><i class="fa fa-book text-success"></i> Vérification des annuaires :</h5><ul><li>ID locataire 1 : opacoise</li><li>Nombre d'utilisateurs trouvés dans Entra ID : 1381</li><li>Nombre d'utilisateurs trouvés dans GestSup : 1781</li><li>Date : 18/12/2025 14:14:53</li></ul><h5><i class="fa fa-edit text-warning"></i> Modifications à apporter dans GestSup : </h5><div class="ml-4"><i class="fa fa-sync text-warning"></i> <i class="fa fa-user text-warning"></i> Mise à jour du mail pour marimany@opacoise.fr <br /><i class="fa fa-sync text-warning"></i> <i class="fa fa-users text-warning"></i> Mise à jour du service DSI - Développement pour marimany@opacoise.fr<br />PHP Fatal error:  Uncaught PDOException: SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'user_id' cannot be null in /var/www/html/core/azure_ad.php:639
Stack trace:
#0 /var/www/html/core/azure_ad.php(639): PDOStatement->execute()
#1 {main}
merci
OS:Linuxgestsup4.15.0-213-generic#224-
MariaDB:10.4.31-MariaDB-1:10.4.31+maria~ubu1804(base:bsup5245.5Mo)
PHP:8.2.6(/etc/php/8.2/apache2/php.ini)
GestSup:3.2.52
Avatar du membre
Flox
Administrateur du site
Messages : 9790
Enregistré le : jeu. 21 juin 2012 19:00

Bonjour,

pouvez-vous mettre à jour votre application et réessayer.

Cdt
GestSup: 3.2.53 | Debian: 12 | Apache: 2.4.59 | MariaDB: 11.5.2 | PHP: 8.3 | https://doc.gestsup.fr/
fabrice
Gsup LEVEL 7
Messages : 378
Enregistré le : mar. 11 mars 2014 12:01

je suis en version 3.2.58
OS:Linuxgestsup4.15.0-213-generic#224-
MariaDB:10.4.31-MariaDB-1:10.4.31+maria~ubu1804(base:bsup5245.5Mo)
PHP:8.2.6(/etc/php/8.2/apache2/php.ini)
GestSup:3.2.52
fabrice
Gsup LEVEL 7
Messages : 378
Enregistré le : mar. 11 mars 2014 12:01

j'ai supprimé le compte qui posait problème et refais une synchronisation

c'est bon
OS:Linuxgestsup4.15.0-213-generic#224-
MariaDB:10.4.31-MariaDB-1:10.4.31+maria~ubu1804(base:bsup5245.5Mo)
PHP:8.2.6(/etc/php/8.2/apache2/php.ini)
GestSup:3.2.52
Répondre