summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNalin Dahyabhai <nalin.dahyabhai@pobox.com>2008-07-11 13:44:24 -0400
committerNalin Dahyabhai <nalin.dahyabhai@pobox.com>2008-07-11 13:44:24 -0400
commitc59caec0a5f090e6a94530469fcc26f6364d1386 (patch)
tree1335b437ca6c0ce965115c92b408b9b0ed114b5c
parente6d1f6e4af4d6a192d1c859d6cb0db0d407c42e5 (diff)
downloadslapi-nis-c59caec0a5f090e6a94530469fcc26f6364d1386.tar.gz
slapi-nis-c59caec0a5f090e6a94530469fcc26f6364d1386.tar.xz
slapi-nis-c59caec0a5f090e6a94530469fcc26f6364d1386.zip
- when a previously-not-present attribute is reference, have all of its values
show up when it gets values for them
-rwxr-xr-xtests/test12-schema-modify-entry/after.sh2
-rw-r--r--tests/test12-schema-modify-entry/after.txt14
-rwxr-xr-xtests/test12-schema-modify-entry/before.sh2
-rw-r--r--tests/test12-schema-modify-entry/before.txt10
-rwxr-xr-xtests/test12-schema-modify-entry/change.sh12
-rw-r--r--tests/test12-schema-modify-entry/change.txt2
-rw-r--r--tests/test12-schema-modify-entry/description.txt1
-rw-r--r--tests/test12-schema-modify-entry/dse.ldif12
8 files changed, 55 insertions, 0 deletions
diff --git a/tests/test12-schema-modify-entry/after.sh b/tests/test12-schema-modify-entry/after.sh
new file mode 100755
index 0000000..9c78326
--- /dev/null
+++ b/tests/test12-schema-modify-entry/after.sh
@@ -0,0 +1,2 @@
+#!/bin/sh
+search -b cn=compat,cn=accounts,dc=example,dc=com dn inetUserHttpURL | $LDIFSORT
diff --git a/tests/test12-schema-modify-entry/after.txt b/tests/test12-schema-modify-entry/after.txt
new file mode 100644
index 0000000..48a074d
--- /dev/null
+++ b/tests/test12-schema-modify-entry/after.txt
@@ -0,0 +1,14 @@
+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
+inetUserHttpURL: http://localhost/
+inetUserHttpURL: http://localhost.localdomain/
+inetUserHttpURL: http://here/
+inetUserHttpURL: http://there/
+
+dn: uid=user1c,ou=passwd,cn=compat,cn=accounts,dc=example,dc=com
+
diff --git a/tests/test12-schema-modify-entry/before.sh b/tests/test12-schema-modify-entry/before.sh
new file mode 100755
index 0000000..9c78326
--- /dev/null
+++ b/tests/test12-schema-modify-entry/before.sh
@@ -0,0 +1,2 @@
+#!/bin/sh
+search -b cn=compat,cn=accounts,dc=example,dc=com dn inetUserHttpURL | $LDIFSORT
diff --git a/tests/test12-schema-modify-entry/before.txt b/tests/test12-schema-modify-entry/before.txt
new file mode 100644
index 0000000..5685722
--- /dev/null
+++ b/tests/test12-schema-modify-entry/before.txt
@@ -0,0 +1,10 @@
+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/test12-schema-modify-entry/change.sh b/tests/test12-schema-modify-entry/change.sh
new file mode 100755
index 0000000..a393d30
--- /dev/null
+++ b/tests/test12-schema-modify-entry/change.sh
@@ -0,0 +1,12 @@
+#!/bin/sh
+modify << EOF
+dn: uid=user1b, cn=Users1, cn=Accounts, dc=example, dc=com
+changetype: modify
+add: inetUserHttpURL
+inetUserHttpURL: http://localhost/
+inetUserHttpURL: http://localhost.localdomain/
+inetUserHttpURL: http://here/
+inetUserHttpURL: http://there/
+-
+
+EOF
diff --git a/tests/test12-schema-modify-entry/change.txt b/tests/test12-schema-modify-entry/change.txt
new file mode 100644
index 0000000..8c1f597
--- /dev/null
+++ b/tests/test12-schema-modify-entry/change.txt
@@ -0,0 +1,2 @@
+modifying entry "uid=user1b, cn=Users1, cn=Accounts, dc=example, dc=com"
+
diff --git a/tests/test12-schema-modify-entry/description.txt b/tests/test12-schema-modify-entry/description.txt
new file mode 100644
index 0000000..3f75a88
--- /dev/null
+++ b/tests/test12-schema-modify-entry/description.txt
@@ -0,0 +1 @@
+add previously-not-present attribute values
diff --git a/tests/test12-schema-modify-entry/dse.ldif b/tests/test12-schema-modify-entry/dse.ldif
new file mode 100644
index 0000000..58afb27
--- /dev/null
+++ b/tests/test12-schema-modify-entry/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: inetUserHttpURL=%{inetUserHttpURL}
+