Subversion Repositories wimsdev

Rev

Rev 5023 | Rev 5029 | 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
3
 auth_test=ERROR no_ldap
4
 !exit
5
!endif
5023 bpr 6
 
5024 bpr 7
ldap_auth=!defof class_ldap_auth in $authdef
8
!default ldap_auth=!defof ldap_auth in wimshome/log/wims.conf
5023 bpr 9
 
5024 bpr 10
ldap_port=!defof class_ldap_port in $authdef
11
!default ldap_port=!defof ldap_port in wimshome/log/wims.conf
12
 
13
ldap_version=!defof class_ldap_version in $authdef
14
!default ldap_version=!defof ldap_version in wimshome/log/wims.conf
15
 
16
ldap_base=!defof class_ldap_base in $authdef
17
!default ldap_base=!defof ldap_base in wimshome/log/wims.conf
18
 
19
ldap_branch=!defof class_ldap_branch in $authdef
20
!default ldap_branch=!defof ldap_branch in wimshome/log/wims.conf
21
 
22
ldap_uid=!defof class_ldap_uid in $authdef
23
!default ldap_uid=!defof ldap_uid in wimshome/log/wims.conf
24
 
25
#ldap_id=!replace internal " by in $ldap_uid=$(wims_read_parm[1]),$ldap_branch,$ldap_base
26
ldap_id=!replace internal " by in $ldap_uid=$(wims_read_parm[1])
27
 
28
ldap_login=!defof class_ldap_login in $authdef
29
!default ldap_login=!defof ldap_login in wimshome/log/wims.conf
30
ldap_branch=!defof class_ldap_branch in $authdef
31
!default ldap_branch=!defof ldap_branch in wimshome/log/wims.conf
32
 
5023 bpr 33
## standard, ne pas mettre en argument
34
 
35
authdef=wimshome/log/classes/$superclass/.def
36
 
37
ldap_host=!defof class_ldap_idp in $authdef
38
ldap_port=!defof class_ldap_port in $authdef
39
ldap_base=!defof class_ldap_base in $authdef
40
 
5024 bpr 41
!set l_regnum=!defof class_ldap_regnum in $authdef
42
!default l_regnum=!defof ldap_regnum in wimshome/log/wims.conf
43
!!upsCodeEtu
44
!set l_photourl=!defof class_ldap_photourl in $authdef
45
!default l_photourl=!defof ldap_photourl in wimshome/log/wims.conf
46
!!upsURLPhoto
47
!set l_email=!defof class_ldap_email in $authdef
48
!default l_email=!defof ldap_email in wimshome/log/wims.conf
49
!!eduPersonPrincipalName
50
 
5023 bpr 51
!set l_uid=uid
52
!set l_lastname=sn
53
!set l_firstname=givenName
54
!set l_password=password
55
 
56
###
57
wims_code=lastname,firstname,regnum,photourl,email
58
ldap_code=!makelist $$$$$$$ l_ x for x in $wims_code
59
ldap_code=!nospace $ldap_code
60
ldap_code_=!items2words $ldap_code
61
!default ldap_identifiant=$l_uid
62
 
63