{
    "mode": "perldoc",
    "parameter": "Net::LDAP::Extension::Refresh",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/perldoc/Net%3A%3ALDAP%3A%3AExtension%3A%3ARefresh/json",
    "generated": "2026-06-09T16:04:57Z",
    "synopsis": "use Net::LDAP;\nuse Net::LDAP::Extension::Refresh;\n$ldap = Net::LDAP->new('localhost');\n$ldap->bind('cn=admin,dc=example,dc=com', password => 'password');\n$mesg = $ldap->refresh(entryName => 'cn=dynamic,dc=example,dc=com',\nrequestTtl => 100);\ndie \"error :\", $mesg->code(), \": \", $mesg->error()  if ($mesg->code());\nprint \"TTL changed to \", $mesg->getttl(), \"\\n\";",
    "sections": {
        "NAME": {
            "content": "Net::LDAP::Extension::Refresh - LDAPv3 Refresh extension object (RFC 2589)\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "use Net::LDAP;\nuse Net::LDAP::Extension::Refresh;\n\n$ldap = Net::LDAP->new('localhost');\n$ldap->bind('cn=admin,dc=example,dc=com', password => 'password');\n\n$mesg = $ldap->refresh(entryName => 'cn=dynamic,dc=example,dc=com',\nrequestTtl => 100);\ndie \"error :\", $mesg->code(), \": \", $mesg->error()  if ($mesg->code());\nprint \"TTL changed to \", $mesg->getttl(), \"\\n\";\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "\"Net::LDAP::Extension::Refresh\" implements the \"Refresh\" extended LDAPv3 operation as described\nin RFC 2589\n\nIt implements no object by itself but extends the Net::LDAP object by another method:\n",
            "subsections": []
        },
        "METHODS": {
            "content": "refresh ( OPTIONS )\nSend a refresh operation for an object.\n\nOPTIONS is a list of key/value pairs. The following keys are recognized:\n\nentryName\nThis option contains the object to refresh. It must be a DN.\n\nrequestTtl\nThis option contains the TTL in seconds requested. The server may choose to set another\nvalue as stated in RFC 2589\n\ngetttl ( )\nReturn the TTL set by the server during the previous \"refresh\" call.\n\nThis method is a method of the Net::LDAP::Message response object returned in reply to\n\"refresh()\" in case the \"refresh()\" call succeeded.\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "Net::LDAP, Net::LDAP::Extension\n",
            "subsections": []
        },
        "AUTHOR": {
            "content": "Etienne Bagnoud <etienne.bagnoud@irovision.ch> Adapted from Graham Barr\nNet::LDAP::Extension::SetPassword Documentation adapted from Peter Marschall\nNet::LDAP::Extension::SetPassword\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) 2010 Etienne Bagnoud. 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::Refresh - LDAPv3 Refresh extension object (RFC 2589)",
    "flags": [],
    "examples": [],
    "see_also": []
}