| New file |
| | |
| | | <?xml version="1.0" encoding="UTF-8" standalone="no"?> |
| | | <!DOCTYPE stax SYSTEM "stax.dtd"> |
| | | <!--- |
| | | * CDDL HEADER START |
| | | * |
| | | * The contents of this file are subject to the terms of the |
| | | * Common Development and Distribution License, Version 1.0 only |
| | | * (the "License"). You may not use this file except in compliance |
| | | * with the License. |
| | | * |
| | | * You can obtain a copy of the license at |
| | | * trunk/opends/resource/legal-notices/OpenDS.LICENSE |
| | | * or https://OpenDS.dev.java.net/OpenDS.LICENSE. |
| | | * See the License for the specific language governing permissions |
| | | * and limitations under the License. |
| | | * |
| | | * When distributing Covered Code, include this CDDL HEADER in each |
| | | * file and include the License file at |
| | | * trunk/opends/resource/legal-notices/OpenDS.LICENSE. If applicable, |
| | | * add the following below this CDDL HEADER, with the fields enclosed |
| | | * by brackets "[]" replaced with your own identifying * information: |
| | | * Portions Copyright [yyyy] [name of copyright owner] |
| | | * |
| | | * CDDL HEADER END |
| | | * |
| | | * |
| | | * Portions Copyright 2006 Sun Microsystems, Inc. |
| | | --> |
| | | <stax> |
| | | |
| | | <defaultcall function="root_user_tests"/> |
| | | |
| | | <function name="root_user_tests"> |
| | | |
| | | <sequence> |
| | | |
| | | <!--- Check Existence of ds-cfg-default-password-storage-scheme Attr --> |
| | | <testcase name="'Security: Pwd Policy Root: Default Pwd Scheme'"> |
| | | <sequence> |
| | | <message> |
| | | 'Security: Pwd Policy Root: Checking default value ds-cfg-default-password-storage-scheme' |
| | | </message> |
| | | |
| | | <call function="'SearchObject'"> |
| | | { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN , |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , |
| | | 'dsBaseDN' : 'cn=Root Password Policy,cn=Password Policies,cn=config' , |
| | | 'dsFilter' : 'objectclass=*' , |
| | | 'attributes' : 'ds-cfg-default-password-storage-scheme' } |
| | | </call> |
| | | |
| | | <script> |
| | | returnString = STAXResult[0][1] |
| | | </script> |
| | | |
| | | <call function="'checktestString'"> |
| | | { 'returnString' : returnString , |
| | | 'expectedString' : 'SSHA512' } |
| | | </call> |
| | | |
| | | </sequence> |
| | | </testcase> |
| | | |
| | | <!--- Check Existence of ds-cfg-password-generator-dn Attr --> |
| | | <testcase name="'Security: Pwd Policy Root: No Default Pwd Generator'"> |
| | | <sequence> |
| | | <message> |
| | | 'Security: Pwd Policy Root: Checking for ds-cfg-password-generator-dn' |
| | | </message> |
| | | |
| | | <call function="'compareEntry'"> |
| | | { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN , |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , |
| | | 'attrToBeCompared' : 'ds-cfg-password-generator-dn:cn=anything', |
| | | 'entryToBeCompared' : 'cn=Root Password Policy,cn=Password Policies,cn=config' } |
| | | </call> |
| | | |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : RC , |
| | | 'result' : STAXResult , |
| | | 'expected' : 16 } |
| | | </call> |
| | | </sequence> |
| | | </testcase> |
| | | |
| | | <!--- Check Existence of ds-cfg-password-change-requires-current-password Attr --> |
| | | <testcase name="'Security: Pwd Policy Root: Default Pwd Change Setting'"> |
| | | <sequence> |
| | | <message> |
| | | 'Security: Pwd Policy Root: Checking default value ds-cfg-password-change-requires-current-password' |
| | | </message> |
| | | |
| | | <call function="'SearchObject'"> |
| | | { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN , |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , |
| | | 'dsBaseDN' : 'cn=Root Password Policy,cn=Password Policies,cn=config' , |
| | | 'dsFilter' : 'objectclass=*' , |
| | | 'attributes' : 'ds-cfg-password-change-requires-current-password' } |
| | | </call> |
| | | |
| | | <script> |
| | | returnString = STAXResult[0][1] |
| | | </script> |
| | | |
| | | <call function="'checktestString'"> |
| | | { 'returnString' : returnString , |
| | | 'expectedString' : 'true' } |
| | | </call> |
| | | |
| | | </sequence> |
| | | </testcase> |
| | | |
| | | <return>RC</return> |
| | | |
| | | </sequence> |
| | | |
| | | </function> |
| | | |
| | | </stax> |