{
    "mode": "info",
    "parameter": "Net::LDAP::Control::SortResult",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/info/Net%3A%3ALDAP%3A%3AControl%3A%3ASortResult/json",
    "generated": "2026-07-07T10:02:16Z",
    "synopsis": "use Net::LDAP::Control::Sort;\nuse Net::LDAP::Constant qw(LDAPCONTROLSORTRESULT);\nuse Net::LDAP::Util qw(ldaperrorname);\n$sort = Net::LDAP::Control::Sort->new(\norder => \"cn -age\"\n);\n$mesg = $ldap->search( @args, control => [ $sort ]);\n($resp) = $mesg->control( LDAPCONTROLSORTRESULT );\nif ($resp) {\nif ($resp->result) {\nmy $attr = $resp->attr;\nprint \"Problem sorting, \",ldaperrorname($resp->result);\nprint \" ($attr)\"  if $attr;\nprint \"\\n\";\n}\nelse {\nprint \"Results are sorted\\n\";\n}\n}\nelse {\nprint \"Server does not support sorting\\n\";\n}",
    "sections": {
        "Net::LDAP::Control::SoUsersContributed PerlNet::LDAP::Control::SortResult(3pm)": {
            "content": "",
            "subsections": []
        },
        "NAME": {
            "content": "Net::LDAP::Control::SortResult - Server Side Sort (SSS) result control\nobject\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "use Net::LDAP::Control::Sort;\nuse Net::LDAP::Constant qw(LDAPCONTROLSORTRESULT);\nuse Net::LDAP::Util qw(ldaperrorname);\n\n$sort = Net::LDAP::Control::Sort->new(\norder => \"cn -age\"\n);\n\n$mesg = $ldap->search( @args, control => [ $sort ]);\n\n($resp) = $mesg->control( LDAPCONTROLSORTRESULT );\n\nif ($resp) {\nif ($resp->result) {\nmy $attr = $resp->attr;\nprint \"Problem sorting, \",ldaperrorname($resp->result);\nprint \" ($attr)\"  if $attr;\nprint \"\\n\";\n}\nelse {\nprint \"Results are sorted\\n\";\n}\n}\nelse {\nprint \"Server does not support sorting\\n\";\n}\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "\"Net::LDAP::Control::SortResult\" is a sub-class of Net::LDAP::Control.\nIt provides a class for manipulating the LDAP sort request control\n1.2.840.113556.1.4.474 as defined in RFC-2891\n\nA sort result control will be returned by the server in response to a\nsearch with a Server Side Sort control. If a sort result control is not\nreturned then the user may assume that the server does not support\nsorting and the results are not sorted.\n",
            "subsections": []
        },
        "CONSTRUCTOR ARGUMENTS": {
            "content": "attr\nIf \"result\" indicates that there was a problem with sorting and\nthat problem was due to one of the attributes specified in the sort\ncontrol. \"attr\" is set to the name of the attribute causing the\nproblem.\n\nresult\nThis is the result code that describes if the sort operation was\nsuccessful. If will be one of the result codes describes below.\n",
            "subsections": []
        },
        "METHODS": {
            "content": "As with Net::LDAP::Control each constructor argument described above is\nalso available as a method on the object which will return the current\nvalue for the attribute if called without an argument, and set a new\nvalue for the attribute if called with an argument.\n",
            "subsections": []
        },
        "RESULT CODES": {
            "content": "Possible results from a sort request are listed below. See\nNet::LDAP::Constant for a definition of each.\n\nLDAPSUCCESS\nLDAPOPERATIONSERROR\nLDAPTIMELIMITEXCEEDED\nLDAPSTRONGAUTHREQUIRED\nLDAPADMINLIMITEXCEEDED\nLDAPNOSUCHATTRIBUTE\nLDAPINAPPROPRIATEMATCHING\nLDAPINSUFFICIENTACCESS\nLDAPBUSY\nLDAPUNWILLINGTOPERFORM\nLDAPOTHER\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "Net::LDAP, Net::LDAP::Control::Sort, Net::LDAP::Control,\nhttp://ww.ietf.org/rfc/rfc2891.txt\n",
            "subsections": []
        },
        "AUTHOR": {
            "content": "Graham Barr <gbarr@pobox.com>\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) 1999-2004 Graham Barr. 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-0Net::LDAP::Control::SortResult(3pm)",
            "subsections": []
        }
    },
    "summary": "Net::LDAP::Control::SortResult - Server Side Sort (SSS) result control object",
    "flags": [],
    "examples": [],
    "see_also": []
}