Rev 5024 | Rev 5060 | 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 | |||
5029 | bpr | 37 | ldap_host=!defof class_ldap_auth in $authdef |
38 | !default ldap_host=!defof class_ldap_auth in wimshome/log/wims.conf |
||
39 | |||
5023 | bpr | 40 | ldap_port=!defof class_ldap_port in $authdef |
41 | ldap_base=!defof class_ldap_base in $authdef |
||
42 | |||
5024 | bpr | 43 | !set l_regnum=!defof class_ldap_regnum in $authdef |
44 | !default l_regnum=!defof ldap_regnum in wimshome/log/wims.conf |
||
45 | !!upsCodeEtu |
||
46 | !set l_photourl=!defof class_ldap_photourl in $authdef |
||
47 | !default l_photourl=!defof ldap_photourl in wimshome/log/wims.conf |
||
48 | !!upsURLPhoto |
||
49 | !set l_email=!defof class_ldap_email in $authdef |
||
50 | !default l_email=!defof ldap_email in wimshome/log/wims.conf |
||
51 | !!eduPersonPrincipalName |
||
52 | |||
5023 | bpr | 53 | !set l_uid=uid |
54 | !set l_lastname=sn |
||
55 | !set l_firstname=givenName |
||
56 | !set l_password=password |
||
57 | |||
58 | ### |
||
59 | wims_code=lastname,firstname,regnum,photourl,email |
||
60 | ldap_code=!makelist $$$$$$$ l_ x for x in $wims_code |
||
61 | ldap_code=!nospace $ldap_code |
||
62 | ldap_code_=!items2words $ldap_code |
||
63 | !default ldap_identifiant=$l_uid |
||
64 | |||
65 |