CODESYS - the IEC 61131-3 automation software
https://forum.codesys.com/

Web Visu - access rights
https://forum.codesys.com/viewtopic.php?f=5&t=1893
Page 1 of 1

Author:  Insight [ Mon May 09, 2011 9:21 am ]
Post subject:  Web Visu - access rights

I am trying to define access rights to web visualisation trough Codesys programing interface with right mouse button over the object (e.g. PLC_VISU) -> Object properties -> Access rights. I am defining different passwords for different groups, but no matter what I do, when I try to access via web interface, it never asks for user name / password and I have full access to all objects.

[attachment=0]CoDeSysAccR.PNG[/attachment]

Author:  JAPIB [ Tue May 10, 2011 7:45 am ]
Post subject:  Re: Web Visu - access rights

Hello,

J think you have to declare somes variables, for example :

VAR_GLOBAL RETAIN
CurrentUserLevel: INT := 1;
CurrentPasswords: ARRAY[0..7] OF STRING[20] := 'aa','bb','cc','dd','ee','ff','gg','hh';
VisuDoExecuteUserlevelInit: BOOL := FALSE;
END_VAR

With :
CurrentUserLevel : level of password you want to set on start
CurrentPasswords : Array, 8 levels of password

Then you can change User or Password by program, or in the pages of display you can add buttons.
Add a button, and configure :Category -->Input -->Execute program
INTERN CHANGEUSERLEVEL
INTERN CHANGEPASSWORD

Hoping to help you, sincerely.

Author:  Insight [ Wed May 11, 2011 7:31 am ]
Post subject:  Re: Web Visu - access rights

Thank you JAPIB

I tried with these declarations, but the result is the same.
I forgot to say that all access restrictions work well in CoDeSys -> Visualisation interface, but in the web interface all items are available without any passwords. No matter with or without declarations for CurrentUserLevel, CurrentPasswords.... :(

Author:  TimvH [ Thu May 12, 2011 8:33 am ]
Post subject:  Re: Web Visu - access rights

3S-Software has made an example for this. Go to their website and click on Download => CoDeSys Sample Projects.
Through this ftp site go to Projects/CoDeSysV2.3/Visualisation/LoginDemo_XML/.
This shows you how to handle a login through the web.

Author:  FabioPD [ Tue Sep 06, 2016 11:36 am ]
Post subject:  Re: Web Visu - access rights

Hi! where I can find some information about CurrentUsername and INTERN statement? I haven't found in the COdesys Help. May there is a tutorial online...
THanks a lot.

Page 1 of 1 All times are UTC+01:00
Powered by phpBB® Forum Software © phpBB Limited
https://www.phpbb.com/