Mantis

[Resolved] Base de donnée utilisateur unique pour plusieurs mantis

Posted by tnavarro 
[Resolved] Base de donnée utilisateur unique pour plusieurs mantis
March 03, 2009 10:57AM
Bonjour,

J'utilise 3 mantis pour des applications totalement différentes (ensemble de projets non communs).

Les utilisateurs se connectant à ces bases sont les mêmes.

est il possible d'avoir 1 seule base de données utilisateur permettant ainsi à un user de se connecter à tous les mantis avec le même login et mot de passe et surtout permettre s'il y a une modif du compte (login, mot de passe) que ce soit automatiquement pris en compte pour les 3 mantis.

Version utiliser mantis 116

Merci d'avance pour vos réponses
Re: Base de donnée utilisateur unique pour plusieurs mantis
March 03, 2009 11:54AM
Oui il faut que tous les mantis soient dans la même base de données et différencier chaque mantis par le nom des tables :

Language: PHP
####################################### # Mantis Database Table Variables #######################################   # --- table prefix ---------------- $g_db_table_prefix = &<a href="http://bugtracker.morinie.fr/mantis/view.php?id=039" target="_blank">#039</a>;mantis&<a href="http://bugtracker.morinie.fr/mantis/view.php?id=039" target="_blank">#039</a>;; $g_db_table_suffix = &<a href="http://bugtracker.morinie.fr/mantis/view.php?id=039" target="_blank">#039</a>;_table&<a href="http://bugtracker.morinie.fr/mantis/view.php?id=039" target="_blank">#039</a>;;   # --- table names ----------------- $g_mantis_bug_file_table = &<a href="http://bugtracker.morinie.fr/mantis/view.php?id=039" target="_blank">#039</a>;%db_table_prefix%_bug_file%db_table_suffix%&<a href="http://bugtracker.morinie.fr/mantis/view.php?id=039" target="_blank">#039</a>;; $g_mantis_bug_history_table = &<a href="http://bugtracker.morinie.fr/mantis/view.php?id=039" target="_blank">#039</a>;%db_table_prefix%_bug_history%db_table_suffix%&<a href="http://bugtracker.morinie.fr/mantis/view.php?id=039" target="_blank">#039</a>;; $g_mantis_bug_monitor_table = &<a href="http://bugtracker.morinie.fr/mantis/view.php?id=039" target="_blank">#039</a>;%db_table_prefix%_bug_monitor%db_table_suffix%&<a href="http://bugtracker.morinie.fr/mantis/view.php?id=039" target="_blank">#039</a>;; $g_mantis_bug_relationship_table = &<a href="http://bugtracker.morinie.fr/mantis/view.php?id=039" target="_blank">#039</a>;%db_table_prefix%_bug_relationship%db_table_suffix%&<a href="http://bugtracker.morinie.fr/mantis/view.php?id=039" target="_blank">#039</a>;; $g_mantis_bug_table = &<a href="http://bugtracker.morinie.fr/mantis/view.php?id=039" target="_blank">#039</a>;%db_table_prefix%_bug%db_table_suffix%&<a href="http://bugtracker.morinie.fr/mantis/view.php?id=039" target="_blank">#039</a>;; $g_mantis_bug_tag_table = &<a href="http://bugtracker.morinie.fr/mantis/view.php?id=039" target="_blank">#039</a>;%db_table_prefix%_bug_tag%db_table_suffix%&<a href="http://bugtracker.morinie.fr/mantis/view.php?id=039" target="_blank">#039</a>;; $g_mantis_bug_text_table = &<a href="http://bugtracker.morinie.fr/mantis/view.php?id=039" target="_blank">#039</a>;%db_table_prefix%_bug_text%db_table_suffix%&<a href="http://bugtracker.morinie.fr/mantis/view.php?id=039" target="_blank">#039</a>;; $g_mantis_bugnote_table = &<a href="http://bugtracker.morinie.fr/mantis/view.php?id=039" target="_blank">#039</a>;%db_table_prefix%_bugnote%db_table_suffix%&<a href="http://bugtracker.morinie.fr/mantis/view.php?id=039" target="_blank">#039</a>;; $g_mantis_bugnote_text_table = &<a href="http://bugtracker.morinie.fr/mantis/view.php?id=039" target="_blank">#039</a>;%db_table_prefix%_bugnote_text%db_table_suffix%&<a href="http://bugtracker.morinie.fr/mantis/view.php?id=039" target="_blank">#039</a>;; $g_mantis_news_table = &<a href="http://bugtracker.morinie.fr/mantis/view.php?id=039" target="_blank">#039</a>;%db_table_prefix%_news%db_table_suffix%&<a href="http://bugtracker.morinie.fr/mantis/view.php?id=039" target="_blank">#039</a>;; $g_mantis_project_category_table = &<a href="http://bugtracker.morinie.fr/mantis/view.php?id=039" target="_blank">#039</a>;%db_table_prefix%_project_category%db_table_suffix%&<a href="http://bugtracker.morinie.fr/mantis/view.php?id=039" target="_blank">#039</a>;; $g_mantis_project_file_table = &<a href="http://bugtracker.morinie.fr/mantis/view.php?id=039" target="_blank">#039</a>;%db_table_prefix%_project_file%db_table_suffix%&<a href="http://bugtracker.morinie.fr/mantis/view.php?id=039" target="_blank">#039</a>;; $g_mantis_project_table = &<a href="http://bugtracker.morinie.fr/mantis/view.php?id=039" target="_blank">#039</a>;%db_table_prefix%_project%db_table_suffix%&<a href="http://bugtracker.morinie.fr/mantis/view.php?id=039" target="_blank">#039</a>;; $g_mantis_project_user_list_table = &<a href="http://bugtracker.morinie.fr/mantis/view.php?id=039" target="_blank">#039</a>;%db_table_prefix%_project_user_list%db_table_suffix%&<a href="http://bugtracker.morinie.fr/mantis/view.php?id=039" target="_blank">#039</a>;; $g_mantis_project_version_table = &<a href="http://bugtracker.morinie.fr/mantis/view.php?id=039" target="_blank">#039</a>;%db_table_prefix%_project_version%db_table_suffix%&<a href="http://bugtracker.morinie.fr/mantis/view.php?id=039" target="_blank">#039</a>;; $g_mantis_tag_table = &<a href="http://bugtracker.morinie.fr/mantis/view.php?id=039" target="_blank">#039</a>;%db_table_prefix%_tag%db_table_suffix%&<a href="http://bugtracker.morinie.fr/mantis/view.php?id=039" target="_blank">#039</a>;; $g_mantis_user_table = &<a href="http://bugtracker.morinie.fr/mantis/view.php?id=039" target="_blank">#039</a>;%db_table_prefix%_user%db_table_suffix%&<a href="http://bugtracker.morinie.fr/mantis/view.php?id=039" target="_blank">#039</a>;; $g_mantis_user_profile_table = &<a href="http://bugtracker.morinie.fr/mantis/view.php?id=039" target="_blank">#039</a>;%db_table_prefix%_user_profile%db_table_suffix%&<a href="http://bugtracker.morinie.fr/mantis/view.php?id=039" target="_blank">#039</a>;; $g_mantis_user_pref_table = &<a href="http://bugtracker.morinie.fr/mantis/view.php?id=039" target="_blank">#039</a>;%db_table_prefix%_user_pref%db_table_suffix%&<a href="http://bugtracker.morinie.fr/mantis/view.php?id=039" target="_blank">#039</a>;; $g_mantis_user_print_pref_table = &<a href="http://bugtracker.morinie.fr/mantis/view.php?id=039" target="_blank">#039</a>;%db_table_prefix%_user_print_pref%db_table_suffix%&<a href="http://bugtracker.morinie.fr/mantis/view.php?id=039" target="_blank">#039</a>;; $g_mantis_custom_field_project_table = &<a href="http://bugtracker.morinie.fr/mantis/view.php?id=039" target="_blank">#039</a>;%db_table_prefix%_custom_field_project%db_table_suffix%&<a href="http://bugtracker.morinie.fr/mantis/view.php?id=039" target="_blank">#039</a>;; $g_mantis_custom_field_table = &<a href="http://bugtracker.morinie.fr/mantis/view.php?id=039" target="_blank">#039</a>;%db_table_prefix%_custom_field%db_table_suffix%&<a href="http://bugtracker.morinie.fr/mantis/view.php?id=039" target="_blank">#039</a>;; $g_mantis_custom_field_string_table = &<a href="http://bugtracker.morinie.fr/mantis/view.php?id=039" target="_blank">#039</a>;%db_table_prefix%_custom_field_string%db_table_suffix%&<a href="http://bugtracker.morinie.fr/mantis/view.php?id=039" target="_blank">#039</a>;; $g_mantis_upgrade_table = &<a href="http://bugtracker.morinie.fr/mantis/view.php?id=039" target="_blank">#039</a>;%db_table_prefix%_upgrade%db_table_suffix%&<a href="http://bugtracker.morinie.fr/mantis/view.php?id=039" target="_blank">#039</a>;; $g_mantis_filters_table = &<a href="http://bugtracker.morinie.fr/mantis/view.php?id=039" target="_blank">#039</a>;%db_table_prefix%_filters%db_table_suffix%&<a href="http://bugtracker.morinie.fr/mantis/view.php?id=039" target="_blank">#039</a>;; $g_mantis_sponsorship_table = &<a href="http://bugtracker.morinie.fr/mantis/view.php?id=039" target="_blank">#039</a>;%db_table_prefix%_sponsorship%db_table_suffix%&<a href="http://bugtracker.morinie.fr/mantis/view.php?id=039" target="_blank">#039</a>;; $g_mantis_tokens_table = &<a href="http://bugtracker.morinie.fr/mantis/view.php?id=039" target="_blank">#039</a>;%db_table_prefix%_tokens%db_table_suffix%&<a href="http://bugtracker.morinie.fr/mantis/view.php?id=039" target="_blank">#039</a>;; $g_mantis_project_hierarchy_table = &<a href="http://bugtracker.morinie.fr/mantis/view.php?id=039" target="_blank">#039</a>;%db_table_prefix%_project_hierarchy%db_table_suffix%&<a href="http://bugtracker.morinie.fr/mantis/view.php?id=039" target="_blank">#039</a>;; $g_mantis_config_table = &<a href="http://bugtracker.morinie.fr/mantis/view.php?id=039" target="_blank">#039</a>;%db_table_prefix%_config%db_table_suffix%&<a href="http://bugtracker.morinie.fr/mantis/view.php?id=039" target="_blank">#039</a>;; $g_mantis_database_table = &<a href="http://bugtracker.morinie.fr/mantis/view.php?id=039" target="_blank">#039</a>;%db_table_prefix%_database%db_table_suffix%&<a href="http://bugtracker.morinie.fr/mantis/view.php?id=039" target="_blank">#039</a>;; $g_mantis_email_table = &<a href="http://bugtracker.morinie.fr/mantis/view.php?id=039" target="_blank">#039</a>;%db_table_prefix%_email%db_table_suffix%&<a href="http://bugtracker.morinie.fr/mantis/view.php?id=039" target="_blank">#039</a>;;

