Project

General

Profile

Tâche #31252

Scénario #30897: Lors d’un reconfigure de ScribeAD, les procédures de samba4.sh ne sont jamais exécutées

Appeler "samba_reconfigure" en postservice de ScribeAD

Added by Joël Cuissinat 10 months ago. Updated 9 months ago.

Status:
Fermé
Priority:
Normal
Assigned To:
Start date:
12/01/2020
Due date:
% Done:

100%

Remaining (hours):
0.0

Description

Sur un Seth 2.8.0, l'enchaînement est le suivant :

run-parts: executing /usr/share/eole/postservice/24-test-synchro-with-time-reference reconfigure
run-parts: executing /usr/share/eole/postservice/25-manage-samba reconfigure
run-parts: executing /usr/share/eole/postservice/26-actions reconfigure
run-parts: executing /usr/share/eole/postservice/26-partages reconfigure
run-parts: executing /usr/share/eole/postservice/30-gposcript reconfigure

Associated revisions

Revision 8b55c37e (diff)
Added by Joël Cuissinat 10 months ago

eole-ad-dc-scripts provides 25-manage-samba in container

Ref: #31252

Revision 2d9324c7 (diff)
Added by Joël Cuissinat 10 months ago

eole-ad-dc-scripts : postservice/25-manage-samba -> samba/samba_configure

Ref: #31252

Revision 2ce0a78a (diff)
Added by Joël Cuissinat 10 months ago

eole-ad-dc-scripts : .install don't rename file

Ref: #31252

Revision 34f325c7 (diff)
Added by Joël Cuissinat 10 months ago

eole-ad-dc.mk : copy 25-manage-samba in /usr/share/eole/samba

Ref: #31252

Revision a72390d2 (diff)
Added by Joël Cuissinat 10 months ago

postservice/04-eolead-manage-samba : call "samba_reconfigure" in postservice

Ref: #31252

Revision bcf8a352 (diff)
Added by Joël Cuissinat 10 months ago

eole-ad-dc.mk : copy 25-manage-samba in /usr/share/eole/samba

Ref: #31252

Cherry-picked from eole-ad-dc:34f325c7 [BACKPORT]

Revision 729e45fc (diff)
Added by Joël Cuissinat 10 months ago

eole-ad-dc-scripts provides samba_configure

Ref: #31252 [2.7.1]

Revision d88a51bb (diff)
Added by Joël Cuissinat 10 months ago

eole-ad-dc-scripts provides samba_configure

Ref: #31252 [2.7.2]

Revision a78de2ef
Added by Joël Cuissinat 10 months ago

Merge branch '2.8.0/master'

Conflicts: * eole-ad-dc.mk

Ref: #31252

Revision 3d86b248 (diff)
Added by Joël Cuissinat 10 months ago

postservice/04-eolead-manage-samba : call "samba_reconfigure" in postservice

Ref: #31252 [2.7.1]

Revision 7941e8f7 (diff)
Added by Joël Cuissinat 10 months ago

postservice/04-eolead-manage-samba : only call "samba_reconfigure" if AD is local

Ref: #31252 [2.7.2]

History

#1 Updated by Joël Cuissinat 10 months ago

  • Assigned To set to Joël Cuissinat
run-parts: executing /usr/share/eole/postservice/00-ubuntu-motd reconfigure
run-parts: executing /usr/share/eole/postservice/05-eolead-join-and-sync-ldap reconfigure
run-parts: executing /usr/share/eole/postservice/05-tftp reconfigure
run-parts: executing /usr/share/eole/postservice/06-scribehorus reconfigure
run-parts: executing /usr/share/eole/postservice/07-eolead-wpad reconfigure
run-parts: executing /usr/share/eole/postservice/08-scribe reconfigure
run-parts: executing /usr/share/eole/postservice/10-eolead-inject-password reconfigure
run-parts: executing /usr/share/eole/postservice/26-actions reconfigure
run-parts: executing /usr/share/eole/postservice/26-scribehorus reconfigure
run-parts: executing /usr/share/eole/postservice/30-eole-workstation-manager reconfigure

#2 Updated by Joël Cuissinat 10 months ago

=> à exécuter avant 05-eolead-join-and-sync-ldap

#3 Updated by Joël Cuissinat 10 months ago

Arf, je m'aperçois, qu'un script équivalant est fourni en 2.8.1 pour AmonEcole mais dans /usr/share/eole/samba/samba_configure !

=> je propose d'utiliser ce chemin dans le conteneur dès 2.8.0 ;)

