{
    "mode": "perldoc",
    "parameter": "Net::LDAP::Extra::AD",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/perldoc/Net%3A%3ALDAP%3A%3AExtra%3A%3AAD/json",
    "generated": "2026-06-13T14:10:50Z",
    "synopsis": "use Net::LDAP::Extra qw(AD);\n$ldap = Net::LDAP->new( ... );\n...\nif ($ldap->isAD || $ldap->isADAM) {\n$ldap->changeADpassword($dn, $oldpassword, $newpassword);\n}",
    "sections": {
        "NAME": {
            "content": "Net::LDAP::Extra::AD -- AD convenience methods\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "use Net::LDAP::Extra qw(AD);\n\n$ldap = Net::LDAP->new( ... );\n\n...\n\nif ($ldap->isAD || $ldap->isADAM) {\n$ldap->changeADpassword($dn, $oldpassword, $newpassword);\n}\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "Net::LDAP::Extra::AD tries to spare users the necessity to reinvent the wheel again and again in\norder to correctly encode password strings so that they can be used in AD password change\noperations.\n\nTo do so, it provides the following methods:\n",
            "subsections": []
        },
        "METHODS": {
            "content": "isAD ( )\nTell if the LDAP server queried is an Active Directory Domain Controller.\n\nAs the check is done by querying the root DSE of the directory, it works without being bound\nto the directory.\n\nisADAM ( )\nTell if the LDAP server queried is running AD LDS (Active Directory Lightweight Directory\nServices), previously known as ADAM (Active Directory Application Mode).\n\nAs the check is done by querying the root DSE of the directory, it works without being bound\nto the directory.\n\nchangeADpassword ( DN, OLDPASSWORD, NEWPASSWORD )\nChange the password of the account given by *DN* from its old value *OLDPASSWORD* to the\nnew value *NEWPASSWORD*.\n\nThis method requires encrypted connections.\n\nresetADpassword ( DN, NEWPASSWORD, OPTIONS )\nReset the password of the account given by *DN* to the value given in *NEWPASSWORD*.\nOPTIONS is a list of key/value pairs. The following keys are recognized:\n\nforcechange\nIf TRUE, the affected user is required to change the password at next login.\n\nFor this method to work, the caller needs to be bound to AD with sufficient permissions, and\nthe connection needs to be encrypted.\n",
            "subsections": []
        },
        "AUTHOR": {
            "content": "Peter Marschall <peter@adpm.de<gt>\n",
            "subsections": []
        },
        "COPYRIGHT": {
            "content": "Copyright (c) 2012 Peter Marschall. 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::Extra::AD -- AD convenience methods",
    "flags": [],
    "examples": [],
    "see_also": []
}