Bugzilla – Attachment #448432: patch for testing for bug #710430
my $data;
open( FILE, "< /etc/openldap/ldap.conf" ) or die "unable to open /etc/openldap/ldap.conf. $!";
while(<FILE>) {
if ( /^uri\s+([^\s]*)\s*/i ) { $data = $1; last }
if ( /^host\s+([^\s]*)\s*/i ) { $data = $1; last }
}
close(FILE);