summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNalin Dahyabhai <nalin.dahyabhai@pobox.com>2008-07-10 16:22:38 -0400
committerNalin Dahyabhai <nalin.dahyabhai@pobox.com>2008-07-10 16:22:38 -0400
commit23e65d7f0d780bf88e1bcb6efce7e873cc028bcf (patch)
tree288c1c810bdab63a002e46e2cf9ce5c4a513ed85
parent5514326b5ae7e0a25e7cf475f3fdbec819bbf761 (diff)
downloadslapi-nis-23e65d7f0d780bf88e1bcb6efce7e873cc028bcf.tar.gz
slapi-nis-23e65d7f0d780bf88e1bcb6efce7e873cc028bcf.tar.xz
slapi-nis-23e65d7f0d780bf88e1bcb6efce7e873cc028bcf.zip
- check that replacing the filter works
-rwxr-xr-xtests/test05-schema-modify-set/after.sh4
-rw-r--r--tests/test05-schema-modify-set/after.txt3
-rwxr-xr-xtests/test05-schema-modify-set/before.sh4
-rw-r--r--tests/test05-schema-modify-set/before.txt5
-rwxr-xr-xtests/test05-schema-modify-set/change.sh9
-rw-r--r--tests/test05-schema-modify-set/change.txt2
-rw-r--r--tests/test05-schema-modify-set/description.txt1
-rw-r--r--tests/test05-schema-modify-set/dse.ldif12
8 files changed, 40 insertions, 0 deletions
diff --git a/tests/test05-schema-modify-set/after.sh b/tests/test05-schema-modify-set/after.sh
new file mode 100755
index 0000000..32c64be
--- /dev/null
+++ b/tests/test05-schema-modify-set/after.sh
@@ -0,0 +1,4 @@
+#!/bin/sh
+{ search -b cn=compat,cn=accounts,dc=example,dc=com dn ; \
+ search -b cn=compat2,cn=accounts,dc=example,dc=com dn; } |\
+grep ^dn: | env LANG=C sort
diff --git a/tests/test05-schema-modify-set/after.txt b/tests/test05-schema-modify-set/after.txt
new file mode 100644
index 0000000..133991f
--- /dev/null
+++ b/tests/test05-schema-modify-set/after.txt
@@ -0,0 +1,3 @@
+dn: cn=compat, cn=Accounts, dc=example, dc=com
+dn: ou=passwd,cn=compat, cn=Accounts, dc=example, dc=com
+dn: uid=user1c,ou=passwd,cn=compat,cn=accounts,dc=example,dc=com
diff --git a/tests/test05-schema-modify-set/before.sh b/tests/test05-schema-modify-set/before.sh
new file mode 100755
index 0000000..32c64be
--- /dev/null
+++ b/tests/test05-schema-modify-set/before.sh
@@ -0,0 +1,4 @@
+#!/bin/sh
+{ search -b cn=compat,cn=accounts,dc=example,dc=com dn ; \
+ search -b cn=compat2,cn=accounts,dc=example,dc=com dn; } |\
+grep ^dn: | env LANG=C sort
diff --git a/tests/test05-schema-modify-set/before.txt b/tests/test05-schema-modify-set/before.txt
new file mode 100644
index 0000000..02843b4
--- /dev/null
+++ b/tests/test05-schema-modify-set/before.txt
@@ -0,0 +1,5 @@
+dn: cn=compat, cn=Accounts, dc=example, dc=com
+dn: ou=passwd,cn=compat, cn=Accounts, dc=example, dc=com
+dn: uid=user1a,ou=passwd,cn=compat,cn=accounts,dc=example,dc=com
+dn: uid=user1b,ou=passwd,cn=compat,cn=accounts,dc=example,dc=com
+dn: uid=user1c,ou=passwd,cn=compat,cn=accounts,dc=example,dc=com
diff --git a/tests/test05-schema-modify-set/change.sh b/tests/test05-schema-modify-set/change.sh
new file mode 100755
index 0000000..7a9f379
--- /dev/null
+++ b/tests/test05-schema-modify-set/change.sh
@@ -0,0 +1,9 @@
+#!/bin/sh
+modify << EOF
+dn: cn=compat-passwd,cn=Schema Compatibility,cn=plugins,cn=config
+changetype: modify
+replace: schema-compat-search-filter
+schema-compat-search-filter: (uid=*c)
+-
+
+EOF
diff --git a/tests/test05-schema-modify-set/change.txt b/tests/test05-schema-modify-set/change.txt
new file mode 100644
index 0000000..9ed0ac6
--- /dev/null
+++ b/tests/test05-schema-modify-set/change.txt
@@ -0,0 +1,2 @@
+modifying entry "cn=compat-passwd,cn=Schema Compatibility,cn=plugins,cn=config"
+
diff --git a/tests/test05-schema-modify-set/description.txt b/tests/test05-schema-modify-set/description.txt
new file mode 100644
index 0000000..45cf09b
--- /dev/null
+++ b/tests/test05-schema-modify-set/description.txt
@@ -0,0 +1 @@
+set a more precise filter
diff --git a/tests/test05-schema-modify-set/dse.ldif b/tests/test05-schema-modify-set/dse.ldif
new file mode 100644
index 0000000..316e1f5
--- /dev/null
+++ b/tests/test05-schema-modify-set/dse.ldif
@@ -0,0 +1,12 @@
+dn: cn=compat-passwd,cn=Schema Compatibility,cn=plugins,cn=config
+objectClass: top
+objectClass: extensibleObject
+cn: compat-passwd
+schema-compat-container-group: cn=compat, cn=Accounts, dc=example, dc=com
+schema-compat-container-rdn: ou=passwd
+schema-compat-check-access: yes
+schema-compat-search-base: cn=Users1, cn=Accounts, dc=example, dc=com
+schema-compat-search-filter: (objectClass=posixAccount)
+schema-compat-entry-rdn: uid=%{uid}
+schema-compat-entry-attribute: uidNumber=%{uidNumber}
+