Si toutes les tables mantis_user_*table ont le même nom, alors ça devrait répondre à la question.

Vincent


Mantis: 1.1.0, 1.1.5, 1.1.1
PHP: 5.0.4
SQL: MySQL 5.0.19
OS: Linux

Please complete your signature with your environment informations.
Enable skype notification here



Edited 1 time(s). Last edit at 03/03/2009 11:56AM by deboutv.
Re: Base de donnée utilisateur unique pour plusieurs mantis
March 05, 2009 03:22PM
eye rolling smiley, je n&#039;ai pas tout saisiconfused smiley

Concretement :

j&#039;ai une base A et une base B

je voudrais que les utilisateurs créés dans la base A soient identiques à la base B, une modif appliquée à un profil de la base A (mot de passe, login, adresse mail) soient aussi valables pour la base B.

comme si il y avait une seule base utilisateurs pour les 2 bases.
Re: Base de donnée utilisateur unique pour plusieurs mantis
March 05, 2009 03:30PM
Mais il faut qu&#039;il n&#039;y ait qu&#039;une seule base A dans laquelle on mets les tables mantis avec un prefix différents pour chaque mantis sauf pour les tables utilisateurs.

Vincent


Mantis: 1.1.0, 1.1.5, 1.1.1
PHP: 5.0.4
SQL: MySQL 5.0.19
OS: Linux

