{
    "mode": "perldoc",
    "parameter": "Net::LDAP::Extension::WhoAmI",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/perldoc/Net%3A%3ALDAP%3A%3AExtension%3A%3AWhoAmI/json",
    "generated": "2026-06-13T17:54:09Z",
    "synopsis": "use Net::LDAP;\nuse Net::LDAP::Extension::WhoAmI;\n$ldap = Net::LDAP->new( \"ldap.mydomain.eg\" );\n$ldap->bind('cn=Joe User,cn=People,dc=example,dc=com\",\npassword => 'secret');\n$mesg = $ldap->whoami();\ndie \"error: \", $mesg->code(), \": \", $mesg->error()  if ($mesg->code());\nprint \"you are bound with authzId \", $mesg->response(), \"\\n\";",
    "sections": {
        "NAME": {
            "content": "Net::LDAP::Extension::WhoAmI - LDAP \"Who am I?\" Operation\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "use Net::LDAP;\nuse Net::LDAP::Extension::WhoAmI;\n\n$ldap = Net::LDAP->new( \"ldap.mydomain.eg\" );\n\n$ldap->bind('cn=Joe User,cn=People,dc=example,dc=com\",\npassword => 'secret');\n\n$mesg = $ldap->whoami();\n\ndie \"error: \", $mesg->code(), \": \", $mesg->error()  if ($mesg->code());\n\nprint \"you are bound with authzId \", $mesg->response(), \"\\n\";\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "\"Net::LDAP::Extension::WhoAmI\" implements the \"Who am I?\" extended LDAPv3 operation as described\nin RFC 4532.\n\nIt implements no object by itself but extends the Net::LDAP object by another method:\n",
            "subsections": []
        },
        "METHODS": {
            "content": "whoami\nObtain the authorization identity which the server has associated with the user or\napplication entity.\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "Net::LDAP, Net::LDAP::Extension\n",
            "subsections": []
        },
        "AUTHOR": {
            "content": "Norbert Klasen <norbert.klasen@avinci.de>,\n\nPlease report any bugs, or post any suggestions, to the perl-ldap mailing list\n<perl-ldap@perl.org>\n",
            "subsections": []
        },
        "COPYRIGHT": {
            "content": "Copyright (c) 2002-2004 Graham Barr. All rights reserved. This program is free software; you can\nredistribute it and/or modify it under the same terms as Perl itself.\n",
            "subsections": []
        }
    },
    "summary": "Net::LDAP::Extension::WhoAmI - LDAP \"Who am I?\" Operation",
    "flags": [],
    "examples": [],
    "see_also": []
}