| | |
| | | #@TestStep Admin adds ds-privilege-name to cn=Directory Manager |
| | | #@TestStep Client searches entry in targeted branch as cn=Directory Manager proxied user. |
| | | #@TestStep Client searches entry in targeted branch as cn=Directory Manager proxied user through second user. |
| | | #@TestStep Admin deletes ds-privilege-name from cn=Directory Manager |
| | | #@TestStep Remove all acis. |
| | | #@TestStep Client searches entry in the previously targeted branch. |
| | | #@TestPostamble none |
| | | #@TestResult Success if OpenDS returns 0 |
| | | for all ldap operations except step 3 where 123 is expected. |
| | | Entry is returned only for steps 1, 5 and 6 |
| | | Entry is returned only for steps 1 and 5 |
| | | and only with the specified attribute. |
| | | --> |
| | | <testcase name="'ACI: Proxy Auth: Directory Manager as proxy'"> |
| | |
| | | <if expr="RC != 0"> |
| | | <tcstatus result="'fail'"/> |
| | | </if> |
| | | <!-- Uncomment or delete when Issue 1610 is remedied. |
| | | |
| | | <script> |
| | | curr_aci_ldif_file = 'add_proxy_aci_dm.ldif' |
| | | curr_aci=retrieve_aci('%s/aci/aci_proxy_auth/%s' % (LOCAL_DATA_DIR,curr_aci_ldif_file)); |
| | |
| | | <if expr="RC != 0"> |
| | | <tcstatus result="'fail'"/> |
| | | </if> |
| | | --> |
| | | |
| | | <message> |
| | | 'ACI: Proxy Auth: Directory Manager as proxy, proxied user searching targeted entry' |
| | | </message> |
| | |
| | | 'testString' : 'dn: uid=tmorris,ou=People,ou=aci branch,o=ACI Tests' } |
| | | </call> |
| | | |
| | | <if expr="returnCode != '1'"> |
| | | <if expr="returnCode != '0'"> |
| | | <tcstatus result="'fail'"/> |
| | | </if> |
| | | |
| | |
| | | 'testString' : 'cn:' } |
| | | </call> |
| | | |
| | | <if expr="returnCode != '1'"> |
| | | <if expr="returnCode != '0'"> |
| | | <tcstatus result="'fail'"/> |
| | | </if> |
| | | |
| | | <message> |
| | | 'ACI: Proxy Auth: Directory Manager as proxy, deleting proxied-auth' |
| | | </message> |
| | | |
| | | <call function="'modifyEntry'"> |
| | | { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN , |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , |
| | | 'entryToBeModified' : '%s/aci/aci_proxy_auth/del_proxy_auth_dm.ldif' % (STAGED_DATA_DIR) } |
| | | </call> |
| | | |
| | | <if expr="RC != 0"> |
| | | <tcstatus result="'fail'"/> |
| | | </if> |
| | | |
| | | <message> |
| | | 'ACI: Proxy Auth: Directory Manager as proxy, admin deleting both acis' |
| | | </message> |
| | | |