Gestion des utilisateurs

Résolu
GrandLynx Messages postés 16 Date d'inscription mardi 3 juillet 2007 Statut Membre Dernière intervention 22 mai 2012 - 23 oct. 2008 à 11:37
GrandLynx Messages postés 16 Date d'inscription mardi 3 juillet 2007 Statut Membre Dernière intervention 22 mai 2012 - 23 oct. 2008 à 15:49
Bonjour,
j'aimerais savoir s'il y en a qui ont des idées sur la meilleure façon de gérer l'accès d'utilisateur à différentes bases en vba.
actuellement,
on a une table principale à laquelle on ajoute une colonne pour chaque nouvel utilisateur.... c un système qui je le conçois ne mérite pas d'exister!
on est entrain de migrer vers une table dont chaque enregistrement est utilisateur + base
on gagne en souplesse, mais j'aimerais savoir si il n'y a pas mieux!!
merci d'avance

El Grande Lynce

6 réponses

cs_baloc Messages postés 56 Date d'inscription lundi 8 septembre 2008 Statut Membre Dernière intervention 29 octobre 2010
23 oct. 2008 à 12:27
bonjour

peux-tu donner la structure de ton ancienne table et de la nouvelle s'il te plait.

merchi
et une victoire de plus pour Mr canard
3
cs_baloc Messages postés 56 Date d'inscription lundi 8 septembre 2008 Statut Membre Dernière intervention 29 octobre 2010
23 oct. 2008 à 15:34
déjà tu peux voir que tu peux en supprimer un des deux champs ID_ACCESS ou MATRICULE de ta table serveur.
ENTITE est aussi dans ta table user, tu peux le supprimer de ta table serveur.

ensuite, tu peux crée une table autorisation. qui aura 2 clés primaires et un autre champs de type OUI/NON

avec NOM_SERVEUR, MATRICULE, et DROIT. tu auras une ligne par serveur et utilisateur et ses droits dessus.

J'avais pas vu ton champ indicateur...Il représente quoi?

