logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Net::LDAPS - use LDAP over an SSL connection

Author

Chris Ridd <chris.ridd@isode.com>

Bugs

You cannot have more than one LDAPS connection at any one time, due to restrictions in the underlying Net::SSLeay code.

Constructor

new ( HOST [, OPTIONS ] ) Create a new connection. HOST is the hostname to contact. OPTIONS is a number of key/value pairs. See "new" in Net::LDAP for details.

Description

Communicate using the LDAP protocol to a directory server using an encrypted (SSL) network connection. This mechanism is non-standard but widely supported; consider using LDAPv3 with the standard TLS extension if possible (many servers do not support it yet.) See "start_tls" in Net::LDAP. All the normal "Net::LDAP" methods can be used with a "Net::LDAPS" object; see Net::LDAP for details.

Name

Net::LDAPS - use LDAP over an SSL connection

See Also

Net::LDAP, IO::Socket::SSL

Synopsis

use Net::LDAPS; $ldaps = Net::LDAPS->new('myhost.example.com', port => '10000', verify => 'require', capath => '/usr/local/cacerts/'); # alternate way use Net::LDAP; $ldaps = Net::LDAP->new('ldaps://myhost.example.com:10000', verify => 'require', capath => '/usr/local/cacerts/');

See Also