Was crashing if we had more than 20 people on the list and we couldn't
contact the LDAP server. git-svn-id: svn://10.0.0.236/trunk@13892 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -133,9 +133,6 @@ foreach c $checkinlist {
|
||||
|
||||
proc GetInfoForPeople {peoplelist} {
|
||||
global ldaperror fullname curcontact errvar ldapserver ldapport
|
||||
if {$ldaperror} {
|
||||
return
|
||||
}
|
||||
set query "(| "
|
||||
set isempty 1
|
||||
foreach p $peoplelist {
|
||||
@@ -144,6 +141,9 @@ proc GetInfoForPeople {peoplelist} {
|
||||
set curcontact($p) ""
|
||||
}
|
||||
append query ")"
|
||||
if {$ldaperror} {
|
||||
return
|
||||
}
|
||||
if {[catch {set fid [open "|./data/ldapsearch -b \"o=Netscape Communications Corp.,c=US\" -h $ldapserver -p $ldapport -s sub -S mail \"$query\" mail cn nscpcurcontactinfo" r]} errvar]} {
|
||||
set ldaperror 1
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user