#4 Updated by Joël Cuissinat 10 months ago

  • Status changed from Nouveau to En cours

#5 Updated by Joël Cuissinat 10 months ago

Hum, c'est pas si simple (https://askubuntu.com/questions/33642/rename-a-file-during-install-of-a-debian-package) !

root@addc:~# dpkg -L eole-ad-dc-scripts | grep samba_configure
/usr/share/eole/samba/samba_configure
/usr/share/eole/samba/samba_configure/25-manage-samba

#6 Updated by Joël Cuissinat 10 months ago

  • Status changed from En cours to Résolu
  • % Done changed from 0 to 100

#7 Updated by Joël Cuissinat 10 months ago

Finalement :
  • en 2.8.0 :
    • le script /usr/share/eole/samba/samba_configure est installé dans le conteneur par le paquet eole-ad-dc-scripts
    • le script est appelé (dans le conteneur) à l'instance/reconfigure par /usr/share/eole/postservice/04-eolead-manage-samba
  • en 2.8.1
    • j'utilise le script dédié déjà créé pour AmonEcole (conflit géré dans eole-ad-dc:a78de2ef pour eole-ad-dc.mk)
    • le script est appelé de la même façon qu'en 2.8.0 (merge)
Mais on me signale qu'il faut rétro-porter les modifications jusqu'en 2.7.1 !
  • en 2.7.1 : backport des modifications par cherry-pick (sans le test sur la variable ad_local !)
  • en 2.7.2 : merge depuis 2.7.1 (avec restauration du test sur la variable ad_local !)

#8 Updated by Joël Cuissinat 10 months ago

  • Status changed from Résolu to En cours

#9 Updated by Joël Cuissinat 10 months ago

  • Status changed from En cours to Résolu

#10 Updated by Daniel Dehennin 9 months ago

  • avec aca.scribe-2.8.0-instance-default
    • Suppression de l’entrée DNS samba-tool dns delete addc.domscribe.ac-test.fr 0.168.192.in-addr.arpa 30 PTR addc.domscribe.ac-test.fr
    • Reconfigure
      run-parts: executing /usr/share/eole/postservice/04-eolead-manage-samba reconfigure
      Samba/Seth reconfigure
      * Mise à jour du backend DNS
      Reading domain information
      DNS accounts already exist
      No zone file /var/lib/samba/bind-dns/dns/DOMSCRIBE.AC-TEST.FR.zone
      /usr/sbin/samba_upgradedns:338: DeprecationWarning: The 'warn' method is deprecated, use 'warning' instead
        logger.warn("DNS records will be automatically created")
      DNS records will be automatically created
      DNS partitions already exist
      Finished upgrading DNS
      Gestion des Zones DNS Inversées
         Zone : 0.168.192.in-addr.arpa existe déjà
      Record added successfully
         Création entrée PTR pour 192.168.0.30 ok
      * Active Directory est initialisé, reload la configuration
      Samba/Seth reconfigure end
      
  • aca.scribe-2.7.2-instance-default, pas de zone inverse activée mais le script est bien exécuté
    run-parts: executing /usr/share/eole/postservice/04-eolead-manage-samba reconfigure
    Samba/Seth reconfigure
    * Mise à jour du backend DNS
    Reading domain information
    DNS accounts already exist
    No zone file /var/lib/samba/bind-dns/dns/DOMSCRIBE.AC-TEST.FR.zone
    DNS records will be automatically created
    DNS partitions already exist
    Finished upgrading DNS
    Gestion des Zones DNS Inversées
       Pas de gestion des zones par défaut.
    * Active Directory est initialisé, reload la configuration
    Samba/Seth reconfigure end
    
  • aca.scribe-2.7.1-instance-default, pas de gestion de zone inverse mais le script est bien exécuté
    run-parts: executing /usr/share/eole/postservice/04-eolead-manage-samba reconfigure
    Samba/Seth reconfigure
    * Active Directory est initialisé, reload la configuration
    * Mise à jour du backend DNS
    Reading domain information
    DNS accounts already exist
    No zone file /var/lib/samba/bind-dns/dns/DOMSCRIBE.AC-TEST.FR.zone
    DNS records will be automatically created
    DNS partitions already exist
    Finished upgrading DNS
    Samba/Seth reconfigure end
    

#11 Updated by Daniel Dehennin 9 months ago

  • Status changed from Résolu to Fermé
  • Remaining (hours) set to 0.0

Also available in: Atom PDF