Please complete your signature with your environment informations.
Enable skype notification here
Re: Base de donnée utilisateur unique pour plusieurs mantis
March 05, 2009 04:01PM
smiling bouncing smiley
Je crois que j&#039;ai compris.

Je crée une seule base dans laquelle les tables correspondent à la base A ont le préfix tableA_ par exemple, et ceux de la B tableB_, et une table unique pour les users avec le préfix mantis_ par exemple.

Les deux Mantis (A et B ) pointent sur la même base (via le config_inc.php).

Ensuite dans le config_inc.php du mantis A, je paramètre, par exemple :
Quote

# --- table prefix ----------------
$g_db_table_prefix = &#039;tableA&#039;;
$g_db_table_suffix = &#039;_table&#039;;

$g_db_table_prefixUSER = &#039;mantis&#039;;

# --- table names -----------------
$g_mantis_bug_file_table = &#039;%db_table_prefix%_bug_file%db_table_suffix%&#039;;
$g_mantis_bug_history_table = &#039;%db_table_prefix%_bug_history%db_table_suffix%&#039;;
$g_mantis_bug_monitor_table = &#039;%db_table_prefix%_bug_monitor%db_table_suffix%&#039;;
$g_mantis_bug_relationship_table = &#039;%db_table_prefix%_bug_relationship%db_table_suffix%&#039;;
$g_mantis_bug_table = &#039;%db_table_prefix%_bug%db_table_suffix%&#039;;
$g_mantis_bug_tag_table = &#039;%db_table_prefix%_bug_tag%db_table_suffix%&#039;;
$g_mantis_bug_text_table = &#039;%db_table_prefix%_bug_text%db_table_suffix%&#039;;
$g_mantis_bugnote_table = &#039;%db_table_prefix%_bugnote%db_table_suffix%&#039;;
$g_mantis_bugnote_text_table = &#039;%db_table_prefix%_bugnote_text%db_table_suffix%&#039;;
$g_mantis_news_table = &#039;%db_table_prefix%_news%db_table_suffix%&#039;;
$g_mantis_project_category_table = &#039;%db_table_prefix%_project_category%db_table_suffix%&#039;;
$g_mantis_project_file_table = &#039;%db_table_prefix%_project_file%db_table_suffix%&#039;;
$g_mantis_project_table = &#039;%db_table_prefix%_project%db_table_suffix%&#039;;
$g_mantis_project_user_list_table = &#039;%db_table_prefix%_project_user_list%db_table_suffix%&#039;;
$g_mantis_project_version_table = &#039;%db_table_prefix%_project_version%db_table_suffix%&#039;;
$g_mantis_tag_table = &#039;%db_table_prefix%_tag%db_table_suffix%&#039;;

