{
    "mode": "perldoc",
    "parameter": "Net::LDAP::Control::MatchedValues",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/perldoc/Net%3A%3ALDAP%3A%3AControl%3A%3AMatchedValues/json",
    "generated": "2026-06-13T18:40:40Z",
    "synopsis": "use Net::LDAP;\nuse Net::LDAP::Control::MatchedValues;\n$ldap = Net::LDAP->new( \"ldap.mydomain.eg\" );\n$mv = Net::LDAP::Control::MatchedValues->new( matchedValues => '((sn=Jensen)(sn=Miller))' );\n# return the entries of all people with first name \"Babs\",\n# but only show the sn if it is \"Jensen\" or \"Miller\"\nmy $mesg = $ldap->search( base => \"o=University of Michigan, c=US\",\nfilter => \"(givenName=Babs)\",\nattrs => [ qw/sn/ ],\ncontrol => $mv );",
    "sections": {
        "NAME": {
            "content": "Net::LDAP::Control::MatchedValues - LDAPv3 MatchedValues Control\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "use Net::LDAP;\nuse Net::LDAP::Control::MatchedValues;\n\n$ldap = Net::LDAP->new( \"ldap.mydomain.eg\" );\n\n$mv = Net::LDAP::Control::MatchedValues->new( matchedValues => '((sn=Jensen)(sn=Miller))' );\n\n# return the entries of all people with first name \"Babs\",\n# but only show the sn if it is \"Jensen\" or \"Miller\"\nmy $mesg = $ldap->search( base => \"o=University of Michigan, c=US\",\nfilter => \"(givenName=Babs)\",\nattrs => [ qw/sn/ ],\ncontrol => $mv );\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "\"Net::LDAP::Control::MatchedValues\" provides an interface for the creation and manipulation of\nobjects that represent the \"MatchedValues Control\" as described by RFC 3876.\n\nThe \"MatchedValues Control\", which only has a meaning with the \"Search\" operation, allows the\nclient to specify criteria that restrict the values of attributes returned. It has no effect on\nthe number of objects found, but only allows one to restrict the values of the attributes\nreturned by the search to those matching the criteria.\n",
            "subsections": []
        },
        "CONSTRUCTOR ARGUMENTS": {
            "content": "In addition to the constructor arguments described in Net::LDAP::Control the following are\nprovided.\n\nmatchedValues => VALUESRETURNFILTER\nA filter giving the criteria which attribute values shall be returned.\n\nVALUESRETURNFILTER is a sequence of simple filter items of the form \"( <ATTRSPEC> <OP>\n<VALUE> )\" surrounded by an additional set of parentheses; e.g.\n\n((personsAge<=29))\nOnly return the age if is less than 30 ;-)\n\n((cn=*Emergency*)(telephoneNumber=+1*)(telephoneNumber=911))\nOnly return those values of the cn that contain \"Emergency\", and phone numbers from\nNorth America including the one for emergency calls.\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/rfc3876.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::MatchedValues - LDAPv3 MatchedValues Control",
    "flags": [],
    "examples": [],
    "see_also": []
}