From 9aa56a28a76f597a749a28ce874b3695a6b3f92f Mon Sep 17 00:00:00 2001
From: mkeyes <mkeyes@localhost>
Date: Mon, 29 Oct 2007 17:08:37 +0000
Subject: [PATCH] Adding functional test cases for privileges for unindexed searches.
---
opends/tests/functional-tests/testcases/privileges/privileges.xml | 10
opends/tests/functional-tests/shared/data/privileges/privileges_unindexed_searches/50Entries.ldif | 806 ++++++++++++++++++++++++++++++++++++
opends/tests/functional-tests/testcases/privileges/privileges_unindexed_searches.xml | 486 ++++++++++++++++++++++
3 files changed, 1,299 insertions(+), 3 deletions(-)
diff --git a/opends/tests/functional-tests/shared/data/privileges/privileges_unindexed_searches/50Entries.ldif b/opends/tests/functional-tests/shared/data/privileges/privileges_unindexed_searches/50Entries.ldif
new file mode 100644
index 0000000..18d5e2a
--- /dev/null
+++ b/opends/tests/functional-tests/shared/data/privileges/privileges_unindexed_searches/50Entries.ldif
@@ -0,0 +1,806 @@
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License, Version 1.0 only
+# (the "License"). You may not use this file except in compliance
+# with the License.
+#
+# You can obtain a copy of the license at
+# trunk/opends/resource/legal-notices/OpenDS.LICENSE
+# or https://OpenDS.dev.java.net/OpenDS.LICENSE.
+# See the License for the specific language governing permissions
+# and limitations under the License.
+#
+# When distributing Covered Code, include this CDDL HEADER in each
+# file and include the License file at
+# trunk/opends/resource/legal-notices/OpenDS.LICENSE. If applicable,
+# add the following below this CDDL HEADER, with the fields enclosed
+# by brackets "[]" replaced with your own identifying information:
+# Portions Copyright [yyyy] [name of copyright owner]
+#
+# CDDL HEADER END
+#
+# Portions Copyright 2007 Sun Microsystems, Inc.
+#
+
+dn: dc=com
+dc: com
+objectclass: top
+objectclass: domain
+
+dn: dc=example,dc=com
+objectClass: top
+objectClass: domain
+dc: example
+
+dn: ou=People,dc=example,dc=com
+objectClass: top
+objectClass: organizationalunit
+ou: People
+
+dn: uid=user.0,ou=People,dc=example,dc=com
+objectClass: top
+objectClass: person
+objectClass: organizationalperson
+objectClass: inetorgperson
+givenName: Aaccf
+sn: Amar
+employeeNumber: 0
+cn: Aaccf Amar 0
+uid: user.0
+mail: user.0@example.com
+telephoneNumber: +1 077 259 5193
+facsimileTelephoneNumber: +1 509 618 8047
+description: This is the description for user.0.
+userpassword: smellyFish
+
+dn: uid=user.1,ou=People,dc=example,dc=com
+objectClass: top
+objectClass: person
+objectClass: organizationalperson
+objectClass: inetorgperson
+givenName: Aaren
+sn: Atp
+employeeNumber: 1
+cn: Aaren Atp 1
+uid: user.1
+mail: user.1@example.com
+telephoneNumber: +1 631 221 6811
+facsimileTelephoneNumber: +1 159 820 3461
+description: This is the description for user.1.
+
+dn: uid=user.2,ou=People,dc=example,dc=com
+objectClass: top
+objectClass: person
+objectClass: organizationalperson
+objectClass: inetorgperson
+givenName: Aarika
+sn: Atpco
+employeeNumber: 2
+cn: Aarika Atpco 2
+uid: user.2
+mail: user.2@example.com
+telephoneNumber: +1 245 821 4513
+facsimileTelephoneNumber: +1 505 136 3963
+description: This is the description for user.2.
+
+dn: uid=user.3,ou=People,dc=example,dc=com
+objectClass: top
+objectClass: person
+objectClass: organizationalperson
+objectClass: inetorgperson
+givenName: Aaron
+sn: Atrc
+employeeNumber: 3
+cn: Aaron Atrc 3
+uid: user.3
+mail: user.3@example.com
+telephoneNumber: +1 020 912 0138
+facsimileTelephoneNumber: +1 135 188 1934
+description: This is the description for user.3.
+
+dn: uid=user.4,ou=People,dc=example,dc=com
+objectClass: top
+objectClass: person
+objectClass: organizationalperson
+objectClass: inetorgperson
+givenName: Aartjan
+sn: Aalders
+employeeNumber: 4
+cn: Aartjan Aalders 4
+uid: user.4
+mail: user.4@example.com
+telephoneNumber: +1 058 255 7833
+facsimileTelephoneNumber: +1 654 728 8703
+description: This is the description for user.4.
+
+dn: uid=user.5,ou=People,dc=example,dc=com
+objectClass: top
+objectClass: person
+objectClass: organizationalperson
+objectClass: inetorgperson
+givenName: Abagael
+sn: Aasen
+employeeNumber: 5
+cn: Abagael Aasen 5
+uid: user.5
+mail: user.5@example.com
+telephoneNumber: +1 013 085 4149
+facsimileTelephoneNumber: +1 405 360 8433
+description: This is the description for user.5.
+
+dn: uid=user.6,ou=People,dc=example,dc=com
+objectClass: top
+objectClass: person
+objectClass: organizationalperson
+objectClass: inetorgperson
+givenName: Abagail
+sn: Abadines
+employeeNumber: 6
+cn: Abagail Abadines 6
+uid: user.6
+mail: user.6@example.com
+telephoneNumber: +1 063 766 2122
+facsimileTelephoneNumber: +1 246 622 1622
+description: This is the description for user.6.
+
+dn: uid=user.7,ou=People,dc=example,dc=com
+objectClass: top
+objectClass: person
+objectClass: organizationalperson
+objectClass: inetorgperson
+givenName: Abahri
+sn: Abazari
+employeeNumber: 7
+cn: Abahri Abazari 7
+uid: user.7
+mail: user.7@example.com
+telephoneNumber: +1 035 980 6139
+facsimileTelephoneNumber: +1 332 046 2767
+description: This is the description for user.7.
+
+dn: uid=user.8,ou=People,dc=example,dc=com
+objectClass: top
+objectClass: person
+objectClass: organizationalperson
+objectClass: inetorgperson
+givenName: Abbas
+sn: Abbatantuono
+employeeNumber: 8
+cn: Abbas Abbatantuono 8
+uid: user.8
+mail: user.8@example.com
+telephoneNumber: +1 529 205 9366
+facsimileTelephoneNumber: +1 195 556 9037
+description: This is the description for user.8.
+
+dn: uid=user.9,ou=People,dc=example,dc=com
+objectClass: top
+objectClass: person
+objectClass: organizationalperson
+objectClass: inetorgperson
+givenName: Abbe
+sn: Abbate
+employeeNumber: 9
+cn: Abbe Abbate 9
+uid: user.9
+mail: user.9@example.com
+telephoneNumber: +1 765 176 0182
+facsimileTelephoneNumber: +1 045 542 2702
+description: This is the description for user.9.
+
+dn: uid=user.10,ou=People,dc=example,dc=com
+objectClass: top
+objectClass: person
+objectClass: organizationalperson
+objectClass: inetorgperson
+givenName: Abbey
+sn: Abbie
+employeeNumber: 10
+cn: Abbey Abbie 10
+uid: user.10
+mail: user.10@example.com
+telephoneNumber: +1 444 666 3512
+facsimileTelephoneNumber: +1 692 390 1080
+description: This is the description for user.10.
+
+dn: uid=user.11,ou=People,dc=example,dc=com
+objectClass: top
+objectClass: person
+objectClass: organizationalperson
+objectClass: inetorgperson
+givenName: Abbi
+sn: Abbott
+employeeNumber: 11
+cn: Abbi Abbott 11
+uid: user.11
+mail: user.11@example.com
+telephoneNumber: +1 594 595 7653
+facsimileTelephoneNumber: +1 751 189 4266
+description: This is the description for user.11.
+
+dn: uid=user.12,ou=People,dc=example,dc=com
+objectClass: top
+objectClass: person
+objectClass: organizationalperson
+objectClass: inetorgperson
+givenName: Abbie
+sn: Abdalla
+employeeNumber: 12
+cn: Abbie Abdalla 12
+uid: user.12
+mail: user.12@example.com
+telephoneNumber: +1 475 605 7694
+facsimileTelephoneNumber: +1 105 434 6240
+description: This is the description for user.12.
+
+dn: uid=user.13,ou=People,dc=example,dc=com
+objectClass: top
+objectClass: person
+objectClass: organizationalperson
+objectClass: inetorgperson
+givenName: Abby
+sn: Abdo
+employeeNumber: 13
+cn: Abby Abdo 13
+uid: user.13
+mail: user.13@example.com
+telephoneNumber: +1 384 633 5820
+facsimileTelephoneNumber: +1 778 619 3037
+description: This is the description for user.13.
+
+dn: uid=user.14,ou=People,dc=example,dc=com
+objectClass: top
+objectClass: person
+objectClass: organizationalperson
+objectClass: inetorgperson
+givenName: Abbye
+sn: Abdollahi
+employeeNumber: 14
+cn: Abbye Abdollahi 14
+uid: user.14
+mail: user.14@example.com
+telephoneNumber: +1 620 312 3206
+facsimileTelephoneNumber: +1 514 575 6066
+description: This is the description for user.14.
+
+dn: uid=user.15,ou=People,dc=example,dc=com
+objectClass: top
+objectClass: person
+objectClass: organizationalperson
+objectClass: inetorgperson
+givenName: Abdalla
+sn: Abdou
+employeeNumber: 15
+cn: Abdalla Abdou 15
+uid: user.15
+mail: user.15@example.com
+telephoneNumber: +1 036 452 3049
+facsimileTelephoneNumber: +1 805 904 0815
+description: This is the description for user.15.
+
+dn: uid=user.16,ou=People,dc=example,dc=com
+objectClass: top
+objectClass: person
+objectClass: organizationalperson
+objectClass: inetorgperson
+givenName: Abdallah
+sn: Abdul-Nour
+employeeNumber: 16
+cn: Abdallah Abdul-Nour 16
+uid: user.16
+mail: user.16@example.com
+telephoneNumber: +1 122 810 2774
+facsimileTelephoneNumber: +1 914 627 7046
+description: This is the description for user.16.
+
+dn: uid=user.17,ou=People,dc=example,dc=com
+objectClass: top
+objectClass: person
+objectClass: organizationalperson
+objectClass: inetorgperson
+givenName: Abdul
+sn: Abdulla
+employeeNumber: 17
+cn: Abdul Abdulla 17
+uid: user.17
+mail: user.17@example.com
+telephoneNumber: +1 386 576 4046
+facsimileTelephoneNumber: +1 024 634 4704
+description: This is the description for user.17.
+
+dn: uid=user.18,ou=People,dc=example,dc=com
+objectClass: top
+objectClass: person
+objectClass: organizationalperson
+objectClass: inetorgperson
+givenName: Abdullah
+sn: Abdullah
+employeeNumber: 18
+cn: Abdullah Abdullah 18
+uid: user.18
+mail: user.18@example.com
+telephoneNumber: +1 071 003 5130
+facsimileTelephoneNumber: +1 602 415 4958
+description: This is the description for user.18.
+
+dn: uid=user.19,ou=People,dc=example,dc=com
+objectClass: top
+objectClass: person
+objectClass: organizationalperson
+objectClass: inetorgperson
+givenName: Abe
+sn: Abe
+employeeNumber: 19
+cn: Abe Abe 19
+uid: user.19
+mail: user.19@example.com
+telephoneNumber: +1 091 834 3038
+facsimileTelephoneNumber: +1 061 730 9070
+description: This is the description for user.19.
+
+dn: uid=user.20,ou=People,dc=example,dc=com
+objectClass: top
+objectClass: person
+objectClass: organizationalperson
+objectClass: inetorgperson
+givenName: Abel
+sn: Abedi
+employeeNumber: 20
+cn: Abel Abedi 20
+uid: user.20
+mail: user.20@example.com
+telephoneNumber: +1 253 575 6806
+facsimileTelephoneNumber: +1 084 370 9284
+description: This is the description for user.20.
+
+dn: uid=user.21,ou=People,dc=example,dc=com
+objectClass: top
+objectClass: person
+objectClass: organizationalperson
+objectClass: inetorgperson
+givenName: Abigael
+sn: Abel
+employeeNumber: 21
+cn: Abigael Abel 21
+uid: user.21
+mail: user.21@example.com
+telephoneNumber: +1 015 009 1007
+facsimileTelephoneNumber: +1 202 829 0022
+description: This is the description for user.21.
+
+dn: uid=user.22,ou=People,dc=example,dc=com
+objectClass: top
+objectClass: person
+objectClass: organizationalperson
+objectClass: inetorgperson
+givenName: Abigail
+sn: Abell
+employeeNumber: 22
+cn: Abigail Abell 22
+uid: user.22
+mail: user.22@example.com
+telephoneNumber: +1 361 255 6438
+facsimileTelephoneNumber: +1 616 376 6225
+description: This is the description for user.22.
+
+dn: uid=user.23,ou=People,dc=example,dc=com
+objectClass: top
+objectClass: person
+objectClass: organizationalperson
+objectClass: inetorgperson
+givenName: Abigale
+sn: Abella
+employeeNumber: 23
+cn: Abigale Abella 23
+uid: user.23
+mail: user.23@example.com
+telephoneNumber: +1 581 220 2255
+facsimileTelephoneNumber: +1 850 817 3803
+description: This is the description for user.23.
+
+dn: uid=user.24,ou=People,dc=example,dc=com
+objectClass: top
+objectClass: person
+objectClass: organizationalperson
+objectClass: inetorgperson
+givenName: Abra
+sn: Abello
+employeeNumber: 24
+cn: Abra Abello 24
+uid: user.24
+mail: user.24@example.com
+telephoneNumber: +1 602 150 6842
+facsimileTelephoneNumber: +1 060 597 6915
+description: This is the description for user.24.
+
+dn: uid=user.25,ou=People,dc=example,dc=com
+objectClass: top
+objectClass: person
+objectClass: organizationalperson
+objectClass: inetorgperson
+givenName: Abraham
+sn: Abelow
+employeeNumber: 25
+cn: Abraham Abelow 25
+uid: user.25
+mail: user.25@example.com
+telephoneNumber: +1 419 970 0907
+facsimileTelephoneNumber: +1 051 125 0082
+description: This is the description for user.25.
+
+dn: uid=user.26,ou=People,dc=example,dc=com
+objectClass: top
+objectClass: person
+objectClass: organizationalperson
+objectClass: inetorgperson
+givenName: Abu
+sn: Abernathy
+employeeNumber: 26
+cn: Abu Abernathy 26
+uid: user.26
+mail: user.26@example.com
+telephoneNumber: +1 479 732 1375
+facsimileTelephoneNumber: +1 461 035 4779
+description: This is the description for user.26.
+
+dn: uid=user.27,ou=People,dc=example,dc=com
+objectClass: top
+objectClass: person
+objectClass: organizationalperson
+objectClass: inetorgperson
+givenName: Access
+sn: Abernethy
+employeeNumber: 27
+cn: Access Abernethy 27
+uid: user.27
+mail: user.27@example.com
+telephoneNumber: +1 768 154 5795
+facsimileTelephoneNumber: +1 006 894 0809
+description: This is the description for user.27.
+
+dn: uid=user.28,ou=People,dc=example,dc=com
+objectClass: top
+objectClass: person
+objectClass: organizationalperson
+objectClass: inetorgperson
+givenName: Accounting
+sn: Abi-Aad
+employeeNumber: 28
+cn: Accounting Abi-Aad 28
+uid: user.28
+mail: user.28@example.com
+telephoneNumber: +1 830 737 5390
+facsimileTelephoneNumber: +1 065 655 0304
+description: This is the description for user.28.
+
+dn: uid=user.29,ou=People,dc=example,dc=com
+objectClass: top
+objectClass: person
+objectClass: organizationalperson
+objectClass: inetorgperson
+givenName: Achal
+sn: Abou-Arrage
+employeeNumber: 29
+cn: Achal Abou-Arrage 29
+uid: user.29
+mail: user.29@example.com
+telephoneNumber: +1 189 118 2805
+facsimileTelephoneNumber: +1 646 040 0806
+description: This is the description for user.29.
+
+dn: uid=user.30,ou=People,dc=example,dc=com
+objectClass: top
+objectClass: person
+objectClass: organizationalperson
+objectClass: inetorgperson
+givenName: Achamma
+sn: Abou-Ezze
+employeeNumber: 30
+cn: Achamma Abou-Ezze 30
+uid: user.30
+mail: user.30@example.com
+telephoneNumber: +1 300 805 1167
+facsimileTelephoneNumber: +1 644 950 4865
+description: This is the description for user.30.
+
+dn: uid=user.31,ou=People,dc=example,dc=com
+objectClass: top
+objectClass: person
+objectClass: organizationalperson
+objectClass: inetorgperson
+givenName: Action
+sn: Aboul-Magd
+employeeNumber: 31
+cn: Action Aboul-Magd 31
+uid: user.31
+mail: user.31@example.com
+telephoneNumber: +1 715 520 3963
+facsimileTelephoneNumber: +1 013 468 0072
+description: This is the description for user.31.
+
+dn: uid=user.32,ou=People,dc=example,dc=com
+objectClass: top
+objectClass: person
+objectClass: organizationalperson
+objectClass: inetorgperson
+givenName: Ada
+sn: Aboussouan
+employeeNumber: 32
+cn: Ada Aboussouan 32
+uid: user.32
+mail: user.32@example.com
+telephoneNumber: +1 894 719 6770
+facsimileTelephoneNumber: +1 059 127 6670
+description: This is the description for user.32.
+
+dn: uid=user.33,ou=People,dc=example,dc=com
+objectClass: top
+objectClass: person
+objectClass: organizationalperson
+objectClass: inetorgperson
+givenName: Adah
+sn: Abovyan
+employeeNumber: 33
+cn: Adah Abovyan 33
+uid: user.33
+mail: user.33@example.com
+telephoneNumber: +1 383 322 7639
+facsimileTelephoneNumber: +1 006 601 3090
+description: This is the description for user.33.
+
+dn: uid=user.34,ou=People,dc=example,dc=com
+objectClass: top
+objectClass: person
+objectClass: organizationalperson
+objectClass: inetorgperson
+givenName: Adaline
+sn: Abraham
+employeeNumber: 34
+cn: Adaline Abraham 34
+uid: user.34
+mail: user.34@example.com
+telephoneNumber: +1 493 075 4299
+facsimileTelephoneNumber: +1 903 097 2035
+description: This is the description for user.34.
+
+dn: uid=user.35,ou=People,dc=example,dc=com
+objectClass: top
+objectClass: person
+objectClass: organizationalperson
+objectClass: inetorgperson
+givenName: Adam
+sn: Abrahim
+employeeNumber: 35
+cn: Adam Abrahim 35
+uid: user.35
+mail: user.35@example.com
+telephoneNumber: +1 701 039 2080
+facsimileTelephoneNumber: +1 500 589 2596
+description: This is the description for user.35.
+
+dn: uid=user.36,ou=People,dc=example,dc=com
+objectClass: top
+objectClass: person
+objectClass: organizationalperson
+objectClass: inetorgperson
+givenName: Adan
+sn: Abrams
+employeeNumber: 36
+cn: Adan Abrams 36
+uid: user.36
+mail: user.36@example.com
+telephoneNumber: +1 576 990 2969
+facsimileTelephoneNumber: +1 296 270 7509
+description: This is the description for user.36.
+
+dn: uid=user.37,ou=People,dc=example,dc=com
+objectClass: top
+objectClass: person
+objectClass: organizationalperson
+objectClass: inetorgperson
+givenName: Adara
+sn: Absi
+employeeNumber: 37
+cn: Adara Absi 37
+uid: user.37
+mail: user.37@example.com
+telephoneNumber: +1 790 109 4654
+facsimileTelephoneNumber: +1 362 312 1973
+description: This is the description for user.37.
+
+dn: uid=user.38,ou=People,dc=example,dc=com
+objectClass: top
+objectClass: person
+objectClass: organizationalperson
+objectClass: inetorgperson
+givenName: Adda
+sn: Acelvari
+employeeNumber: 38
+cn: Adda Acelvari 38
+uid: user.38
+mail: user.38@example.com
+telephoneNumber: +1 102 142 4065
+facsimileTelephoneNumber: +1 281 935 3008
+description: This is the description for user.38.
+
+dn: uid=user.39,ou=People,dc=example,dc=com
+objectClass: top
+objectClass: person
+objectClass: organizationalperson
+objectClass: inetorgperson
+givenName: Addi
+sn: Acharyya
+employeeNumber: 39
+cn: Addi Acharyya 39
+uid: user.39
+mail: user.39@example.com
+telephoneNumber: +1 097 848 5820
+facsimileTelephoneNumber: +1 076 508 7956
+description: This is the description for user.39.
+
+dn: uid=user.40,ou=People,dc=example,dc=com
+objectClass: top
+objectClass: person
+objectClass: organizationalperson
+objectClass: inetorgperson
+givenName: Addia
+sn: Achcar
+employeeNumber: 40
+cn: Addia Achcar 40
+uid: user.40
+mail: user.40@example.com
+telephoneNumber: +1 069 880 7515
+facsimileTelephoneNumber: +1 218 450 3530
+description: This is the description for user.40.
+
+dn: uid=user.41,ou=People,dc=example,dc=com
+objectClass: top
+objectClass: person
+objectClass: organizationalperson
+objectClass: inetorgperson
+givenName: Addie
+sn: Achille
+employeeNumber: 41
+cn: Addie Achille 41
+uid: user.41
+mail: user.41@example.com
+telephoneNumber: +1 366 473 8179
+facsimileTelephoneNumber: +1 470 121 1388
+description: This is the description for user.41.
+
+dn: uid=user.42,ou=People,dc=example,dc=com
+objectClass: top
+objectClass: person
+objectClass: organizationalperson
+objectClass: inetorgperson
+givenName: Addons
+sn: Achkar
+employeeNumber: 42
+cn: Addons Achkar 42
+uid: user.42
+mail: user.42@example.com
+telephoneNumber: +1 152 783 0830
+facsimileTelephoneNumber: +1 805 419 0119
+description: This is the description for user.42.
+
+dn: uid=user.43,ou=People,dc=example,dc=com
+objectClass: top
+objectClass: person
+objectClass: organizationalperson
+objectClass: inetorgperson
+givenName: Addy
+sn: Ackaouy
+employeeNumber: 43
+cn: Addy Ackaouy 43
+uid: user.43
+mail: user.43@example.com
+telephoneNumber: +1 008 742 8424
+facsimileTelephoneNumber: +1 753 660 3145
+description: This is the description for user.43.
+
+dn: uid=user.44,ou=People,dc=example,dc=com
+objectClass: top
+objectClass: person
+objectClass: organizationalperson
+objectClass: inetorgperson
+givenName: Adel
+sn: Acker
+employeeNumber: 44
+cn: Adel Acker 44
+uid: user.44
+mail: user.44@example.com
+telephoneNumber: +1 310 590 7606
+facsimileTelephoneNumber: +1 068 433 0208
+description: This is the description for user.44.
+
+dn: uid=user.45,ou=People,dc=example,dc=com
+objectClass: top
+objectClass: person
+objectClass: organizationalperson
+objectClass: inetorgperson
+givenName: Adela
+sn: Acklin
+employeeNumber: 45
+cn: Adela Acklin 45
+uid: user.45
+mail: user.45@example.com
+telephoneNumber: +1 264 303 7104
+facsimileTelephoneNumber: +1 077 880 4107
+description: This is the description for user.45.
+
+dn: uid=user.46,ou=People,dc=example,dc=com
+objectClass: top
+objectClass: person
+objectClass: organizationalperson
+objectClass: inetorgperson
+givenName: Adelaida
+sn: Ackwood
+employeeNumber: 46
+cn: Adelaida Ackwood 46
+uid: user.46
+mail: user.46@example.com
+telephoneNumber: +1 035 237 4009
+facsimileTelephoneNumber: +1 581 771 4080
+description: This is the description for user.46.
+
+dn: uid=user.47,ou=People,dc=example,dc=com
+objectClass: top
+objectClass: person
+objectClass: organizationalperson
+objectClass: inetorgperson
+givenName: Adelaide
+sn: Acree
+employeeNumber: 47
+cn: Adelaide Acree 47
+uid: user.47
+mail: user.47@example.com
+telephoneNumber: +1 669 200 3392
+facsimileTelephoneNumber: +1 605 003 0945
+description: This is the description for user.47.
+
+dn: uid=user.48,ou=People,dc=example,dc=com
+objectClass: top
+objectClass: person
+objectClass: organizationalperson
+objectClass: inetorgperson
+givenName: Adele
+sn: Acres
+employeeNumber: 48
+cn: Adele Acres 48
+uid: user.48
+mail: user.48@example.com
+telephoneNumber: +1 653 650 0602
+facsimileTelephoneNumber: +1 804 517 4025
+description: This is the description for user.48.
+
+dn: uid=user.49,ou=People,dc=example,dc=com
+objectClass: top
+objectClass: person
+objectClass: organizationalperson
+objectClass: inetorgperson
+givenName: Adelheid
+sn: Acs
+employeeNumber: 49
+cn: Adelheid Acs 49
+uid: user.49
+mail: user.49@example.com
+telephoneNumber: +1 119 000 8727
+facsimileTelephoneNumber: +1 023 429 8774
+description: This is the description for user.49.
+
+dn: uid=user.50,ou=People,dc=example,dc=com
+objectClass: top
+objectClass: person
+objectClass: organizationalperson
+objectClass: inetorgperson
+givenName: Adelia
+sn: Actionteam
+employeeNumber: 50
+cn: Adelia Actionteam 50
+uid: user.50
+mail: user.50@example.com
+telephoneNumber: +1 007 302 2808
+facsimileTelephoneNumber: +1 809 074 5801
+description: This is the description for user.50.
+
diff --git a/opends/tests/functional-tests/testcases/privileges/privileges.xml b/opends/tests/functional-tests/testcases/privileges/privileges.xml
index 3aa6012..107e2a3 100755
--- a/opends/tests/functional-tests/testcases/privileges/privileges.xml
+++ b/opends/tests/functional-tests/testcases/privileges/privileges.xml
@@ -44,7 +44,7 @@
<call function="'testGroup_Preamble'"/>
-
+
<import machine="STAF_LOCAL_HOSTNAME"
file="'%s/testcases/privileges/privileges_users.xml' % (TESTS_DIR)"/>
<call function="'privileges_users'" />
@@ -56,7 +56,11 @@
<import machine="STAF_LOCAL_HOSTNAME"
file="'%s/testcases/privileges/privileges_new_root_user.xml' % (TESTS_DIR)"/>
<call function="'privileges_new_root_user'" />
-
+
+ <import machine="STAF_LOCAL_HOSTNAME"
+ file="'%s/testcases/privileges/privileges_unindexed_searches.xml' % (TESTS_DIR)"/>
+ <call function="'privileges_unindexed_searches'" />
+
<import machine="STAF_LOCAL_HOSTNAME"
file="'%s/testcases/privileges/privileges_import_task.xml' % (TESTS_DIR)"/>
<call function="'privileges_import_task'" />
@@ -72,7 +76,7 @@
<import machine="STAF_LOCAL_HOSTNAME"
file="'%s/testcases/privileges/privileges_restore_task.xml' % (TESTS_DIR)"/>
<call function="'privileges_restore_task'" />
-
+
<call function="'testGroup_Postamble'"/>
diff --git a/opends/tests/functional-tests/testcases/privileges/privileges_unindexed_searches.xml b/opends/tests/functional-tests/testcases/privileges/privileges_unindexed_searches.xml
new file mode 100644
index 0000000..156f012
--- /dev/null
+++ b/opends/tests/functional-tests/testcases/privileges/privileges_unindexed_searches.xml
@@ -0,0 +1,486 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!DOCTYPE stax SYSTEM "../../shared/stax.dtd">
+<!--
+ ! CDDL HEADER START
+ !
+ ! The contents of this file are subject to the terms of the
+ ! Common Development and Distribution License, Version 1.0 only
+ ! (the "License"). You may not use this file except in compliance
+ ! with the License.
+ !
+ ! You can obtain a copy of the license at
+ ! trunk/opends/resource/legal-notices/OpenDS.LICENSE
+ ! or https://OpenDS.dev.java.net/OpenDS.LICENSE.
+ ! See the License for the specific language governing permissions
+ ! and limitations under the License.
+ !
+ ! When distributing Covered Code, include this CDDL HEADER in each
+ ! file and include the License file at
+ ! trunk/opends/resource/legal-notices/OpenDS.LICENSE. If applicable,
+ ! add the following below this CDDL HEADER, with the fields enclosed
+ ! by brackets "[]" replaced with your own identifying information:
+ ! Portions Copyright [yyyy] [name of copyright owner]
+ !
+ ! CDDL HEADER END
+ !
+ ! Portions Copyright 2007 Sun Microsystems, Inc.
+ ! -->
+<stax>
+
+ <defaultcall function="privileges_unindexed_searches"/>
+
+ <function name="privileges_unindexed_searches">
+
+ <sequence>
+
+ <block name="'privileges-unindexed-searches'">
+
+ <sequence>
+
+ <script>
+ if not CurrentTestPath.has_key('group'):
+ CurrentTestPath['group']='privileges'
+ CurrentTestPath['suite']=STAXCurrentBlock
+ </script>
+
+ <call function="'testSuite_Preamble'"/>
+
+ <!---
+ Place suite-specific test information here.
+ #@TestSuiteName Privileges Unindexed Searches Tests
+ #@TestSuitePurpose Test the basic Privileges Support in regard to unindexed searches.
+ #@TestSuiteGroup Basic Privileges Unindexed Searches Tests
+ #@TestScript privileges_unindexed_searches.xml
+ -->
+
+
+ <import machine="STAF_LOCAL_HOSTNAME"
+ file="'%s/testcases/privileges/privileges_setup.xml' % (TESTS_DIR)"/>
+ <call function="'privileges_setup'" />
+
+ <!---
+ Place test-specific test information here.
+ The tag, TestMarker, must be the same as the tag, TestSuiteName.
+ #@TestMarker Privileges Unindexed Searches Tests
+ #@TestName preamble
+ #@TestIssue 480
+ #@TestPurpose Prepare for unindexed search privileges tests
+ #@TestPreamble none
+ #@TestStep Admin changing index-entry-limit.
+ #@TestStep Admin importing 50 entries.
+ #@TestPostamble none
+ #@TestResult Success if OpenDS returns 0
+ for all ldap operations,
+ and the entries imported without error.
+ -->
+ <testcase name="getTestCaseName('preamble')">
+
+ <sequence>
+
+ <call function="'testCase_Preamble'"/>
+
+ <message>
+ 'Privileges: Unindexed Searches: Preamble - Admin changing index-entry-limit'
+ </message>
+
+ <call function="'dsconfigSet'">
+ { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
+ 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
+ 'dsInstanceDn' : DIRECTORY_INSTANCE_DN ,
+ 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD ,
+ 'objectName' : 'backend' ,
+ 'propertyType' : 'backend' ,
+ 'propertyName' : 'userRoot' ,
+ 'attributeName' : 'index-entry-limit' ,
+ 'attributeValue' : '4' }
+ </call>
+
+ <message>
+ 'Privileges: Unindexed Searches: Preamble - Admin adding import task'
+ </message>
+
+ <call function="'importLdifTask'">
+ { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST,
+ 'dsInstancePort' : DIRECTORY_INSTANCE_PORT,
+ 'dsInstanceDn' : DIRECTORY_INSTANCE_DN ,
+ 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD ,
+ 'taskID' : STAXCurrentTestcase,
+ 'ldifFile' : '%s/privileges/privileges_unindexed_searches/50Entries.ldif' % logsRemoteDataDir
+ }
+ </call>
+
+ <call function="'checktestRC'">
+ { 'returncode' : RC ,
+ 'result' : STAXResult }
+ </call>
+
+ <call function="'testCase_Postamble'"/>
+
+ </sequence>
+ </testcase>
+
+ <!---
+ Place test-specific test information here.
+ The tag, TestMarker, must be the same as the tag, TestSuiteName.
+ #@TestMarker Privileges Unindexed Searches Tests
+ #@TestName unindexed searches - non-root user
+ #@TestIssue 480
+ #@TestPurpose Unindexed search privilege for normal users
+ #@TestPreamble none
+ #@TestStep User searches entry.
+ #@TestStep Admin adds privilege.
+ #@TestStep User searches entry.
+ #@TestStep Admin removes privilege.
+ #@TestStep User searches entry.
+ #@TestPostamble none
+ #@TestResult Success if OpenDS returns 50
+ for steps 1 and 5, and 0 for all
+ other ldap operations.
+ -->
+ <testcase name="getTestCaseName('unindexed search non-root user')">
+ <sequence>
+ <call function="'testCase_Preamble'"/>
+
+ <message>
+ 'Privileges: Unindexed Searches: user searching entries'
+ </message>
+
+ <call function="'SearchObject'">
+ { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
+ 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
+ 'dsInstanceDn' : 'uid=user.0,ou=People,dc=example,dc=com' ,
+ 'dsInstancePswd' : 'smellyFish' ,
+ 'dsBaseDN' : 'dc=example,dc=com' ,
+ 'dsFilter' : 'facsimiletelephonenumber=*512*' ,
+ 'expectedRC' : 50 }
+ </call>
+
+ <message>
+ 'Privileges: Unindexed Searches: Admin adding privilege'
+ </message>
+
+ <call function="'modifyAnAttribute'">
+ { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
+ 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
+ 'dsInstanceDn' : DIRECTORY_INSTANCE_DN ,
+ 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD ,
+ 'DNToModify' : 'uid=user.0,ou=People,dc=example,dc=com' ,
+ 'attributeName' : 'ds-privilege-name' ,
+ 'newAttributeValue' : 'unindexed-search' ,
+ 'changetype' : 'add' }
+ </call>
+
+ <message>
+ 'Privileges: Unindexed Searches: user searching entries'
+ </message>
+
+ <call function="'SearchObject'">
+ { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
+ 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
+ 'dsInstanceDn' : 'uid=user.0,ou=People,dc=example,dc=com' ,
+ 'dsInstancePswd' : 'smellyFish' ,
+ 'dsBaseDN' : 'dc=example,dc=com' ,
+ 'dsFilter' : 'facsimiletelephonenumber=*512*' }
+ </call>
+
+ <message>
+ 'Privileges: Unindexed Searches: Admin deleting privilege'
+ </message>
+
+ <call function="'modifyAnAttribute'">
+ { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
+ 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
+ 'dsInstanceDn' : DIRECTORY_INSTANCE_DN ,
+ 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD ,
+ 'DNToModify' : 'uid=user.0,ou=People,dc=example,dc=com' ,
+ 'attributeName' : 'ds-privilege-name' ,
+ 'newAttributeValue' : 'unindexed-search' ,
+ 'changetype' : 'delete' }
+ </call>
+
+ <message>
+ 'Privileges: Unindexed Searches: user searching entries'
+ </message>
+
+ <call function="'SearchObject'">
+ { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
+ 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
+ 'dsInstanceDn' : 'uid=user.0,ou=People,dc=example,dc=com' ,
+ 'dsInstancePswd' : 'smellyFish' ,
+ 'dsBaseDN' : 'dc=example,dc=com' ,
+ 'dsFilter' : 'facsimiletelephonenumber=*512*' ,
+ 'expectedRC' : 50 }
+ </call>
+
+ <call function="'testCase_Postamble'"/>
+
+ </sequence>
+ </testcase>
+
+ <!---
+ Place test-specific test information here.
+ The tag, TestMarker, must be the same as the tag, TestSuiteName.
+ #@TestMarker Privileges Unindexed Searches Tests
+ #@TestName unindexed searches - Directory Manager
+ #@TestIssue 480
+ #@TestPurpose Unindexed search privilege for Directory Manager
+ #@TestPreamble none
+ #@TestStep Directory Manager searches entry.
+ #@TestStep Alternate Admin removes privilege.
+ #@TestStep Directory Manager searches entry.
+ #@TestStep Alternate Admin puts back privilege.
+ #@TestStep Directory Manager searches entry.
+ #@TestPostamble none
+ #@TestResult Success if OpenDS returns 50
+ for step 3, and 0 for all
+ other ldap operations.
+ -->
+ <testcase name="getTestCaseName('unindexed search Directory Manager')">
+
+ <sequence>
+
+ <call function="'testCase_Preamble'"/>
+
+ <message>
+ 'Privileges: Unindexed Searches: Directory Manager searching entries'
+ </message>
+
+ <call function="'SearchObject'">
+ { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
+ 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
+ 'dsInstanceDn' : DIRECTORY_INSTANCE_DN ,
+ 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD ,
+ 'dsBaseDN' : 'dc=example,dc=com' ,
+ 'dsFilter' : 'facsimiletelephonenumber=*512*' }
+ </call>
+
+ <message>
+ 'Privileges: Unindexed Searches: alternative root user removing privilege from Directory Manager'
+ </message>
+
+ <call function="'modifyAnAttribute'">
+ { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
+ 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
+ 'dsInstanceDn' : 'cn=Aroot' ,
+ 'dsInstancePswd' : 'PrivsRule' ,
+ 'DNToModify' : 'cn=Directory Manager,cn=Root DNs,cn=config' ,
+ 'attributeName' : 'ds-privilege-name' ,
+ 'newAttributeValue' : '-unindexed-search' ,
+ 'changetype' : 'add' }
+ </call>
+
+ <message>
+ 'Privileges: Unindexed Searches: Directory Manager searching entries'
+ </message>
+
+ <call function="'SearchObject'">
+ { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
+ 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
+ 'dsInstanceDn' : DIRECTORY_INSTANCE_DN ,
+ 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD ,
+ 'dsBaseDN' : 'dc=example,dc=com' ,
+ 'dsFilter' : 'facsimiletelephonenumber=*512*' ,
+ 'expectedRC' : 50 }
+ </call>
+
+ <message>
+ 'Privileges: Unindexed Searches: alternative root user putting back privilege to Directory Manager'
+ </message>
+
+ <call function="'modifyAnAttribute'">
+ { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
+ 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
+ 'dsInstanceDn' : 'cn=Aroot' ,
+ 'dsInstancePswd' : 'PrivsRule' ,
+ 'DNToModify' : 'cn=Directory Manager,cn=Root DNs,cn=config' ,
+ 'attributeName' : 'ds-privilege-name' ,
+ 'newAttributeValue' : '-unindexed-search' ,
+ 'changetype' : 'delete' }
+ </call>
+
+ <message>
+ 'Privileges: Unindexed Searches: Directory Manager searching entries'
+ </message>
+
+ <call function="'SearchObject'">
+ { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
+ 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
+ 'dsInstanceDn' : DIRECTORY_INSTANCE_DN ,
+ 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD ,
+ 'dsBaseDN' : 'dc=example,dc=com' ,
+ 'dsFilter' : 'facsimiletelephonenumber=*512*' }
+ </call>
+
+ <call function="'testCase_Postamble'"/>
+
+ </sequence>
+ </testcase>
+
+ <!---
+ Place test-specific test information here.
+ The tag, TestMarker, must be the same as the tag, TestSuiteName.
+ #@TestMarker Privileges Unindexed Searches Tests
+ #@TestName unindexed searches - new root user
+ #@TestIssue 480
+ #@TestPurpose Unindexed search privilege for new root user
+ #@TestPreamble none
+ #@TestStep Directory Manager adds new root user.
+ #@TestStep New root user searches entries.
+ #@TestStep Alternate root user removes privilege.
+ #@TestStep New root user searches entry.
+ #@TestStep Alternate root user puts back privilege.
+ #@TestStep New root user searches entry.
+ #@TestPostamble none
+ #@TestResult Success if OpenDS returns 50
+ for step 3, and 0 for all
+ other ldap operations.
+ -->
+ <testcase name="getTestCaseName('unindexed search New Root User')">
+
+ <sequence>
+
+ <call function="'testCase_Preamble'"/>
+
+ <message>
+ 'Privileges: Unindexed Searches: Directory Manager adding new root user'
+ </message>
+
+ <call function="'addEntry'">
+ { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
+ 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
+ 'dsInstanceDn' : DIRECTORY_INSTANCE_DN ,
+ 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD ,
+ 'entryToBeAdded' : '%s/privileges/add_new_root_user.ldif' % logsRemoteDataDir }
+ </call>
+
+ <message>
+ 'Privileges: Unindexed Searches: New root user searching entries'
+ </message>
+
+ <call function="'SearchObject'">
+ { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
+ 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
+ 'dsInstanceDn' : 'cn=Zroot' ,
+ 'dsInstancePswd' : 'PrivsRule',
+ 'dsBaseDN' : 'dc=example,dc=com' ,
+ 'dsFilter' : 'facsimiletelephonenumber=*512*' }
+ </call>
+
+ <message>
+ 'Privileges: Unindexed Searches: Alternative root user removing privilege'
+ </message>
+
+ <call function="'modifyAnAttribute'">
+ { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
+ 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
+ 'dsInstanceDn' : 'cn=Aroot' ,
+ 'dsInstancePswd' : 'PrivsRule' ,
+ 'DNToModify' : 'cn=Zroot Manager,cn=Root DNs,cn=config' ,
+ 'attributeName' : 'ds-privilege-name' ,
+ 'newAttributeValue' : '-unindexed-search' ,
+ 'changetype' : 'add' }
+ </call>
+
+ <message>
+ 'Privileges: Unindexed Searches: New root user searching entries'
+ </message>
+
+ <call function="'SearchObject'">
+ { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
+ 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
+ 'dsInstanceDn' : 'cn=Zroot' ,
+ 'dsInstancePswd' : 'PrivsRule',
+ 'dsBaseDN' : 'dc=example,dc=com' ,
+ 'dsFilter' : 'facsimiletelephonenumber=*512*' ,
+ 'expectedRC' : 50 }
+ </call>
+
+ <message>
+ 'Privileges: Unindexed Searches: Alternative root user putting back privilege'
+ </message>
+
+ <call function="'modifyAnAttribute'">
+ { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
+ 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
+ 'dsInstanceDn' : 'cn=Aroot' ,
+ 'dsInstancePswd' : 'PrivsRule' ,
+ 'DNToModify' : 'cn=Zroot Manager,cn=Root DNs,cn=config' ,
+ 'attributeName' : 'ds-privilege-name' ,
+ 'newAttributeValue' : '-unindexed-search' ,
+ 'changetype' : 'delete' }
+ </call>
+
+ <message>
+ 'Privileges: Unindexed Searches: New root user searching entries'
+ </message>
+
+ <call function="'SearchObject'">
+ { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
+ 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
+ 'dsInstanceDn' : 'cn=Zroot' ,
+ 'dsInstancePswd' : 'PrivsRule',
+ 'dsBaseDN' : 'dc=example,dc=com' ,
+ 'dsFilter' : 'facsimiletelephonenumber=*512*' }
+ </call>
+
+ <call function="'testCase_Postamble'"/>
+
+ </sequence>
+ </testcase>
+
+ <!---
+ Place test-specific test information here.
+ The tag, TestMarker, must be the same as the tag, TestSuiteName.
+ #@TestMarker Privileges Unindexed Searches Tests
+ #@TestName postamble
+ #@TestIssue 480
+ #@TestPurpose Reset after unindexed saerch tests
+ #@TestPreamble none
+ #@TestStep Admin changing index-entry-limit.
+ #@TestPostamble none
+ #@TestResult Success if OpenDS returns 0
+ for all other ldap operations.
+ -->
+ <testcase name="getTestCaseName('postamble')">
+
+ <sequence>
+
+ <call function="'testCase_Preamble'"/>
+
+ <message>
+ 'Privileges: Unindexed Searches: Postamble - Admin changing index-entry-limit'
+ </message>
+
+ <call function="'dsconfigSet'">
+ { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
+ 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
+ 'dsInstanceDn' : DIRECTORY_INSTANCE_DN ,
+ 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD ,
+ 'objectName' : 'backend' ,
+ 'propertyType' : 'backend' ,
+ 'propertyName' : 'userRoot' ,
+ 'attributeName' : 'index-entry-limit' ,
+ 'attributeValue' : '4000' }
+ </call>
+
+ <call function="'testCase_Postamble'"/>
+
+ </sequence>
+ </testcase>
+
+ <import machine="STAF_LOCAL_HOSTNAME"
+ file="'%s/testcases/privileges/privileges_cleanup.xml' % (TESTS_DIR)"/>
+ <call function="'privileges_cleanup'" />
+
+
+ <call function="'testSuite_Postamble'"/>
+
+ </sequence>
+
+ </block>
+
+ </sequence>
+
+ </function>
+
+</stax>
--
Gitblit v1.10.0