How can we let a non-root user change his WinCC-OA password in version 3.15

Find and share HowTos to various installations / configurations!
5 posts • Page 1 of 1
aberbee
Posts:8
Joined: Wed Feb 16, 2011 11:02 am

How can we let a non-root user change his WinCC-OA password in version 3.15

Post by aberbee »

How can we let a non-root user change his WinCC-OA password in version 3.15, because only root can change a user-password?

schneebergera
Posts:89
Joined: Sun Apr 03, 2016 5:52 pm

Re: How can we let a non-root user change his WinCC-OA password in version 3.15

Post by schneebergera »

Hello,

please have a look into oa_help.
[System Management - Authorizations - Users]

If you are using Panel Topology (e.g. Template1) there is an example for login mechanism.
There an user is able to change the password easily by himself. At least you need "operator(all)" authorization (default).

best regards,
Andreas

aberbee
Posts:8
Joined: Wed Feb 16, 2011 11:02 am

Re: How can we let a non-root user change his WinCC-OA password in version 3.15

Post by aberbee »

In WinCC-OA 3.15 there is a panel called ChangingPassword.pnl.
Here you can change a user-password.
The panel is using the lib login_internal.ctc (witch can not be modified).
With the call to sub "changePassword_check()" defined in the lib, the changed password is written to internal DP.
However this can only be done with Root-rights!
What do I wrong in this case?

Arjen Berbee

Gertjan van Schijndel
Posts:634
Joined: Mon Aug 02, 2010 10:37 am

Re: How can we let a non-root user change his WinCC-OA password in version 3.15

Post by Gertjan van Schijndel »

Changing the password requires permission bit 3, not root rights as Andreas already wrote.

As a workaround you could write the new (encrypted) password to a datapoint element and let a control script manager change the password.

kilianvp
Posts:443
Joined: Fri Jan 16, 2015 10:29 am

Re: How can we let a non-root user change his WinCC-OA password in version 3.15

Post by kilianvp »

you can use crypt()

and dpSet that string into _Users.Password

5 posts • Page 1 of 1