$g_mantis_user_table = &#039;%db_table_prefixUSER%_user%db_table_suffix%&#039;;

$g_mantis_user_profile_table = &#039;%db_table_prefix%_user_profile%db_table_suffix%&#039;;
$g_mantis_user_pref_table = &#039;%db_table_prefix%_user_pref%db_table_suffix%&#039;;
$g_mantis_user_print_pref_table = &#039;%db_table_prefix%_user_print_pref%db_table_suffix%&#039;;
$g_mantis_custom_field_project_table = &#039;%db_table_prefix%_custom_field_project%db_table_suffix%&#039;;
$g_mantis_custom_field_table = &#039;%db_table_prefix%_custom_field%db_table_suffix%&#039;;
$g_mantis_custom_field_string_table = &#039;%db_table_prefix%_custom_field_string%db_table_suffix%&#039;;
$g_mantis_upgrade_table = &#039;%db_table_prefix%_upgrade%db_table_suffix%&#039;;
$g_mantis_filters_table = &#039;%db_table_prefix%_filters%db_table_suffix%&#039;;
$g_mantis_sponsorship_table = &#039;%db_table_prefix%_sponsorship%db_table_suffix%&#039;;
$g_mantis_tokens_table = &#039;%db_table_prefix%_tokens%db_table_suffix%&#039;;
$g_mantis_project_hierarchy_table = &#039;%db_table_prefix%_project_hierarchy%db_table_suffix%&#039;;
$g_mantis_config_table = &#039;%db_table_prefix%_config%db_table_suffix%&#039;;
$g_mantis_database_table = &#039;%db_table_prefix%_database%db_table_suffix%&#039;;
$g_mantis_email_table = &#039;%db_table_prefix%_email%db_table_suffix%&#039;;

et pour le mantis B,
Quote

# --- table prefix ----------------
$g_db_table_prefix = &#039;tableB&#039;;
$g_db_table_suffix = &#039;_table&#039;;

$g_db_table_prefixUSER = &#039;mantis&#039;;

