1Net::LDAP::Extension::WUhsoeArmIC(o3n)tributed Perl DocuNmeetn:t:aLtDiAoPn::Extension::WhoAmI(3)
2
3
4
6 Net::LDAP::Extension::WhoAmI - LDAP "Who am I?" Operation
7
9 use Net::LDAP;
10 use Net::LDAP::Extension::WhoAmI;
11
12 $ldap = Net::LDAP->new( "ldap.mydomain.eg" );
13
14 $ldap->bind('cn=Joe User,cn=People,dc=example,dc=com",
15 password => 'secret');
16
17 $mesg = $ldap->who_am_i();
18
19 die "error: ", $mesg->code(), ": ", $mesg->error() if ($mesg->code());
20
21 print "you are bound with authzId ", $mesg->response(), "\n";
22
24 "Net::LDAP::Extension::WhoAmI" implements the "Who am I?" extended
25 LDAPv3 operation as described in RFC 4532.
26
27 It implements no object by itself but extends the Net::LDAP object by
28 another method:
29
31 who_am_i
32 Obtain the authorization identity which the server has associated
33 with the user or application entity.
34
36 Net::LDAP, Net::LDAP::Extension
37
39 Norbert Klasen <norbert.klasen@avinci.de>,
40
41 Please report any bugs, or post any suggestions, to the perl-ldap
42 mailing list <perl-ldap@perl.org>
43
45 Copyright (c) 2002-2004 Graham Barr. All rights reserved. This program
46 is free software; you can redistribute it and/or modify it under the
47 same terms as Perl itself.
48
49
50
51perl v5.32.0 2020-07-28 Net::LDAP::Extension::WhoAmI(3)