File: initldap

package info (click to toggle)
wims 2%3A4.29a%2Bdfsg1-3
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 185,704 kB
  • sloc: xml: 366,687; javascript: 120,570; ansic: 62,341; java: 62,170; sh: 7,744; perl: 3,937; yacc: 3,217; cpp: 1,915; lex: 1,805; makefile: 1,084; lisp: 914; pascal: 601; python: 520; php: 318; asm: 7
file content (65 lines) | stat: -rw-r--r-- 2,126 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
ldap_find=!sh which ldapsearch
!if $ldap_find issametext $empty
  auth_test=ERROR no_ldap
  !exit
!endif

!default authdef=wimshome/log/classes/$class/.def

ldap_auth=!defof class_ldap_auth in $authdef
!default ldap_auth=!defof ldap_auth in wimshome/log/wims.conf

ldap_port=!defof class_ldap_port in $authdef
!default ldap_port=!defof ldap_port in wimshome/log/wims.conf

ldap_version=!defof class_ldap_version in $authdef
!default ldap_version=!defof ldap_version in wimshome/log/wims.conf

ldap_base=!defof class_ldap_base in $authdef
!default ldap_base=!defof ldap_base in wimshome/log/wims.conf

ldap_branch=!defof class_ldap_branch in $authdef
!default ldap_branch=!defof ldap_branch in wimshome/log/wims.conf

ldap_uid=!defof class_ldap_uid in $authdef
!default ldap_uid=!defof ldap_uid in wimshome/log/wims.conf

#ldap_id=!replace internal " by in $ldap_uid=$(wims_read_parm[1]),$ldap_branch,$ldap_base
ldap_id=!replace internal " by in $ldap_uid=$(wims_read_parm[1])

ldap_login=!defof class_ldap_login in $authdef
!default ldap_login=!defof ldap_login in wimshome/log/wims.conf

ldap_accreditation=!defof class_ldap_accreditation in $authdef
!default ldap_accreditation=!defof ldap_accreditation in wimshome/log/wims.conf

###### specific fields
!set l_regnum=!defof class_ldap_regnum in $authdef
!default l_regnum=!defof ldap_regnum in wimshome/log/wims.conf
!!upsCodeEtu
!set l_photourl=!defof class_ldap_photourl in $authdef
!default l_photourl=!defof ldap_photourl in wimshome/log/wims.conf
!!upsURLPhoto
!set l_email=!defof class_ldap_email in $authdef
!default l_email=!defof ldap_email in wimshome/log/wims.conf
!!eduPersonPrincipalName

##### standard field
!set l_uid=uid
!set l_lastname=sn
!set l_firstname=givenName
!set l_password=password
!set l_login=$ldap_login

###
!set wims_code=lastname,firstname,regnum,photourl,email
!set ldap_code=!makelist $$$$$$$ l_ x for x in $wims_code
!default l_login=$l_uid
!default ldap_identifiant=$l_login
!set ldap_code=!nospace $ldap_code,$l_login
!set ldap_code_=!items2words $ldap_code

!if $ldap_login!=$empty
  !set login_method=$idp_method $ldap_login
!endif