NAME
Quiq::Ldap::Client - LDAP Client
BASE CLASS
DESCRIPTION
Ein Objekt der Klasse repräsentiert einen LDAP-Client. Die Klasse stellt eine Überdeckung der Klasse Net::LDAP dar, mit dem Vorteil, dass keine Fehlerbehandlung nötig ist, sondern im Fehlerfall eine Exception geworfen wird.
LDAP Test Zeppelin: /usr/local/bin/test_ldap_zeppelin.sh
Homepage: Net::LDAP
EXAMPLE
# The following example shows how to use the Class
# to query the RootDSE of Acctive Directory
my
$ldap
= Quiq::Ldap::Client->new(
'dc1'
);
my
$res
=
$ldap
->search(
base
=>
''
,
filter
=>
'(objectclass=*)'
,
scope
=>
'base'
,
);
for
my
$ent
(
$res
->entries) {
for
my
$key
(
sort
$ent
->attributes) {
"$key:"
;
for
my
$val
(
$ent
->get(
$key
)) {
" $val"
;
}
"\n"
;
}
}
METHODS
Konstruktor
new() - Instantiiere Objekt
Synopsis
$ldap
=
$class
->new(
$uri
,
%options
);
Arguments
- $uri
-
URI des LDAP-Servers. Siehe Net::LDAP.
- %options
-
Optionen als Schlüssel/Wert-Paare. Siehe Net::LDAP.
Returns
Object
Description
Instantiiere eine Objekt der Klasse und liefere eine Referenz auf dieses Objekt zurück.
Example
LDAP
LDAPS
Objektmethoden
bind() - Login auf LDAP-Server
Synopsis
$ldap
->
bind
;
# anonymous
$ldap
->
bind
(
$dn
,
%options
);
Arguments
Description
Logge User auf LDAP-Server ein.
search() - Durchsuche Server
Synopsis
$ldap
->search(
%options
);
Arguments
Description
Durchsuche den LDAP-Server durch Anwendung eines Filters.
startTls() - Wandele Verbindung nach TLS
Synopsis
$ldap
->startTls(
%options
);
Arguments
Description
Wandele Verbindung nach TLS
unbind() - Trenne Verbindung
Synopsis
$ldap
->unbind;
Description
Trenne die Verbindung zum LDAP-Server.
VERSION
1.225
AUTHOR
Frank Seitz, http://fseitz.de/
COPYRIGHT
Copyright (C) 2025 Frank Seitz
LICENSE
This code is free software; you can redistribute it and/or modify it under the same terms as Perl itself.