diff options
Diffstat (limited to 'tests/test08-schema-remove-entry')
-rwxr-xr-x | tests/test08-schema-remove-entry/after.sh | 4 | ||||
-rw-r--r-- | tests/test08-schema-remove-entry/after.txt | 4 | ||||
-rwxr-xr-x | tests/test08-schema-remove-entry/before.sh | 4 | ||||
-rw-r--r-- | tests/test08-schema-remove-entry/before.txt | 5 | ||||
-rwxr-xr-x | tests/test08-schema-remove-entry/change.sh | 2 | ||||
-rw-r--r-- | tests/test08-schema-remove-entry/description.txt | 1 | ||||
-rw-r--r-- | tests/test08-schema-remove-entry/dse.ldif | 12 |
7 files changed, 32 insertions, 0 deletions
diff --git a/tests/test08-schema-remove-entry/after.sh b/tests/test08-schema-remove-entry/after.sh new file mode 100755 index 0000000..32c64be --- /dev/null +++ b/tests/test08-schema-remove-entry/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/test08-schema-remove-entry/after.txt b/tests/test08-schema-remove-entry/after.txt new file mode 100644 index 0000000..eef023d --- /dev/null +++ b/tests/test08-schema-remove-entry/after.txt @@ -0,0 +1,4 @@ +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=user1c,ou=passwd,cn=compat,cn=accounts,dc=example,dc=com diff --git a/tests/test08-schema-remove-entry/before.sh b/tests/test08-schema-remove-entry/before.sh new file mode 100755 index 0000000..32c64be --- /dev/null +++ b/tests/test08-schema-remove-entry/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/test08-schema-remove-entry/before.txt b/tests/test08-schema-remove-entry/before.txt new file mode 100644 index 0000000..02843b4 --- /dev/null +++ b/tests/test08-schema-remove-entry/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/test08-schema-remove-entry/change.sh b/tests/test08-schema-remove-entry/change.sh new file mode 100755 index 0000000..7eb65fb --- /dev/null +++ b/tests/test08-schema-remove-entry/change.sh @@ -0,0 +1,2 @@ +#!/bin/sh +delete "uid=user1b, cn=Users1, cn=Accounts, dc=example, dc=com" diff --git a/tests/test08-schema-remove-entry/description.txt b/tests/test08-schema-remove-entry/description.txt new file mode 100644 index 0000000..d844670 --- /dev/null +++ b/tests/test08-schema-remove-entry/description.txt @@ -0,0 +1 @@ +notice a new matching entry diff --git a/tests/test08-schema-remove-entry/dse.ldif b/tests/test08-schema-remove-entry/dse.ldif new file mode 100644 index 0000000..316e1f5 --- /dev/null +++ b/tests/test08-schema-remove-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: uidNumber=%{uidNumber} + |