Was crashing if we had more than 20 people on the list and we couldn't

contact the LDAP server.
This commit is contained in:
terry%netscape.com 1998-11-02 18:56:33 +00:00
parent 734272969c
commit 118354d282

View File

@ -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 {