summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorNalin Dahyabhai <nalin.dahyabhai@pobox.com>2008-07-08 18:09:12 -0400
committerNalin Dahyabhai <nalin.dahyabhai@pobox.com>2008-07-08 18:09:12 -0400
commitb471dc3025efefc658f01159e4eba9dd9dd1bc48 (patch)
treea51035cc865e9b0a5fd24a6e11e14783f35172af /tests
parenta8dd0389d000622ceac390590168eac9fcb75fad (diff)
- check that modrdn still fails under the root DSE
Diffstat (limited to 'tests')
-rwxr-xr-xtests/test02-nis-modrdn-map/after.sh7
-rw-r--r--tests/test02-nis-modrdn-map/after.txt6
-rwxr-xr-xtests/test02-nis-modrdn-map/before.sh7
-rw-r--r--tests/test02-nis-modrdn-map/before.txt6
-rwxr-xr-xtests/test02-nis-modrdn-map/change.sh4
-rw-r--r--tests/test02-nis-modrdn-map/change.txt4
-rw-r--r--tests/test02-nis-modrdn-map/description.txt1
-rw-r--r--tests/test02-nis-modrdn-map/dse.ldif14
8 files changed, 49 insertions, 0 deletions
diff --git a/tests/test02-nis-modrdn-map/after.sh b/tests/test02-nis-modrdn-map/after.sh
new file mode 100755
index 0000000..7565474
--- /dev/null
+++ b/tests/test02-nis-modrdn-map/after.sh
@@ -0,0 +1,7 @@
+#!/bin/sh
+echo example.com:
+$YP maplist example.com
+$YP -c maplist example.com
+echo example2.com:
+$YP maplist example2.com
+$YP -c maplist example2.com
diff --git a/tests/test02-nis-modrdn-map/after.txt b/tests/test02-nis-modrdn-map/after.txt
new file mode 100644
index 0000000..d8d448e
--- /dev/null
+++ b/tests/test02-nis-modrdn-map/after.txt
@@ -0,0 +1,6 @@
+example.com:
+passwd.byname
+passwd.byuid
+passwd.byname
+passwd.byuid
+example2.com:
diff --git a/tests/test02-nis-modrdn-map/before.sh b/tests/test02-nis-modrdn-map/before.sh
new file mode 100755
index 0000000..7565474
--- /dev/null
+++ b/tests/test02-nis-modrdn-map/before.sh
@@ -0,0 +1,7 @@
+#!/bin/sh
+echo example.com:
+$YP maplist example.com
+$YP -c maplist example.com
+echo example2.com:
+$YP maplist example2.com
+$YP -c maplist example2.com
diff --git a/tests/test02-nis-modrdn-map/before.txt b/tests/test02-nis-modrdn-map/before.txt
new file mode 100644
index 0000000..d8d448e
--- /dev/null
+++ b/tests/test02-nis-modrdn-map/before.txt
@@ -0,0 +1,6 @@
+example.com:
+passwd.byname
+passwd.byuid
+passwd.byname
+passwd.byuid
+example2.com:
diff --git a/tests/test02-nis-modrdn-map/change.sh b/tests/test02-nis-modrdn-map/change.sh
new file mode 100755
index 0000000..7231479
--- /dev/null
+++ b/tests/test02-nis-modrdn-map/change.sh
@@ -0,0 +1,4 @@
+#!/bin/sh
+sleep 10
+modrdn "nis-domain=example.com+nis-map=passwd.byname,cn=NIS Server,cn=plugins,cn=config" nis-domain=example2.com+nis-map=passwd.byname
+modrdn "nis-domain=example.com+nis-map=passwd.byuid,cn=NIS Server,cn=plugins,cn=config" nis-domain=example2.com+nis-map=passwd.byuid
diff --git a/tests/test02-nis-modrdn-map/change.txt b/tests/test02-nis-modrdn-map/change.txt
new file mode 100644
index 0000000..079829a
--- /dev/null
+++ b/tests/test02-nis-modrdn-map/change.txt
@@ -0,0 +1,4 @@
+Rename Result: Server is unwilling to perform (53)
+Additional info: Operation on Directory Specific Entry not allowed
+Rename Result: Server is unwilling to perform (53)
+Additional info: Operation on Directory Specific Entry not allowed
diff --git a/tests/test02-nis-modrdn-map/description.txt b/tests/test02-nis-modrdn-map/description.txt
new file mode 100644
index 0000000..1dafa8b
--- /dev/null
+++ b/tests/test02-nis-modrdn-map/description.txt
@@ -0,0 +1 @@
+modrdn still fails in the root DSE
diff --git a/tests/test02-nis-modrdn-map/dse.ldif b/tests/test02-nis-modrdn-map/dse.ldif
new file mode 100644
index 0000000..2af4988
--- /dev/null
+++ b/tests/test02-nis-modrdn-map/dse.ldif
@@ -0,0 +1,14 @@
+dn: nis-domain=example.com+nis-map=passwd.byname,cn=NIS Server,cn=plugins,cn=config
+objectClass: top
+objectClass: extensibleObject
+nis-domain: example.com
+nis-map: passwd.byname
+nis-base: cn=Users, cn=Accounts, dc=example, dc=com
+
+dn: nis-domain=example.com+nis-map=passwd.byuid,cn=NIS Server,cn=plugins,cn=config
+objectClass: top
+objectClass: extensibleObject
+nis-domain: example.com
+nis-map: passwd.byuid
+nis-base: cn=Users, cn=Accounts, dc=example, dc=com
+