diff options
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/test00-schema-add-group/after.sh | 2 | ||||
-rw-r--r-- | tests/test00-schema-add-group/after.txt | 5 | ||||
-rwxr-xr-x | tests/test00-schema-add-group/before.sh | 2 | ||||
-rw-r--r-- | tests/test00-schema-add-group/before.txt | 0 | ||||
-rwxr-xr-x | tests/test00-schema-add-group/change.sh | 15 | ||||
-rw-r--r-- | tests/test00-schema-add-group/change.txt | 2 |
6 files changed, 26 insertions, 0 deletions
diff --git a/tests/test00-schema-add-group/after.sh b/tests/test00-schema-add-group/after.sh new file mode 100755 index 0000000..e7a06a9 --- /dev/null +++ b/tests/test00-schema-add-group/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/test00-schema-add-group/after.txt b/tests/test00-schema-add-group/after.txt new file mode 100644 index 0000000..02843b4 --- /dev/null +++ b/tests/test00-schema-add-group/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/test00-schema-add-group/before.sh b/tests/test00-schema-add-group/before.sh new file mode 100755 index 0000000..e7a06a9 --- /dev/null +++ b/tests/test00-schema-add-group/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/test00-schema-add-group/before.txt b/tests/test00-schema-add-group/before.txt new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/tests/test00-schema-add-group/before.txt diff --git a/tests/test00-schema-add-group/change.sh b/tests/test00-schema-add-group/change.sh new file mode 100755 index 0000000..31d41e2 --- /dev/null +++ b/tests/test00-schema-add-group/change.sh @@ -0,0 +1,15 @@ +#!/bin/sh +add << EOF +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} + +EOF diff --git a/tests/test00-schema-add-group/change.txt b/tests/test00-schema-add-group/change.txt new file mode 100644 index 0000000..d022c7a --- /dev/null +++ b/tests/test00-schema-add-group/change.txt @@ -0,0 +1,2 @@ +adding new entry "cn=compat-passwd,cn=Schema Compatibility,cn=plugins,cn=config" + |