security_pwd_null.xml revision d81978a0815d5b8a75633c35e3e1f8708d36f017
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE stax SYSTEM "/shared/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
!
! Copyright 2006-2008 Sun Microsystems, Inc.
! -->
<stax>
<defaultcall function="pwd_null"/>
<function name="pwd_null">
<sequence>
<!--- Test Case : Default - Search Entry With Pwd -->
<testcase name="getTestCaseName('Default - Search Entry With Pwd')">
<sequence>
<call function="'testCase_Preamble'"/>
<message>
'Security: Bind No Pwd: Default - Search Entry With Pwd'
</message>
<call function="'SearchObjectNoPwd'">
{ 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
'dsInstanceDn' : 'uid=bhall, ou=People, ou=password tests, o=Bind No Pwd Tests, dc=example,dc=com' ,
'dsBaseDN' : 'dc=example,dc=com' ,
'dsFilter' : 'objectclass=*' ,
'extraParams' : '-s base -j %s/security/bind_no_pwd/bhall.pwd' % remote.data }
</call>
<call function="'testCase_Postamble'"/>
</sequence>
</testcase>
<!--- Test Case : Default - Search Entry With No Pwd -->
<testcase name="getTestCaseName('Default - Search Entry With No Pwd')">
<sequence>
<call function="'testCase_Preamble'"/>
<message>
'Security: Bind No Pwd: Default - Search Entry With No Pwd'
</message>
<call function="'SearchObjectNoPwd'">
{ 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
'dsInstanceDn' : 'uid=bhall, ou=People, ou=password tests, o=Bind No Pwd Tests, dc=example,dc=com' ,
'dsBaseDN' : 'dc=example,dc=com' ,
'dsFilter' : 'objectclass=*' ,
'extraParams' : '-s base -j %s/security/bind_no_pwd/null.pwd' % remote.data,
'expectedRC' : 53 }
</call>
<call function="'testCase_Postamble'"/>
</sequence>
</testcase>
<!--- Test Case : Enable Binds With No Password -->
<testcase name="getTestCaseName('Enable')">
<sequence>
<call function="'testCase_Preamble'"/>
<message>
'Security: Bind No Pwd: Enable Binds With No Password'
</message>
<call function="'modifyGlobal'">
{ 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
'dsInstanceDn' : DIRECTORY_INSTANCE_DN ,
'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD ,
'attributeName' : 'bind-with-dn-requires-password' ,
'attributeValue' : 'false' }
</call>
<call function="'testCase_Postamble'"/>
</sequence>
</testcase>
<!--- Test Case : Enabled - Search Entry With Pwd -->
<testcase name="getTestCaseName('Enabled - Search Entry With Pwd')">
<sequence>
<call function="'testCase_Preamble'"/>
<message>
'Security: Bind No Pwd: Enabled - Search Entry With Pwd'
</message>
<call function="'SearchObjectNoPwd'">
{ 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
'dsInstanceDn' : 'uid=bhall, ou=People, ou=password tests, o=Bind No Pwd Tests, dc=example,dc=com' ,
'dsBaseDN' : 'dc=example,dc=com' ,
'dsFilter' : 'objectclass=*' ,
'extraParams' : '-s base -j %s/security/bind_no_pwd/bhall.pwd' % remote.data }
</call>
<call function="'testCase_Postamble'"/>
</sequence>
</testcase>
<!--- Test Case : Enabled - Search Entry With No Pwd -->
<testcase name="getTestCaseName('Enabled - Search Entry With No Pwd')">
<sequence>
<call function="'testCase_Preamble'"/>
<message>
'Security: Bind No Pwd: Enabled - Search Entry With No Pwd'
</message>
<call function="'SearchObjectNoPwd'">
{ 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
'dsInstanceDn' : 'uid=bhall, ou=People, ou=password tests, o=Bind No Pwd Tests, dc=example,dc=com' ,
'dsBaseDN' : 'dc=example,dc=com' ,
'dsFilter' : 'objectclass=*' ,
'extraParams' : '-s base -j %s/security/bind_no_pwd/null.pwd' % remote.data }
</call>
<call function="'testCase_Postamble'"/>
</sequence>
</testcase>
<!--- Test Case : Enabled - Search As User With No Pwd -->
<testcase name="getTestCaseName('Enabled - Search As User With No Pwd')">
<sequence>
<call function="'testCase_Preamble'"/>
<message>
'Security: Bind No Pwd: Enabled - Search As User With No Pwd'
</message>
<call function="'SearchObjectNoPwd'">
{ 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
'dsInstanceDn' : 'uid=tmason, ou=People, ou=password tests, o=Bind No Pwd Tests, dc=example,dc=com' ,
'dsBaseDN' : 'dc=example,dc=com' ,
'dsFilter' : 'objectclass=*' ,
'extraParams' : '-s base -j %s/security/bind_no_pwd/null.pwd' % remote.data }
</call>
<call function="'testCase_Postamble'"/>
</sequence>
</testcase>
<!--- Test Case : Enabled - Search As Non-exist User -->
<testcase name="getTestCaseName('Enabled - Search As Non-exist User')">
<sequence>
<call function="'testCase_Preamble'"/>
<message>
'Security: Bind No Pwd: Enabled - Search As Non-exist User'
</message>
<call function="'SearchObjectNoPwd'">
{ 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
'dsInstanceDn' : 'uid=Anybody, ou=People, ou=password tests, o=Bind No Pwd Tests, dc=example,dc=com' ,
'dsBaseDN' : 'dc=example,dc=com' ,
'dsFilter' : 'objectclass=*' ,
'extraParams' : '-s base -j %s/security/bind_no_pwd/null.pwd' % remote.data }
</call>
<call function="'testCase_Postamble'"/>
</sequence>
</testcase>
<!--- Test Case : Reset Configuration -->
<testcase name="getTestCaseName('Postamble')">
<sequence>
<call function="'testCase_Preamble'"/>
<message>
'Security: Bind No Pwd: Reset - Step 1. Reset Configuration'
</message>
<call function="'modifyGlobal'">
{ 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
'dsInstanceDn' : DIRECTORY_INSTANCE_DN ,
'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD ,
'attributeName' : 'bind-with-dn-requires-password' ,
'attributeValue' : 'true' }
</call>
<message>
'Security: Bind No Pwd: Reset - Step 2. Check Reset'
</message>
<call function="'SearchObjectNoPwd'">
{ 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
'dsInstanceDn' : 'uid=bhall, ou=People, ou=password tests, o=Bind No Pwd Tests, dc=example,dc=com' ,
'dsBaseDN' : 'dc=example,dc=com' ,
'dsFilter' : 'objectclass=*' ,
'extraParams' : '-s base -j %s/security/bind_no_pwd/null.pwd' % remote.data,
'expectedRC' : 53 }
</call>
<call function="'testCase_Postamble'"/>
</sequence>
</testcase>
</sequence>
</function>
</stax>