{
    "mode": "perldoc",
    "parameter": "Net::LDAP::Control::Assertion",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/perldoc/Net%3A%3ALDAP%3A%3AControl%3A%3AAssertion/json",
    "generated": "2026-06-13T18:47:45Z",
    "synopsis": "use Net::LDAP;\nuse Net::LDAP::Control::Assertion;\n$ldap = Net::LDAP->new( \"ldap.mydomain.eg\" );\n$assert = Net::LDAP::Control::Assertion->new( assertion => '(sn=Jensen)' );\nmy $mesg = $ldap->modify( \"cn=Barbara Jensen, o=University of Michigan, c=US\",\nreplace => { givenName => \"Babs\" },\ncontrol => $assert );",
    "sections": {
        "NAME": {
            "content": "Net::LDAP::Control::Assertion - LDAPv3 Assertion Control\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "use Net::LDAP;\nuse Net::LDAP::Control::Assertion;\n\n$ldap = Net::LDAP->new( \"ldap.mydomain.eg\" );\n\n$assert = Net::LDAP::Control::Assertion->new( assertion => '(sn=Jensen)' );\n\nmy $mesg = $ldap->modify( \"cn=Barbara Jensen, o=University of Michigan, c=US\",\nreplace => { givenName => \"Babs\" },\ncontrol => $assert );\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "\"Net::LDAP::Control::Assertion\" provides an interface for the creation and manipulation of\nobjects that represent the \"Assertion Control\" as described by RFC 4528.\n\nThe \"Assertion Control\" allows the client to specify a condition, an assertion, that must be\nTRUE for the operation to be processed normally. Otherwise, the operation is not performed. For\ninstance, the control can be used with the Modify operation to perform atomic \"test and set\" and\n\"test and clear\" operations.\n\nThe control is appropriate for both LDAP interrogation and update operations, including Add,\nCompare, Delete, Modify, ModifyDN (rename), and Search.\n",
            "subsections": []
        },
        "CONSTRUCTOR ARGUMENTS": {
            "content": "In addition to the constructor arguments described in Net::LDAP::Control the following are\nprovided.\n\nassertion => FILTER\nA filter specifying the assertion that must evaluate to TRUE in order to make the operation\nprocess normally.\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, http://www.ietf.org/rfc/rfc4528.txt\n",
            "subsections": []
        },
        "AUTHOR": {
            "content": "Peter Marschall <peter@adpm.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) 2011 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::Assertion - LDAPv3 Assertion Control",
    "flags": [],
    "examples": [],
    "see_also": []
}