Subversion Repositories wimsdev

Rev

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

Rev 5072 Rev 5099
Line 40... Line 40...
40
!if $ldap_login=$empty or $ldap_uid=$empty or $ldap_base=$empty \
40
!if $ldap_login=$empty or $ldap_uid=$empty or $ldap_base=$empty \
41
       or $ldap_branch=$empty  or $ldap_auth=$empty 
41
       or $ldap_branch=$empty  or $ldap_auth=$empty 
42
   auth_test=ERROR no_ldap_config
42
   auth_test=ERROR no_ldap_config
43
   !exit
43
   !exit
44
!endif
44
!endif
45
 
-
 
-
 
45
!!!FIXME  Be careful : ldap must be configured such that the option -w is accepted. If not, the answer
-
 
46
!!! is the same for a good or wrong password.
-
 
47
!!! should fix the test
46
ldap_search=!sh ldapsearch -x -H ldap://$ldap_auth:$ldap_port -b "$ldap_base" '$ldap_id' -D "$ldap_id , $ldap_base" -w '$(wims_read_parm[2])'
48
ldap_search=!sh ldapsearch -x -H ldap://$ldap_auth:$ldap_port -b "$ldap_base" '$ldap_id' -D "$ldap_id , $ldap_base" -w '$(wims_read_parm[2])'
47
 
-
 
48
atest=result: 0 Success
49
atest=result: 0 Success
49
btest=# numEntries: 1
50
btest=# numEntries: 1
50
firstcond=0
51
firstcond=0
51
 
52
 
52
ldap_cnt=!linecnt $ldap_search
53
ldap_cnt=!linecnt $ldap_search