{
    "mode": "info",
    "parameter": "Net::LDAP::Extension::Cancel",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/info/Net%3A%3ALDAP%3A%3AExtension%3A%3ACancel/json",
    "generated": "2026-07-07T10:01:31Z",
    "synopsis": "use Net::LDAP;\nuse Net::LDAP::Constant qw(LDAPSUCCESS LDAPCANCELED)\nuse Net::LDAP::Extension::Cancel;\n$ldap = Net::LDAP->new( 'ldap.mydomain.eg' );\n$ldap->bind('cn=Joe User,cn=People,dc=example,dc=com',\npassword => 'secret');\n$search = $ldap->search(\nbase     => 'c=US',\nfilter   => '(&(sn=Barr) (o=Texas Instruments))',\ncallback => \\&processentry, # Call this sub for each entry\n);\n$mesg = $ldap->cancel($search);\ndie \"error :\", $mesg->code(), \": \", $mesg->error()\nif ($mesg->code() != LDAPCANCELED && mesg->code() != LDAPSUCCESS);",
    "sections": {
        "Net::LDAP::Extension::UsereContributed Perl DNet::LDAP::Extension::Cancel(3pm)": {
            "content": "",
            "subsections": []
        },
        "NAME": {
            "content": "Net::LDAP::Extension::Cancel - LDAP Cancel Operation\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "use Net::LDAP;\nuse Net::LDAP::Constant qw(LDAPSUCCESS LDAPCANCELED)\nuse Net::LDAP::Extension::Cancel;\n\n$ldap = Net::LDAP->new( 'ldap.mydomain.eg' );\n\n$ldap->bind('cn=Joe User,cn=People,dc=example,dc=com',\npassword => 'secret');\n\n$search = $ldap->search(\nbase     => 'c=US',\nfilter   => '(&(sn=Barr) (o=Texas Instruments))',\ncallback => \\&processentry, # Call this sub for each entry\n);\n\n$mesg = $ldap->cancel($search);\n\ndie \"error :\", $mesg->code(), \": \", $mesg->error()\nif ($mesg->code() != LDAPCANCELED && mesg->code() != LDAPSUCCESS);\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "\"Net::LDAP::Extension::Cancel\" implements the \"Cancel\" extended LDAPv3\noperation as described in RFC 3909.\n\nThe \"Cancel\" extended operation is very similar to the \"Abandon\"\nstandard operation, and has the same call signature.  Unlike the\n\"Abandon\" operation, it has a response which provides an indication of\nits outcome.\n\nIt implements no object by itself but extends the Net::LDAP object by\nanother method:\n",
            "subsections": []
        },
        "METHODS": {
            "content": "cancel ( OPERATION, OPTIONS )\nCancel an outstanding operation. \"OPERATION\" may be a number or an\nobject which is a sub-class of Net::LDAP::Message, returned from a\nprevious method call.\n\nOPTIONS is a list of key/value pairs. The following keys are\nrecognized:\n\ncontrol => CONTROL\ncontrol => [ CONTROL, .. ]\nControl(s) to be passed to the operation.\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "Net::LDAP, Net::LDAP::Extension\n",
            "subsections": []
        },
        "AUTHOR": {
            "content": "Peter Marschall <peter@adpm.de>.\n\nPlease report any bugs, or post any suggestions, to the perl-ldap\nmailing list <perl-ldap@perl.org>\n",
            "subsections": []
        },
        "COPYRIGHT": {
            "content": "Copyright (c) 2011 Peter Marschall. All rights reserved. This program\nis free software; you can redistribute it and/or modify it under the\nsame terms as Perl itself.\n\nperl v5.32.0                      2021-01-03 Net::LDAP::Extension::Cancel(3pm)",
            "subsections": []
        }
    },
    "summary": "Net::LDAP::Extension::Cancel - LDAP Cancel Operation",
    "flags": [],
    "examples": [],
    "see_also": []
}