# --- table names -----------------
$g_mantis_bug_file_table = &#039;%db_table_prefix%_bug_file%db_table_suffix%&#039;;
$g_mantis_bug_history_table = &#039;%db_table_prefix%_bug_history%db_table_suffix%&#039;;
$g_mantis_bug_monitor_table = &#039;%db_table_prefix%_bug_monitor%db_table_suffix%&#039;;
$g_mantis_bug_relationship_table = &#039;%db_table_prefix%_bug_relationship%db_table_suffix%&#039;;
$g_mantis_bug_table = &#039;%db_table_prefix%_bug%db_table_suffix%&#039;;
$g_mantis_bug_tag_table = &#039;%db_table_prefix%_bug_tag%db_table_suffix%&#039;;
$g_mantis_bug_text_table = &#039;%db_table_prefix%_bug_text%db_table_suffix%&#039;;
$g_mantis_bugnote_table = &#039;%db_table_prefix%_bugnote%db_table_suffix%&#039;;
$g_mantis_bugnote_text_table = &#039;%db_table_prefix%_bugnote_text%db_table_suffix%&#039;;
$g_mantis_news_table = &#039;%db_table_prefix%_news%db_table_suffix%&#039;;
$g_mantis_project_category_table = &#039;%db_table_prefix%_project_category%db_table_suffix%&#039;;
$g_mantis_project_file_table = &#039;%db_table_prefix%_project_file%db_table_suffix%&#039;;
$g_mantis_project_table = &#039;%db_table_prefix%_project%db_table_suffix%&#039;;
$g_mantis_project_user_list_table = &#039;%db_table_prefix%_project_user_list%db_table_suffix%&#039;;
$g_mantis_project_version_table = &#039;%db_table_prefix%_project_version%db_table_suffix%&#039;;
$g_mantis_tag_table = &#039;%db_table_prefix%_tag%db_table_suffix%&#039;;

$g_mantis_user_table = &#039;%db_table_prefixUSER%_user%db_table_suffix%&#039;;

$g_mantis_user_profile_table = &#039;%db_table_prefix%_user_profile%db_table_suffix%&#039;;
$g_mantis_user_pref_table = &#039;%db_table_prefix%_user_pref%db_table_suffix%&#039;;
$g_mantis_user_print_pref_table = &#039;%db_table_prefix%_user_print_pref%db_table_suffix%&#039;;
$g_mantis_custom_field_project_table = &#039;%db_table_prefix%_custom_field_project%db_table_suffix%&#039;;
$g_mantis_custom_field_table = &#039;%db_table_prefix%_custom_field%db_table_suffix%&#039;;
$g_mantis_custom_field_string_table = &#039;%db_table_prefix%_custom_field_string%db_table_suffix%&#039;;
$g_mantis_upgrade_table = &#039;%db_table_prefix%_upgrade%db_table_suffix%&#039;;
$g_mantis_filters_table = &#039;%db_table_prefix%_filters%db_table_suffix%&#039;;
$g_mantis_sponsorship_table = &#039;%db_table_prefix%_sponsorship%db_table_suffix%&#039;;
$g_mantis_tokens_table = &#039;%db_table_prefix%_tokens%db_table_suffix%&#039;;
$g_mantis_project_hierarchy_table = &#039;%db_table_prefix%_project_hierarchy%db_table_suffix%&#039;;
$g_mantis_config_table = &#039;%db_table_prefix%_config%db_table_suffix%&#039;;
$g_mantis_database_table = &#039;%db_table_prefix%_database%db_table_suffix%&#039;;
$g_mantis_email_table = &#039;%db_table_prefix%_email%db_table_suffix%&#039;;

c&#039;est çà ?



Edited 1 time(s). Last edit at 03/05/2009 04:02PM by tnavarro.
Re: Base de donnée utilisateur unique pour plusieurs mantis
March 05, 2009 04:13PM
Oui, mais il n&#039;y a pas qu&#039;une seule table qui concerne les utilisateurs.

Vincent


Mantis: 1.1.0, 1.1.5, 1.1.1
PHP: 5.0.4
SQL: MySQL 5.0.19
OS: Linux

Please complete your signature with your environment informations.
Enable skype notification here
Re: Base de donnée utilisateur unique pour plusieurs mantis
March 05, 2009 04:43PM
OK, bien noté,
dès que j&#039;ai terminé avec la mise en œuvre de mes nouvelles installations, j&#039;essaie.

Merci.
Sorry, only registered users may post in this forum.

Click here to login



Online Users

Guests: 9
Record Number of Users: 1 on April 02, 2023
Record Number of Guests: 115 on November 09, 2023
Top Users
Hébergeur : Morinie.Fr