Subversion Repositories wimsdev

Rev

Rev 5151 | Go to most recent revision | 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
 
5060 bpr 33
###### specific fields
5024 bpr 34
!set l_regnum=!defof class_ldap_regnum in $authdef
35
!default l_regnum=!defof ldap_regnum in wimshome/log/wims.conf
36
!!upsCodeEtu
37
!set l_photourl=!defof class_ldap_photourl in $authdef
38
!default l_photourl=!defof ldap_photourl in wimshome/log/wims.conf
39
!!upsURLPhoto
40
!set l_email=!defof class_ldap_email in $authdef
41
!default l_email=!defof ldap_email in wimshome/log/wims.conf
42
!!eduPersonPrincipalName
43
 
5060 bpr 44
##### standard field
5023 bpr 45
!set l_uid=uid
46
!set l_lastname=sn
47
!set l_firstname=givenName
48
!set l_password=password
5072 bpr 49
!set l_login=$ldap_login
5023 bpr 50
 
51
###
5151 bpr 52
!set wims_code=lastname,firstname,regnum,photourl,email
53
!set ldap_code=!makelist $$$$$$$ l_ x for x in $wims_code
5072 bpr 54
!default l_login=$l_uid
55
!default ldap_identifiant=$l_login
5151 bpr 56
!set ldap_code=!nospace $ldap_code,$l_login
57
!set ldap_code_=!items2words $ldap_code
5023 bpr 58
 
5151 bpr 59
!if $ldap_login!=$empty
60
  !set login_method=$idp_method $ldap_login
61
!endif
62