The Higher Education and Research forge

Home My Page Projects Code Snippets Project Openings Développement de WIMS
Summary Activity Forums Tracker Tasks Docs Surveys News SCM Files Listes Sympa

Forum: developers

Monitor Forum | Start New Thread Start New Thread
RE: abut r10905 [ Reply ]
By: Marina Cazzola on 2016-08-27 09:51
[forum:17567]
I better checked.

My previous correction had a problem that I tried to fix with r10918
(please check!)

Please note that I tried everything with groupments, not with portals.

In groupment, we now have 4 possibilities:

1) the groupement supervisor, who has supervisor authority on all the
subclasses

in wims you get it with

wims_user=supervisor

(and wims_realuser=supervisor is not really needed, but does not harm,
does it?)

This is what you get if you connect to the superclass with adm/raw

http://127.0.0.1/wims/wims.cgi?module=adm/raw&code=XXXX&ident=myself&passwd=toto&job=authuser&rclass=semplice&qclass=2690827&quser=supervisor

that is qclass=2690827&quser=supervisor

2) a teacher logging in as a teacher in a superclass

you should have

wims_user=marina_cazzola
wims_realuser=marina_cazzola

the wims_realuser variable is needed otherwise the access to the
subclasses is not granted (the links are not shown)

This is what you get if you connect to the superclass with adm/raw
(with r10918)

http://127.0.0.1/wims/wims.cgi?module=adm/raw&code=XXXX&ident=myself&passwd=toto&job=authuser&rclass=semplice&qclass=2690827&quser=marina_cazzola

that is qclass=2690827&quser=marina_cazzola

3) a teacher logging in as a supervisor in a subclass

you should have

wims_user=supervisor
wims_realuser=marina_cazzola

You get more or less this via adm/raw if with the call

http://127.0.0.1/wims/wims.cgi?module=adm/raw&code=XXXX&ident=myself&passwd=toto&job=authuser&rclass=semplice&qclass=2690827_1&quser=supervisor

that is qclass=2690827_1&quser=supervisor

adm/raw does not set the wims_realuser=marina_cazzola (and should not
set wims_realuser=supervisor either) so when the user tries to get to
the superclass he is asked for the supervisor password (that is he is
denied supervisor access to the superclass, which I think is good!)

(in other words, wims_realuser=marina_cazzola is needed only to log in
to the superclass)

4) a teacher loggin as a student in a subclass

wims_user=marina_cazzola
wims_realuser=marina_cazzola

This is what you get if you connect to the superclass with adm/raw

http://127.0.0.1/wims/wims.cgi?module=adm/raw&code=XXXX&ident=myself&passwd=toto&job=authuser&rclass=semplice&qclass=2690827_1&quser=marina_cazzola

that is qclass=2690827_1&quser=marina_cazzola

(with wims_realuser set, the teacher has access to the superclass
page, with all the links to log in again to the subclasses)

Did I miss something?

Marina

RE: abut r10905 [ Reply ]
By: Olivier Bado on 2016-08-26 12:12
[forum:17564]
In Jalon, supervisor is also connecting via adm/raw...

RE: abut r10905 [ Reply ]
By: Marina Cazzola on 2016-08-26 09:25
[forum:17563]
in

adm/raw/jobs/authuser.proc

I added the line

wims_realuser=$quser\

that is copying the line

wims_user=$quser\

(so wims_user=wims_realuser, but as supervisor does not login via adm/raw it should be ok, shouldn't it?)

RE: abut r10905 [ Reply ]
By: Bernadette Perrin-Riou on 2016-08-26 09:06
[forum:17562]
in a superclass, wims_user is supervisor and wims_realuser is the login of the teacher.
In case of a student, wims_realuser should be by default wims_user or not used.

Bernadette

abut r10905 [ Reply ]
By: Marina Cazzola on 2016-08-26 09:03
[forum:17561]
I'm not sure if that is the right place to make the correction.

In the home page of a superclass the list of classes is not shown unless the variable wims_realuser is set. Maybye such variable should be set in some other place.

I'm not sure I understand the difference between wims_user and wims_realuser

Marina