{
    "mode": "perldoc",
    "parameter": "Net::LDAP::Control::EntryChange",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/perldoc/Net%3A%3ALDAP%3A%3AControl%3A%3AEntryChange/json",
    "generated": "2026-06-13T18:20:11Z",
    "synopsis": "use Net::LDAP;\nuse Net::LDAP::Control::PersistentSearch;\nuse Net::LDAP::Constant qw(LDAPCONTROLENTRYCHANGE);\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;\nmy ($control) = $message->control(LDAPCONTROLENTRYCHANGE);\nprint $control->changeType().\"\\t\".$entry->dn().\"\\n\";\n}",
    "sections": {
        "NAME": {
            "content": "Net::LDAP::Control::EntryChange - LDAPv3 Entry Change Notification control object\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "use Net::LDAP;\nuse Net::LDAP::Control::PersistentSearch;\nuse Net::LDAP::Constant qw(LDAPCONTROLENTRYCHANGE);\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;\nmy ($control) = $message->control(LDAPCONTROLENTRYCHANGE);\n\nprint $control->changeType().\"\\t\".$entry->dn().\"\\n\";\n}\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "\"Net::LDAP::Control::EntryChange\" provides an interface for the creation and manipulation of\nobjects that represent the \"EntryChangeNotification\" 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\nchangeType\nAn integer value telling the type of LDAP operation that the entry has undergone. It is one\nof the following values (which represent the LDAP operations indicated next to them):\n\n1 = add\n2 = delete\n4 = modify\n8 = modDN\n\npreviousDN\nWhen changeType is 8 (for modDN) this parameter tells the entry's DN before the modDN\noperation. In all other cases this value is not defined.\n\nchangeNumber\nThis is the change number according to <draft-good-ldap-changelog-03.txt> assigned by a\nserver for the change. If a server supports an LDAP Change Log it should include this field.\n\nUsually you do not need to create a \"Net::LDAP::Control::EntryChange\" control yourself because\nit is provided by the server in response to an option with the\n\"Net::LDAP::Control::PersistentSearch\" control.\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::PersistentSearch\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::EntryChange - LDAPv3 Entry Change Notification control object",
    "flags": [],
    "examples": [],
    "see_also": []
}