{
    "content": [
        {
            "type": "text",
            "text": "# Net::LDAP::Extension::WhoAmI (perldoc)\n\n## NAME\n\nNet::LDAP::Extension::WhoAmI - LDAP \"Who am I?\" Operation\n\n## SYNOPSIS\n\nuse 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\";\n\n## DESCRIPTION\n\n\"Net::LDAP::Extension::WhoAmI\" implements the \"Who am I?\" extended LDAPv3 operation as described\nin RFC 4532.\n\n## Sections\n\n- **NAME**\n- **SYNOPSIS**\n- **DESCRIPTION**\n- **METHODS**\n- **SEE ALSO**\n- **AUTHOR**\n- **COPYRIGHT**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "Net::LDAP::Extension::WhoAmI",
        "section": "",
        "mode": "perldoc",
        "summary": "Net::LDAP::Extension::WhoAmI - LDAP \"Who am I?\" Operation",
        "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\";",
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [],
        "examples": [],
        "see_also": [],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 14,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 5,
                "subsections": []
            },
            {
                "name": "METHODS",
                "lines": 4,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "AUTHOR",
                "lines": 5,
                "subsections": []
            },
            {
                "name": "COPYRIGHT",
                "lines": 3,
                "subsections": []
            }
        ],
        "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": []
            }
        }
    }
}