Subversion Repositories wimsdev

Rev

Rev 5029 | Rev 5072 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 5029 Rev 5060
Line 1... Line 1...
1
ldap_find=!sh which ldapsearch
1
ldap_find=!sh which ldapsearch
2
!if $ldap_find issametext $empty
2
!if $ldap_find issametext $empty
3
 auth_test=ERROR no_ldap
3
 auth_test=ERROR no_ldap
4
 !exit
4
 !exit
5
!endif
5
!endif
-
 
6
 
-
 
7
!default authdef=wimshome/log/classes/$class/.def
6
 
8
 
7
ldap_auth=!defof class_ldap_auth in $authdef
9
ldap_auth=!defof class_ldap_auth in $authdef
8
!default ldap_auth=!defof ldap_auth in wimshome/log/wims.conf
10
!default ldap_auth=!defof ldap_auth in wimshome/log/wims.conf
9
 
11
 
10
ldap_port=!defof class_ldap_port in $authdef
12
ldap_port=!defof class_ldap_port in $authdef
Line 25... Line 27...
25
#ldap_id=!replace internal " by in $ldap_uid=$(wims_read_parm[1]),$ldap_branch,$ldap_base
27
#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])
28
ldap_id=!replace internal " by in $ldap_uid=$(wims_read_parm[1])
27
 
29
 
28
ldap_login=!defof class_ldap_login in $authdef
30
ldap_login=!defof class_ldap_login in $authdef
29
!default ldap_login=!defof ldap_login in wimshome/log/wims.conf
31
!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
 
-
 
33
## standard, ne pas mettre en argument
-
 
34
 
-
 
35
authdef=wimshome/log/classes/$superclass/.def
-
 
36
 
-
 
37
ldap_host=!defof class_ldap_auth in $authdef
-
 
38
!default ldap_host=!defof class_ldap_auth in wimshome/log/wims.conf
-
 
39
 
-
 
40
ldap_port=!defof class_ldap_port in $authdef
-
 
41
ldap_base=!defof class_ldap_base in $authdef
-
 
42
 
32
 
-
 
33
###### specific fields
43
!set l_regnum=!defof class_ldap_regnum in $authdef
34
!set l_regnum=!defof class_ldap_regnum in $authdef
44
!default l_regnum=!defof ldap_regnum in wimshome/log/wims.conf
35
!default l_regnum=!defof ldap_regnum in wimshome/log/wims.conf
45
!!upsCodeEtu
36
!!upsCodeEtu
46
!set l_photourl=!defof class_ldap_photourl in $authdef
37
!set l_photourl=!defof class_ldap_photourl in $authdef
47
!default l_photourl=!defof ldap_photourl in wimshome/log/wims.conf
38
!default l_photourl=!defof ldap_photourl in wimshome/log/wims.conf
48
!!upsURLPhoto
39
!!upsURLPhoto
49
!set l_email=!defof class_ldap_email in $authdef
40
!set l_email=!defof class_ldap_email in $authdef
50
!default l_email=!defof ldap_email in wimshome/log/wims.conf
41
!default l_email=!defof ldap_email in wimshome/log/wims.conf
51
!!eduPersonPrincipalName
42
!!eduPersonPrincipalName
52
 
43
 
-
 
44
##### standard field
53
!set l_uid=uid
45
!set l_uid=uid
54
!set l_lastname=sn
46
!set l_lastname=sn
55
!set l_firstname=givenName
47
!set l_firstname=givenName
56
!set l_password=password
48
!set l_password=password
57
 
49
 
58
###
50
###
59
wims_code=lastname,firstname,regnum,photourl,email
51
wims_code=lastname,firstname,regnum,photourl,email
60
ldap_code=!makelist $$$$$$$ l_ x for x in $wims_code
52
ldap_code=!makelist $$$$$$$ l_ x for x in $wims_code
61
ldap_code=!nospace $ldap_code
53
ldap_code=!nospace $ldap_code
62
ldap_code_=!items2words $ldap_code
54
ldap_code_=!items2words $ldap_code
-
 
55
!default ldap_login=$l_uid
63
!default ldap_identifiant=$l_uid
56
!default ldap_identifiant=$ldap_uid
64
 
-
 
65
 
57