et une victoire de plus pour Mr canard
3
GrandLynx Messages postés 16 Date d'inscription mardi 3 juillet 2007 Statut Membre Dernière intervention 22 mai 2012
23 oct. 2008 à 12:45
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="ProgId" content="Word.Document" />
<meta name="Generator" content="Microsoft Word 11" />
<meta name="Originator" content="Microsoft Word 11" />
<link rel="File-List" href="file:///C:%5CDOCUME%7E1%5C43477513%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml" />
<!--[if gte mso 9]><xml>
<w:WordDocument>
<w:View>Normal</w:View>
<w:Zoom>0</w:Zoom>
<w:PunctuationKerning/>
<w:ValidateAgainstSchemas/>
<w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid>
<w:IgnoreMixedContent>false</w:IgnoreMixedContent>
<w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText>
<w:Compatibility>
<w:BreakWrappedTables/>
<w:SnapToGridInCell/>
<w:WrapTextWithPunct/>
<w:UseAsianBreakRules/>
<w:DontGrowAutofit/>
</w:Compatibility>
<w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel>
</w:WordDocument>
</xml><![endif]-->
<!--[if gte mso 9]><xml>
<w:LatentStyles DefLockedState="false" LatentStyleCount="156">
</w:LatentStyles>
</xml><![endif]-->
<style>
<!--
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{mso-style-parent:"";
margin:0cm;
margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:12.0pt;
font-family:"Times New Roman";
mso-fareast-font-family:"Times New Roman";
mso-ansi-language:FR;
mso-fareast-language:FR;}
@page Section1
{size:612.0pt 792.0pt;
margin:70.85pt 70.85pt 70.85pt 70.85pt;
mso-header-margin:36.0pt;
mso-footer-margin:36.0pt;
mso-paper-source:0;}
div.Section1
{page:Section1;}
-->
</style>
<!--[if gte mso 10]>
<style>
/* Style Definitions */
table.MsoNormalTable
{mso-style-name:"Tableau Normal";
mso-tstyle-rowband-size:0;
mso-tstyle-colband-size:0;
mso-style-noshow:yes;
mso-style-parent:"";
mso-padding-alt:0cm 5.4pt 0cm 5.4pt;
mso-para-margin:0cm;
mso-para-margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:10.0pt;
font-family:"Times New Roman";
mso-ansi-language:#0400;
mso-fareast-language:#0400;
mso-bidi-language:#0400;}
table.MsoTableGrid
{mso-style-name:"Grille du tableau";
mso-tstyle-rowband-size:0;
mso-tstyle-colband-size:0;
border:solid windowtext 1.0pt;
mso-border-alt:solid windowtext .5pt;
mso-padding-alt:0cm 5.4pt 0cm 5.4pt;
mso-border-insideh:.5pt solid windowtext;
mso-border-insidev:.5pt solid windowtext;
mso-para-margin:0cm;
mso-para-margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:10.0pt;
font-family:"Times New Roman";
mso-ansi-language:#0400;
mso-fareast-language:#0400;
mso-bidi-language:#0400;}
</style>
<![endif]-->
Selection,
,

----

NUMERO

,
Numérique

,

----

NOM

,
Texte

,

----

CHEMIN

,
Texte

,

----

DATE_CREATION

,
Date

,

----

TAILLE

,
Numérique

,

----

NUMERO_VERSION

,
Texte

,

----

NB_VERSION

,
Texte

,

----

ETAT

,
Texte

,

----

COMMENTAIRE

,
Texte

,

----

DESCRIPTION

,
Texte

,

----

ENTITE

,
Texte

,

----

id user 1,
,

----

id user 2,
,

----

id user 3,
,

----

etc...


ça c'était l'ancienne structure,
voici la nouvelle
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><meta name="ProgId" content="Word.Document" /><meta name="Generator" content="Microsoft Word 11" /><meta name="Originator" content="Microsoft Word 11" /><link rel="File-List" href="file:///C:%5CDOCUME%7E1%5C43477513%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml" /><!--[if gte mso 9]><xml>
<w:WordDocument>
<w:View>Normal</w:View>
<w:Zoom>0</w:Zoom>
<w:PunctuationKerning/>
<w:ValidateAgainstSchemas/>
<w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid>
<w:IgnoreMixedContent>false</w:IgnoreMixedContent>
<w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText>
<w:Compatibility>
<w:BreakWrappedTables/>
<w:SnapToGridInCell/>
<w:WrapTextWithPunct/>
<w:UseAsianBreakRules/>
<w:DontGrowAutofit/>
</w:Compatibility>
<w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel>
</w:WordDocument>
</xml><![endif]--><!--[if gte mso 9]><xml>
<w:LatentStyles DefLockedState="false" LatentStyleCount="156">
</w:LatentStyles>
</xml><![endif]--><style><!--
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{mso-style-parent:"";
margin:0cm;
margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:12.0pt;
font-family:"Times New Roman";
mso-fareast-font-family:"Times New Roman";
mso-ansi-language:FR;
mso-fareast-language:FR;}
@page Section1
{size:612.0pt 792.0pt;
margin:70.85pt 70.85pt 70.85pt 70.85pt;
mso-header-margin:36.0pt;
mso-footer-margin:36.0pt;
mso-paper-source:0;}
div.Section1
{page:Section1;}
--></style><!--[if gte mso 10]>
<style>
/* Style Definitions */
table.MsoNormalTable
{mso-style-name:"Tableau Normal";
mso-tstyle-rowband-size:0;
mso-tstyle-colband-size:0;
mso-style-noshow:yes;
mso-style-parent:"";
mso-padding-alt:0cm 5.4pt 0cm 5.4pt;
mso-para-margin:0cm;
mso-para-margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:10.0pt;
font-family:"Times New Roman";
mso-ansi-language:#0400;
mso-fareast-language:#0400;
mso-bidi-language:#0400;}
table.MsoTableGrid
{mso-style-name:"Grille du tableau";
mso-tstyle-rowband-size:0;
mso-tstyle-colband-size:0;
border:solid windowtext 1.0pt;
mso-border-alt:solid windowtext .5pt;
mso-padding-alt:0cm 5.4pt 0cm 5.4pt;
mso-border-insideh:.5pt solid windowtext;
mso-border-insidev:.5pt solid windowtext;
mso-para-margin:0cm;
mso-para-margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:10.0pt;
font-family:"Times New Roman";
mso-ansi-language:#0400;
mso-fareast-language:#0400;
mso-bidi-language:#0400;}
</style>
<![endif]-->Champ

, Type

, Longueur

, Commentaire

, ----
NOM

, Texte

,  

,  

, ----
CHEMIN

, Texte

,  

, Chemin avec serveur
P ou M

, ----
ENTITE

, Texte

,  

, DMTC / FP

, ----
MATRICULE

, Texte

, 8

, Peoplesoft

, ----
ID_ACCESS

, Texte

,  

, Prénom + 1ère
lettre du nom

, ----
AUTORISATION

, Texte

,  

, OUI/NON

, ----
INDICATEUR

, Texte

,  

, OUI/NON

, ----
DATE_ACCES

, Date

,  

, Date de dernier
accès

dis moi si il t'faut plus de détail
El Grande Lynce
0
cs_baloc Messages postés 56 Date d'inscription lundi 8 septembre 2008 Statut Membre Dernière intervention 29 octobre 2010
23 oct. 2008 à 14:32
rebonjour,

peux-tu m'expliquer ce que NOM représente?...
pour la suite, tu dois te contenté d'une seule table?

car si tu veux allégé, Un seul référentiel utilisateur suffit qu'il lui sera un lien avec le reste des informations utilisateurs qui seraient dans une autre table.

et une victoire de plus pour Mr canard
0

Vous n’avez pas trouvé la réponse que vous recherchez ?

Posez votre question
GrandLynx Messages postés 16 Date d'inscription mardi 3 juillet 2007 Statut Membre Dernière intervention 22 mai 2012
23 oct. 2008 à 14:45
le champ NOM c'est simplement la nom de la base, c'est utile pour par exemple, les favoris qui ont le même nom mais pas le même chemin
encore une omission de ma part voici la table user :
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><meta name="ProgId" content="Word.Document" /><meta name="Generator" content="Microsoft Word 11" /><meta name="Originator" content="Microsoft Word 11" /><link rel="File-List" href="file:///C:%5CDOCUME%7E1%5C43477513%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml" /><!--[if gte mso 9]><xml>
<w:WordDocument>
<w:View>Normal</w:View>
<w:Zoom>0</w:Zoom>
<w:PunctuationKerning/>
<w:ValidateAgainstSchemas/>
<w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid>
<w:IgnoreMixedContent>false</w:IgnoreMixedContent>
<w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText>
<w:Compatibility>
<w:BreakWrappedTables/>
<w:SnapToGridInCell/>
<w:WrapTextWithPunct/>
<w:UseAsianBreakRules/>
<w:DontGrowAutofit/>
</w:Compatibility>
<w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel>
</w:WordDocument>
</xml><![endif]--><!--[if gte mso 9]><xml>
<w:LatentStyles DefLockedState="false" LatentStyleCount="156">
</w:LatentStyles>
</xml><![endif]--><style><!--
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{mso-style-parent:"";
margin:0cm;
margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:12.0pt;
font-family:"Times New Roman";
mso-fareast-font-family:"Times New Roman";
mso-ansi-language:FR;
mso-fareast-language:FR;}
@page Section1
{size:612.0pt 792.0pt;
margin:70.85pt 70.85pt 70.85pt 70.85pt;
mso-header-margin:36.0pt;
mso-footer-margin:36.0pt;
mso-paper-source:0;}
div.Section1
{page:Section1;}
--></style><!--[if gte mso 10]>
<style>
/* Style Definitions */
table.MsoNormalTable
{mso-style-name:"Tableau Normal";
mso-tstyle-rowband-size:0;
mso-tstyle-colband-size:0;
mso-style-noshow:yes;
mso-style-parent:"";
mso-padding-alt:0cm 5.4pt 0cm 5.4pt;
mso-para-margin:0cm;
mso-para-margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:10.0pt;
font-family:"Times New Roman";
mso-ansi-language:#0400;
mso-fareast-language:#0400;
mso-bidi-language:#0400;}
table.MsoTableGrid
{mso-style-name:"Grille du tableau";
mso-tstyle-rowband-size:0;
mso-tstyle-colband-size:0;
border:solid windowtext 1.0pt;
mso-border-alt:solid windowtext .5pt;
mso-padding-alt:0cm 5.4pt 0cm 5.4pt;
mso-border-insideh:.5pt solid windowtext;
mso-border-insidev:.5pt solid windowtext;
mso-para-margin:0cm;
mso-para-margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:10.0pt;
font-family:"Times New Roman";
mso-ansi-language:#0400;
mso-fareast-language:#0400;
mso-bidi-language:#0400;}
</style>
<![endif]-->Champ

, Type

, Longueur

, Commentaire

, ----
MATRICULE

, Texte

, 8

, Peoplesoft

, ----
NOM

, Texte

,  

,  

, ----
PRENOM

, Texte

,  

,  

, ----
INITIALES

, Texte

, 2

, Utilisé dans la
table MOIS

, ----
ID_LOCAL

, Texte

, 8

, AXXXXXXX

, ----
ID_ACCESS

, Texte

,  

, Prénom + 1ère
lettre du nom

, ----
GROUPE

, Texte

,  

,  

, ----
PASSWORD

, Texte

, 8

,  

, ----
NUMERO_PC

, Texte

, 15

,  

, ----
TEL

, Numérique

, 1 + séparation + 4

,  

, ----
DATE_COMPTE

, Date

, JJ/MM/SSAA

,  

, ----
ETAT_COMPTE

, Texte

,  

, ACTIF/INACTIF

, ----
ENTITE

, Texte

,  

, DMTC / FP

 


ça signifie qu'il y a actuellement autant de user multiplié par le nombre de base auquels ils ont accès
en fait je n'arrive pas à prévoir si cette gestion sera efficace!

El Grande Lynce
0
GrandLynx Messages postés 16 Date d'inscription mardi 3 juillet 2007 Statut Membre Dernière intervention 22 mai 2012
23 oct. 2008 à 15:49
le champ indicateur sert à vérifier qu'on lance bien la base depuis mon appli :
dans chaque base, il  y a un lien vers la table serveur, à l'ouverture d'une base, celle-ci vérifie que l'indicateur est à oui et donc qu'elle a bien été ouverte depuis mon appli.

merci merci

El Grande Lynce
0
Rejoignez-nous