Subversion Repositories wimsdev

Rev

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

Rev Author Line No. Line
5024 bpr 1
ldap_find=!sh which ldapsearch
2
!if $ldap_find issametext $empty
13014 bpr 3
  auth_test=ERROR no_ldap
4
  !exit
5024 bpr 5
!endif
5023 bpr 6
 
5060 bpr 7
!default authdef=wimshome/log/classes/$class/.def
8
 
5024 bpr 9
ldap_auth=!defof class_ldap_auth in $authdef
10
!default ldap_auth=!defof ldap_auth in wimshome/log/wims.conf
5023 bpr 11
 
5024 bpr 12
ldap_port=!defof class_ldap_port in $authdef
13
!default ldap_port=!defof ldap_port in wimshome/log/wims.conf
14
 
15
ldap_version=!defof class_ldap_version in $authdef
16
!default ldap_version=!defof ldap_version in wimshome/log/wims.conf
17
 
18
ldap_base=!defof class_ldap_base in $authdef
19
!default ldap_base=!defof ldap_base in wimshome/log/wims.conf
20
 
21
ldap_branch=!defof class_ldap_branch in $authdef
22
!default ldap_branch=!defof ldap_branch in wimshome/log/wims.conf
23
 
24
ldap_uid=!defof class_ldap_uid in $authdef
25
!default ldap_uid=!defof ldap_uid in wimshome/log/wims.conf
13014 bpr 26
 
5024 bpr 27
#ldap_id=!replace internal " by in $ldap_uid=$(wims_read_parm[1]),$ldap_branch,$ldap_base
28
ldap_id=!replace internal " by in $ldap_uid=$(wims_read_parm[1])
29
 
30
ldap_login=!defof class_ldap_login in $authdef
31
!default ldap_login=!defof ldap_login in wimshome/log/wims.conf
32
 
13323 georgesk 33
ldap_accreditation=!defof class_ldap_accreditation in $authdef
34
!default ldap_accreditation=!defof ldap_accreditation in wimshome/log/wims.conf
35
 
5060 bpr 36
###### specific fields
5024 bpr 37
!set l_regnum=!defof class_ldap_regnum in $authdef
38
!default l_regnum=!defof ldap_regnum in wimshome/log/wims.conf
39
!!upsCodeEtu
40
!set l_photourl=!defof class_ldap_photourl in $authdef
41
!default l_photourl=!defof ldap_photourl in wimshome/log/wims.conf
42
!!upsURLPhoto
43
!set l_email=!defof class_ldap_email in $authdef
44
!default l_email=!defof ldap_email in wimshome/log/wims.conf
45
!!eduPersonPrincipalName
46
 
5060 bpr 47
##### standard field
5023 bpr 48
!set l_uid=uid
49
!set l_lastname=sn
50
!set l_firstname=givenName
51
!set l_password=password
5072 bpr 52
!set l_login=$ldap_login
5023 bpr 53
 
54
###
5151 bpr 55
!set wims_code=lastname,firstname,regnum,photourl,email
56
!set ldap_code=!makelist $$$$$$$ l_ x for x in $wims_code
5072 bpr 57
!default l_login=$l_uid
58
!default ldap_identifiant=$l_login
5151 bpr 59
!set ldap_code=!nospace $ldap_code,$l_login
60
!set ldap_code_=!items2words $ldap_code
5023 bpr 61
 
5151 bpr 62
!if $ldap_login!=$empty
63
  !set login_method=$idp_method $ldap_login
64
!endif
65