summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNalin Dahyabhai <nalin.dahyabhai@pobox.com>2008-07-10 15:57:59 -0400
committerNalin Dahyabhai <nalin.dahyabhai@pobox.com>2008-07-10 15:57:59 -0400
commit8e047b638fae9611724a1da750ced4b169edc68f (patch)
treec3e369f4ddcf1a45885b1ba0b24f34fb0dd3810b
parent5b1060cb51259ca6da22d49211b06e0e7d89a1e4 (diff)
downloadslapi-nis-8e047b638fae9611724a1da750ced4b169edc68f.tar.gz
slapi-nis-8e047b638fae9611724a1da750ced4b169edc68f.tar.xz
slapi-nis-8e047b638fae9611724a1da750ced4b169edc68f.zip
- check that modrdn can't change the set configuration
-rwxr-xr-xtests/test02-schema-modrdn-set/after.sh2
-rw-r--r--tests/test02-schema-modrdn-set/after.txt5
-rwxr-xr-xtests/test02-schema-modrdn-set/before.sh2
-rw-r--r--tests/test02-schema-modrdn-set/before.txt5
-rwxr-xr-xtests/test02-schema-modrdn-set/change.sh2
-rw-r--r--tests/test02-schema-modrdn-set/change.txt2
-rw-r--r--tests/test02-schema-modrdn-set/description.txt1
-rw-r--r--tests/test02-schema-modrdn-set/dse.ldif12
8 files changed, 31 insertions, 0 deletions
diff --git a/tests/test02-schema-modrdn-set/after.sh b/tests/test02-schema-modrdn-set/after.sh
new file mode 100755
index 0000000..e7a06a9
--- /dev/null
+++ b/tests/test02-schema-modrdn-set/after.sh
@@ -0,0 +1,2 @@
+#!/bin/sh
+search -b cn=compat,cn=accounts,dc=example,dc=com dn | grep ^dn: | sort
diff --git a/tests/test02-schema-modrdn-set/after.txt b/tests/test02-schema-modrdn-set/after.txt
new file mode 100644
index 0000000..02843b4
--- /dev/null
+++ b/tests/test02-schema-modrdn-set/after.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/test02-schema-modrdn-set/before.sh b/tests/test02-schema-modrdn-set/before.sh
new file mode 100755
index 0000000..e7a06a9
--- /dev/null
+++ b/tests/test02-schema-modrdn-set/before.sh
@@ -0,0 +1,2 @@
+#!/bin/sh
+search -b cn=compat,cn=accounts,dc=example,dc=com dn | grep ^dn: | sort
diff --git a/tests/test02-schema-modrdn-set/before.txt b/tests/test02-schema-modrdn-set/before.txt
new file mode 100644
index 0000000..02843b4
--- /dev/null
+++ b/tests/test02-schema-modrdn-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/test02-schema-modrdn-set/change.sh b/tests/test02-schema-modrdn-set/change.sh
new file mode 100755
index 0000000..7a1e07e
--- /dev/null
+++ b/tests/test02-schema-modrdn-set/change.sh
@@ -0,0 +1,2 @@
+#!/bin/sh
+modrdn "cn=compat-passwd , cn=Schema Compatibility,cn=plugins,cn=config" cn=compat2-passwd
diff --git a/tests/test02-schema-modrdn-set/change.txt b/tests/test02-schema-modrdn-set/change.txt
new file mode 100644
index 0000000..5e20074
--- /dev/null
+++ b/tests/test02-schema-modrdn-set/change.txt
@@ -0,0 +1,2 @@
+Rename Result: Server is unwilling to perform (53)
+Additional info: Operation on Directory Specific Entry not allowed
diff --git a/tests/test02-schema-modrdn-set/description.txt b/tests/test02-schema-modrdn-set/description.txt
new file mode 100644
index 0000000..5f14a14
--- /dev/null
+++ b/tests/test02-schema-modrdn-set/description.txt
@@ -0,0 +1 @@
+modrdn still denied in the root DSE
diff --git a/tests/test02-schema-modrdn-set/dse.ldif b/tests/test02-schema-modrdn-set/dse.ldif
new file mode 100644
index 0000000..316e1f5
--- /dev/null
+++ b/tests/test02-schema-modrdn-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}
+