Subversion Repositories wimsdev

Rev

Rev 10825 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
5013 bpr 1
!!! init some parameters of a class
2
!!!INPUT = number of a class
9475 bpr 3
!!!OUTPUT= superclass, auth_method_list, aut_idp_method_list, auth_method,
4
!!! aut_idp_method, type_class, theme_class, regvars_class
5028 bpr 5
 
5542 bpr 6
!distribute items $wims_read_parm into pclass,option
7
!set pclass=!text select 1234567890/ in $pclass
8
!if $pclass=$empty
5013 bpr 9
  !exit
10
!endif
5015 bpr 11
 
5027 bpr 12
!if $option=auth
13
  !goto auth
14
!endif
15
 
5542 bpr 16
!set superclass=!text remove . in $pclass
5013 bpr 17
!set superclass=!replace internal / by , in $superclass
18
!set superclass=$(superclass[1])
19
 
5027 bpr 20
:auth
5069 bpr 21
!reset host_auth
22
!!FIXME should be in wims.conf
23
!set auth_method_list=ldap,cas,php
24
!set idp_method_list=ldap,php
13021 bpr 25
!! idp method used for someone else than the user so without identification before
26
!set idp_method_list2=ldap
5069 bpr 27
 
5542 bpr 28
!set ssclass=!text remove . in $pclass
5027 bpr 29
!set ssclass=!replace internal / by , in $ssclass
30
!set ssclass=$(ssclass[1])
5542 bpr 31
!set type_class=!defof class_type in wimshome/log/classes/$pclass/.def
9475 bpr 32
!set theme_class=!defof class_theme in wimshome/log/classes/$pclass/.def
10825 bpr 33
 
34
!set regvars_class=!defof class_regvars in wimshome/log/classes/$ssclass/.def
5069 bpr 35
!set authidp_method=!defof class_authidp in wimshome/log/classes/$ssclass/.def
5070 bpr 36
!set class_authidp=$authidp_method
5069 bpr 37
!set auth_method=$(authidp_method[1;])
38
!set idp_method =$(authidp_method[2;])
13021 bpr 39
!set idp_method2=!listintersect $idp_method and $idp_method_list2
5013 bpr 40
!bound auth_method within $auth_method_list default $
41
!bound idp_method within $idp_method_list default $
5042 bpr 42
!set class_auth=$auth_method
5060 bpr 43
!!!FIXME : change the name ($ldap_auth in another place)
5042 bpr 44
!set host_auth=!defof class_$(auth_method)_auth in wimshome/log/classes/$ssclass/.def
5060 bpr 45
!default authdef=wimshome/log/classes/$ssclass/.def
5042 bpr 46
!!FIXME tester si l'hôte répond ???