{
    "mode": "perldoc",
    "parameter": "Net::LDAP::Control::PersistentSearch",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/perldoc/Net%3A%3ALDAP%3A%3AControl%3A%3APersistentSearch/json",
    "generated": "2026-06-13T18:37:39Z",
    "synopsis": "use Net::LDAP;\nuse Net::LDAP::Control::PersistentSearch;\n$ldap = Net::LDAP->new( \"ldap.mydomain.eg\" );\n$persist = Net::LDAP::Control::PersistentSearch->new( changeTypes => 15,\nchangesOnly => 1,\nreturnECs => 1 );\n$srch = $ldap->search( base     => \"cn=People,dc=mydomain,dc=eg\",\nfilter   => \"(objectClass=person)\",\ncallback => \\&processentry, # call for each entry\ncontrol  => [ $persist ] );\ndie \"error: \",$srch->code(),\": \",$srch->error()  if ($srch->code());\nsub processentry {\nmy $message = shift;\nmy $entry = shift;\nprint $entry->dn().\"\\n\";\n# reduce memory usage\n$message->popentry();\n}",
    "sections": {
        "NAME": {
            "content": "Net::LDAP::Control::PersistentSearch - LDAPv3 Persistent Search control object\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "use Net::LDAP;\nuse Net::LDAP::Control::PersistentSearch;\n\n$ldap = Net::LDAP->new( \"ldap.mydomain.eg\" );\n\n$persist = Net::LDAP::Control::PersistentSearch->new( changeTypes => 15,\nchangesOnly => 1,\nreturnECs => 1 );\n\n$srch = $ldap->search( base     => \"cn=People,dc=mydomain,dc=eg\",\nfilter   => \"(objectClass=person)\",\ncallback => \\&processentry, # call for each entry\ncontrol  => [ $persist ] );\n\ndie \"error: \",$srch->code(),\": \",$srch->error()  if ($srch->code());\n\nsub processentry {\nmy $message = shift;\nmy $entry = shift;\n\nprint $entry->dn().\"\\n\";\n\n# reduce memory usage\n$message->popentry();\n}\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "\"Net::LDAP::Control::PersistentSearch\" provides an interface for the creation and manipulation\nof objects that represent the \"PersistentSearch\" control as described by\ndraft-smith-psearch-ldap-03.txt.\n",
            "subsections": []
        },
        "CONSTRUCTOR ARGUMENTS": {
            "content": "In addition to the constructor arguments described in Net::LDAP::Control the following are\nprovided.\n\nchangeTypes\nAn integer value determining the types of changes to look out for. It is the bitwise OR of\nthe following values (which represent the LDAP operations indicated next to them):\n\n1 = add\n2 = delete\n4 = modify\n8 = modDN\n\nIf it is not given it defaults to 15 meaning all changes.\n\nchangesOnly\nA Boolean value telling whether the server may return entries that match the search\ncriteria.\n\nIf \"TRUE\" the server must not return any existing entries that match the search criteria.\nEntries are only returned when they are changed (added, modified, deleted, or subject to a\nmodifyDN operation)\n\nreturnECs\nIf \"TRUE\", the server must return an Entry Change Notification control with each entry\nreturned as the result of changes.\n\nSee Net::LDAP::Control::EntryChange for details.\n",
            "subsections": []
        },
        "METHODS": {
            "content": "As with Net::LDAP::Control each constructor argument described above is also available as a\nmethod on the object which will return the current value for the attribute if called without an\nargument, and set a new value for the attribute if called with an argument.\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "Net::LDAP, Net::LDAP::Control, Net::LDAP::Control::EntryChange\n",
            "subsections": []
        },
        "AUTHOR": {
            "content": "Peter Marschall <peter@adpm.de>, based on Net::LDAP::Control::Page from Graham Barr\n<gbarr@pobox.com> and the preparatory work of Don Miller <donm@uidaho.edu>.\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) 2004 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::Control::PersistentSearch - LDAPv3 Persistent Search control object",
    "flags": [],
    "examples": [],
    "see_also": []
}