Net::LDAPS(3)
β¨ NAME β¨
Net::LDAPS β use LDAP over an SSL connection. Also hiiii bestie, this is the Net::LDAPS(3) page from the User Contributed Perl Documentation, and itβs giving secure-directory-connection main character energy. π
π¦ SYNOPSIS π¦
Okay so there are two ways to slide into the same SSL-secured LDAP situation:
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/');
Pick your fighter, bestie. Both are right there in the code. π«Ά
π DESCRIPTION π
So basically youβre communicating using the LDAP protocol to a directory server, but over an encrypted (SSL) network connection. Iconic. β¨
Heads up though: this mechanism is non-standard but widely supported. If you can, consider using LDAPv3 with the standard TLS extension instead β because many servers do not support it yet. π See start_tls in Net::LDAP for that.
All the normal Net::LDAP methods can be used with a Net::LDAPS object; see Net::LDAP for details. No cap, thatβs the whole vibe. πΈ
π οΈ CONSTRUCTOR π οΈ
new ( HOST [, OPTIONS ] )
Create a new connection, periodt. HOST is the hostname to contact. OPTIONS is a number of key/value pairs. See "new" in Net::LDAP for details. π
π SEE ALSO π
Go check out these icons:
Net::LDAPIO::Socket::SSL
π BUGS π
Okay so the major catch: you cannot have more than one LDAPS connection at any one time, due to restrictions in the underlying Net::SSLeay code. Thatβs not a drill, bestie. π
π AUTHOR π
Big shoutout to Chris Ridd <chris.ridd@isode.com>. π
π COPYRIGHT π
Legally cute, legally clear:
Copyright (c) 2000-2004, Chris Ridd and Graham Barr. All rights reserved. This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
mwah π β this page is from perl v5.42.0, dated 2024-01-02, and itβs the Net::LDAPS(3) page. bye bestie, go secure those directories π«Ά
π¦ where this page comes from
- opensuse-leap 16.0: perl-ldap 0.68-160000.2.2 Β· Artistic-1.0 OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms