Categories

  • 631 Topics
    2k Posts
    G
    @Promenade1037 said in i-doit update from 35 to 36 fails with permissions issues: Answering my own question, I reviewed /var/log/messages and found the following entry: "SELinux is preventing /usr/sbin/php-fpm from write access on the directory /var/www/html." Once I disabled SELinux, the update was able to proceed as usual. That is the worst you can do to fix this problem: turn off security. And worse: disable it and not even set it to permissive mode instead. If the SeLinux labels are not correct anymore, fix the SeLinux labels. Do not disable SeLinux. The installer as well as the instructions for the manual installation set the directory to a writable selinux context. So the first question to ask would be why the labels in your installation don't fit anymore?
  • 4k Topics
    16k Posts
    Michael HuhnM
    @prog eine Migration ist erst vollständig, wenn neben der Datenbank auch die Dateien übertragen werden. Wurde nur der Datenbank-Dump kopiert und i-doit frisch installiert, fehlt die alte src/config.inc.php und genau daran hängt das Anmeldeproblem. Darin steht ein Krypto-Wert ($g_crypto_hash), der bei der Installation einmalig erzeugt wird. i-doit mischt ihn vor der Prüfung in jedes Passwort ein und verschlüsselt damit auch die AD/LDAP-Verbindungspasswörter. Eine Neuinstallation hat einen anderen Wert, deshalb scheitern lokale Anmeldung (trotzidentischem Hash) und AD-Bind. Das erklärt, warum der lokale Admin nach dem Reset-Skript wieder geht, die AD-Benutzer aber weiter scheitern. Sauberster Weg: die alte src/config.inc.php übernehmen. Die Migrationsanleitung sieht das vor, sie überträgt Dateien und Datenbank: https://kb.i-doit.com/en/upgrades-and-migrations/migration-on-linux.html Falls die alte config.inc.php nicht mehr vorhanden ist: Der lokale Admin ist bereits zurückgesetzt. Für die AD-Anmeldung tragen Sie das Verbindungspasswort im jeweiligen LDAP/AD-Verzeichnis erneut ein und speichern. Dann wird es mit dem neuen Krypto-Wert verschlüsselt und der Bind funktioniert wieder.