| 1 | <?xml version="1.0" encoding="UTF-8"?> |
| 2 | <oval_definitions xsi:schemaLocation="http://oval.mitre.org/XMLSchema/oval-definitions-5 oval-definitions-schema.xsd http://oval.mitre.org/XMLSchema/oval-definitions-5#independent independent-definitions-schema.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5" xmlns:oval-def="http://oval.mitre.org/XMLSchema/oval-definitions-5" xmlns:oval="http://oval.mitre.org/XMLSchema/oval-common-5" xmlns:ind-def="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 3 | <generator> |
| 4 | <oval:schema_version>5.10.1</oval:schema_version> |
| 5 | <oval:timestamp>2009-01-12T10:41:00-05:00</oval:timestamp> |
| 6 | <terms_of_use>Copyright (c) 2002-2012, The MITRE Corporation. All rights reserved. The contents of this file are subject to the license described in terms.txt.</terms_of_use> |
| 7 | </generator> |
| 8 | <definitions> |
| 9 | <definition id="oval:org.mitre.oval.test:def:180" version="1" class="miscellaneous"> |
| 10 | <metadata> |
| 11 | <title>Evaluate to true if the ind-def:ldap_test probe is properly supported</title> |
| 12 | <description>This definition is intended to evalutate to true if the interpreter properly supports the ind-def:ldap_test probe.</description> |
| 13 | </metadata> |
| 14 | <notes> |
| 15 | <note>It is important to note that the values used in this test definition are specific to a particular machine, and may not necessarily apply to your system. As a result, in order to have the definition return a result of 'true', you must either change these values to the ones found on your particular system, or you must configure your system to use these values.</note> |
| 16 | <note>Information regarding the ldap directory can be found by navigating to Start->Run... and type 'ldp' on Windows systems or by using the ldapsearch tool on UNIX systems.</note> |
| 17 | </notes> |
| 18 | <criteria operator="AND"> |
| 19 | <criterion comment="Test that an ldap_object with only a suffix is supported." test_ref="oval:org.mitre.oval.test:tst:313"/> |
| 20 | <criterion comment="Test that an ldap_object with a suffix and a relative_dn is supported." test_ref="oval:org.mitre.oval.test:tst:1012"/> |
| 21 | <criterion comment="Test that an ldap_object with a suffix and a relative_dn and attribute is supported." test_ref="oval:org.mitre.oval.test:tst:976"/> |
| 22 | <criterion comment="Test that an ldap_object with a suffix and a relative_dn where a pattern match is used and attribute is supported." test_ref="oval:org.mitre.oval.test:tst:445"/> |
| 23 | <criterion comment="Test that an ldap_object with a suffix and a relative_dn and attribute pattern match is used is supported." test_ref="oval:org.mitre.oval.test:tst:230"/> |
| 24 | <criterion comment="Test that an ldap_object with scope behavior is supported." test_ref="oval:org.mitre.oval.test:tst:799"/> |
| 25 | </criteria> |
| 26 | </definition> |
| 27 | </definitions> |
| 28 | <tests> |
| 29 | <ldap_test id="oval:org.mitre.oval.test:tst:313" version="1" comment="Test that an ldap_object with only a suffix is supported." check_existence="at_least_one_exists" check="at least one" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 30 | <object object_ref="oval:org.mitre.oval.test:obj:545"/> |
| 31 | <state state_ref="oval:org.mitre.oval.test:ste:85"/> |
| 32 | </ldap_test> |
| 33 | <ldap_test id="oval:org.mitre.oval.test:tst:1012" version="1" comment="Test that an ldap_object with a suffix and a relative_dn is supported." check_existence="at_least_one_exists" check="at least one" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 34 | <object object_ref="oval:org.mitre.oval.test:obj:843"/> |
| 35 | <state state_ref="oval:org.mitre.oval.test:ste:230"/> |
| 36 | </ldap_test> |
| 37 | <ldap_test id="oval:org.mitre.oval.test:tst:976" version="1" comment="Test that an ldap_object with a suffix and a relative_dn and attribute is supported." check_existence="at_least_one_exists" check="at least one" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 38 | <object object_ref="oval:org.mitre.oval.test:obj:633"/> |
| 39 | <state state_ref="oval:org.mitre.oval.test:ste:558"/> |
| 40 | </ldap_test> |
| 41 | <ldap_test id="oval:org.mitre.oval.test:tst:445" version="1" comment="Test that an ldap_object with a suffix and a relative_dn where a pattern match is used and attribute is supported." check_existence="at_least_one_exists" check="at least one" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 42 | <object object_ref="oval:org.mitre.oval.test:obj:388"/> |
| 43 | <state state_ref="oval:org.mitre.oval.test:ste:955"/> |
| 44 | </ldap_test> |
| 45 | <ldap_test id="oval:org.mitre.oval.test:tst:230" version="1" comment="Test that an ldap_object with a suffix and a relative_dn and attribute pattern match is used is supported." check_existence="at_least_one_exists" check="at least one" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 46 | <object object_ref="oval:org.mitre.oval.test:obj:659"/> |
| 47 | <state state_ref="oval:org.mitre.oval.test:ste:320"/> |
| 48 | </ldap_test> |
| 49 | <ldap_test id="oval:org.mitre.oval.test:tst:799" version="1" comment="Test that an ldap_object with scope behavior is supported." check_existence="at_least_one_exists" check="only one" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 50 | <object object_ref="oval:org.mitre.oval.test:obj:945"/> |
| 51 | <state state_ref="oval:org.mitre.oval.test:ste:889"/> |
| 52 | </ldap_test> |
| 53 | </tests> |
| 54 | <objects> |
| 55 | <ldap_object id="oval:org.mitre.oval.test:obj:545" version="1" comment="Retrieve the ldap_item with the suffix equal to 'dc=example,dc=org'." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 56 | <suffix>dc=example,dc=org</suffix> |
| 57 | <relative_dn xsi:nil="true"/> |
| 58 | <attribute xsi:nil="true"/> |
| 59 | </ldap_object> |
| 60 | <ldap_object id="oval:org.mitre.oval.test:obj:843" version="1" comment="Retrieve the ldap_item with the suffix equal to 'dc=example,dc=org' and the relative_dn equal to 'ou=itim'." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 61 | <suffix>dc=example,dc=org</suffix> |
| 62 | <relative_dn>ou=itim</relative_dn> |
| 63 | <attribute xsi:nil="true"/> |
| 64 | </ldap_object> |
| 65 | <ldap_object id="oval:org.mitre.oval.test:obj:633" version="1" comment="Retrieve the ldap_item with the suffix equal to 'dc=example,dc=org', the relative distinguished name equal to 'ou=itim', and the attribute equal to 'ou'." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 66 | <suffix>dc=example,dc=org</suffix> |
| 67 | <relative_dn>ou=itim</relative_dn> |
| 68 | <attribute>ou</attribute> |
| 69 | </ldap_object> |
| 70 | <ldap_object id="oval:org.mitre.oval.test:obj:388" version="1" comment="Retrieve the ldap_items with the suffix equal to 'dc=example,dc=org', the relative distinguished name matches the regular expression '^o.=i.i.$', and the attribute equals 'ou'." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 71 | <suffix>dc=example,dc=org</suffix> |
| 72 | <relative_dn operation="pattern match">^o.=i.i.$</relative_dn> |
| 73 | <attribute>ou</attribute> |
| 74 | </ldap_object> |
| 75 | <ldap_object id="oval:org.mitre.oval.test:obj:659" version="1" comment="Retrieve the ldap_items with the suffix 'dc=example,dc=org', the relative distinguished name 'ou=itim', and an attribaute that matches the regular expression '^o[a-z]{1}$'." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 76 | <suffix>dc=example,dc=org</suffix> |
| 77 | <relative_dn>ou=itim</relative_dn> |
| 78 | <attribute operation="pattern match">^o[a-z]{1}$</attribute> |
| 79 | </ldap_object> |
| 80 | <ldap_object id="oval:org.mitre.oval.test:obj:945" version="1" comment="Retrieve the ldap_item starting with the suffix 'dc=example,dc=org', the relative distinguished name 'ou=itim', searching one level down, and an attribaute that equals 'ou'." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 81 | <behaviors scope="ONE"/> |
| 82 | <suffix>dc=example,dc=org</suffix> |
| 83 | <relative_dn>ou=itim</relative_dn> |
| 84 | <attribute>ou</attribute> |
| 85 | </ldap_object> |
| 86 | </objects> |
| 87 | <states> |
| 88 | <ldap_state id="oval:org.mitre.oval.test:ste:85" version="1" comment="This state represents an ldap_item that has a suffix of 'dc=example,dc=org'." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 89 | <suffix>dc=example,dc=org</suffix> |
| 90 | </ldap_state> |
| 91 | <ldap_state id="oval:org.mitre.oval.test:ste:230" version="1" comment="This state represents an ldap_item object that has a suffix of 'dc=example,dc=org' and a relative_dn of 'ou=itim'." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 92 | <suffix>dc=example,dc=org</suffix> |
| 93 | <relative_dn>ou=itim</relative_dn> |
| 94 | </ldap_state> |
| 95 | <ldap_state id="oval:org.mitre.oval.test:ste:558" version="1" comment="This state represents an ldap_item object that has a suffix of 'dc=example,dc=org', a relative distinguished name of 'ou=itim', an attribute 'ou', an object class of 'top;organizationalUnit;', an ldaptype of 'LDAPTYPE_DN_STRING', and a value of 'itim'." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 96 | <suffix>dc=example,dc=org</suffix> |
| 97 | <relative_dn>ou=itim</relative_dn> |
| 98 | <attribute>ou</attribute> |
| 99 | <object_class>top;organizationalUnit;</object_class> |
| 100 | <ldaptype>LDAPTYPE_DN_STRING</ldaptype> |
| 101 | <value>itim</value> |
| 102 | </ldap_state> |
| 103 | <ldap_state id="oval:org.mitre.oval.test:ste:955" version="1" comment="This state represents an ldap_item object that has a suffix of 'dc=example,dc=org', a relative distinguished name that matches the regular expression '.*', an attribute of 'ou', an object class of 'top;organizationalUnit;', an ldaptype of 'LDAPTYPE_DN_STRING', and a value that matches the regular expression '.*'." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 104 | <suffix>dc=example,dc=org</suffix> |
| 105 | <relative_dn operation="pattern match">.*</relative_dn> |
| 106 | <attribute>ou</attribute> |
| 107 | <object_class>top;organizationalUnit;</object_class> |
| 108 | <ldaptype>LDAPTYPE_DN_STRING</ldaptype> |
| 109 | <value operation="pattern match">.*</value> |
| 110 | </ldap_state> |
| 111 | <ldap_state id="oval:org.mitre.oval.test:ste:320" version="1" comment="This state represents an ldap_item object that has a suffix of 'dc=example,dc=org', a relative distinguished name of 'ou=itim', an attribute that matches the regular expression '^o[a-z]{1}$', an object class that equals 'top;organizationalUnit;', an ldaptype of 'LDAPTYPE_DN_STRING', and a value of 'itim'." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 112 | <suffix>dc=example,dc=org</suffix> |
| 113 | <relative_dn>ou=itim</relative_dn> |
| 114 | <attribute operation="pattern match">^o[a-z]{1}$</attribute> |
| 115 | <object_class>top;organizationalUnit;</object_class> |
| 116 | <ldaptype>LDAPTYPE_DN_STRING</ldaptype> |
| 117 | <value>itim</value> |
| 118 | </ldap_state> |
| 119 | <ldap_state id="oval:org.mitre.oval.test:ste:889" version="1" comment="This state represents an ldap_item object that has a suffix of 'dc=example,dc=org', a relative distinguished name of 'ou=constraints,ou=itim', an attribute that equals 'ou', an object class of 'top;organizationalUnit;', an ldaptype of 'LDAPTYPE_DN_STRING', and a value of 'constraints'." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 120 | <suffix>dc=example,dc=org</suffix> |
| 121 | <relative_dn>ou=constraints,ou=itim</relative_dn> |
| 122 | <attribute>ou</attribute> |
| 123 | <object_class>top;organizationalUnit;</object_class> |
| 124 | <ldaptype>LDAPTYPE_DN_STRING</ldaptype> |
| 125 | <value>constraints</value> |
| 126 | </ldap_state> |
| 127 | </states> |
| 128 | </oval_definitions> |