From c59caec0a5f090e6a94530469fcc26f6364d1386 Mon Sep 17 00:00:00 2001 From: Nalin Dahyabhai Date: Fri, 11 Jul 2008 13:44:24 -0400 Subject: - when a previously-not-present attribute is reference, have all of its values show up when it gets values for them --- tests/test12-schema-modify-entry/after.sh | 2 ++ tests/test12-schema-modify-entry/after.txt | 14 ++++++++++++++ tests/test12-schema-modify-entry/before.sh | 2 ++ tests/test12-schema-modify-entry/before.txt | 10 ++++++++++ tests/test12-schema-modify-entry/change.sh | 12 ++++++++++++ tests/test12-schema-modify-entry/change.txt | 2 ++ tests/test12-schema-modify-entry/description.txt | 1 + tests/test12-schema-modify-entry/dse.ldif | 12 ++++++++++++ 8 files changed, 55 insertions(+) create mode 100755 tests/test12-schema-modify-entry/after.sh create mode 100644 tests/test12-schema-modify-entry/after.txt create mode 100755 tests/test12-schema-modify-entry/before.sh create mode 100644 tests/test12-schema-modify-entry/before.txt create mode 100755 tests/test12-schema-modify-entry/change.sh create mode 100644 tests/test12-schema-modify-entry/change.txt create mode 100644 tests/test12-schema-modify-entry/description.txt create mode 100644 tests/test12-schema-modify-entry/dse.ldif 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} + -- cgit