Re: Net::LDAP scheme() method

2010-03-09 Thread Graham Barr
On Mar 9, 2010, at 5:59 PM, Prentice Bisbal wrote: > Graham Barr wrote: >> On Mar 9, 2010, at 3:04 PM, Prentice Bisbal wrote: >>> # Connect to LDAP server >>> my $ldap = Net::LDAP->new(\...@ldap_servers, >>> onerror => 'die' >>> ) || die "C

Re: Net::LDAP scheme() method

2010-03-09 Thread Graham Barr
On Mar 9, 2010, at 3:04 PM, Prentice Bisbal wrote: > > # Connect to LDAP server > my $ldap = Net::LDAP->new(\...@ldap_servers, > onerror => 'die' > ) || die "Could not connect to LDAP servers.\n"; > > $connection_scheme = $ldap->schem

Net::LDAP scheme() method

2010-03-09 Thread Prentice Bisbal
I'm using Net::LDAP in a program that parses the openldap ldap.conf file (/etc/openldap/ldap.conf on RHEL systems) for it's LDAP settings. I would like program to start TLS if the connections isn't already SSL-encrypted. What is the best way to check that a connection is SSL-encrypted? I tried usi