security_pwd_null.xml revision d25372dc8e65a9ed019a88fdf659ca61313f1b31
124N/A<?xml version="1.0" encoding="UTF-8" standalone="no"?>
124N/A<!DOCTYPE stax SYSTEM "/shared/stax.dtd">
124N/A<!--
124N/A ! CDDL HEADER START
124N/A !
124N/A ! The contents of this file are subject to the terms of the
124N/A ! Common Development and Distribution License, Version 1.0 only
124N/A ! (the "License"). You may not use this file except in compliance
124N/A ! with the License.
124N/A !
124N/A ! You can obtain a copy of the license at
124N/A ! trunk/opends/resource/legal-notices/OpenDS.LICENSE
124N/A ! or https://OpenDS.dev.java.net/OpenDS.LICENSE.
124N/A ! See the License for the specific language governing permissions
124N/A ! and limitations under the License.
124N/A !
124N/A ! When distributing Covered Code, include this CDDL HEADER in each
124N/A ! file and include the License file at
124N/A ! trunk/opends/resource/legal-notices/OpenDS.LICENSE. If applicable,
124N/A ! add the following below this CDDL HEADER, with the fields enclosed
5319N/A ! by brackets "[]" replaced with your own identifying information:
124N/A ! Portions Copyright [yyyy] [name of copyright owner]
124N/A !
124N/A ! CDDL HEADER END
124N/A !
7156N/A ! Copyright 2006-2008 Sun Microsystems, Inc.
618N/A ! -->
124N/A<stax>
124N/A
844N/A <defaultcall function="pwd_null"/>
7156N/A
618N/A <function name="pwd_null">
1273N/A
124N/A <sequence>
7156N/A
2996N/A <!--- Test Case : Default - Search Entry With Pwd -->
3996N/A <testcase name="getTestCaseName('Default - Search Entry With Pwd')">
3996N/A <sequence>
3996N/A <call function="'testCase_Preamble'"/>
124N/A <message>
2996N/A 'Security: Bind No Pwd: Default - Search Entry With Pwd'
2996N/A </message>
2996N/A
2996N/A <call function="'SearchObjectNoPwd'">
2352N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
2352N/A 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
2352N/A 'dsInstanceDn' : 'uid=bhall, ou=People, ou=password tests, o=Bind No Pwd Tests, dc=example,dc=com' ,
124N/A 'dsBaseDN' : 'dc=example,dc=com' ,
124N/A 'dsFilter' : 'objectclass=*' ,
3094N/A 'extraParams' : '-s base -j %s/security/bind_no_pwd/bhall.pwd' % remote.data }
3094N/A </call>
3094N/A
7156N/A <call function="'testCase_Postamble'"/>
7156N/A </sequence>
7156N/A </testcase>
124N/A
124N/A <!--- Test Case : Default - Search Entry With No Pwd -->
6089N/A <testcase name="getTestCaseName('Default - Search Entry With No Pwd')">
124N/A <sequence>
124N/A <call function="'testCase_Preamble'"/>
124N/A <message>
4311N/A 'Security: Bind No Pwd: Default - Search Entry With No Pwd'
7156N/A </message>
124N/A
124N/A <call function="'SearchObjectNoPwd'">
124N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
1823N/A 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
1823N/A 'dsInstanceDn' : 'uid=bhall, ou=People, ou=password tests, o=Bind No Pwd Tests, dc=example,dc=com' ,
1823N/A 'dsBaseDN' : 'dc=example,dc=com' ,
765N/A 'dsFilter' : 'objectclass=*' ,
765N/A 'extraParams' : '-s base -j %s/security/bind_no_pwd/null.pwd' % remote.data,
765N/A 'expectedRC' : 53 }
765N/A </call>
765N/A
1823N/A <call function="'testCase_Postamble'"/>
1823N/A </sequence>
1823N/A </testcase>
765N/A
765N/A <!--- Test Case : Enable Binds With No Password -->
765N/A <testcase name="getTestCaseName('Enable')">
765N/A <sequence>
765N/A <call function="'testCase_Preamble'"/>
4311N/A <message>
4311N/A 'Security: Bind No Pwd: Enable Binds With No Password'
6460N/A </message>
7156N/A
4311N/A <call function="'modifyGlobal'">
6460N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
7156N/A 'dsInstanceDn' : DIRECTORY_INSTANCE_DN ,
4311N/A 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD ,
4311N/A 'attributeName' : 'bind-with-dn-requires-password' ,
4311N/A 'attributeValue' : 'false' }
1823N/A </call>
124N/A
1823N/A <call function="'testCase_Postamble'"/>
124N/A </sequence>
181N/A </testcase>
124N/A
3996N/A <!--- Test Case : Enabled - Search Entry With Pwd -->
3996N/A <testcase name="getTestCaseName('Enabled - Search Entry With Pwd')">
3996N/A <sequence>
3996N/A <call function="'testCase_Preamble'"/>
3996N/A <message>
3996N/A 'Security: Bind No Pwd: Enabled - Search Entry With Pwd'
3996N/A </message>
3996N/A
3996N/A <call function="'SearchObjectNoPwd'">
3996N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
3996N/A 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
3996N/A 'dsInstanceDn' : 'uid=bhall, ou=People, ou=password tests, o=Bind No Pwd Tests, dc=example,dc=com' ,
3996N/A 'dsBaseDN' : 'dc=example,dc=com' ,
3996N/A 'dsFilter' : 'objectclass=*' ,
3996N/A 'extraParams' : '-s base -j %s/security/bind_no_pwd/bhall.pwd' % remote.data }
3996N/A </call>
3996N/A
3996N/A <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 ,
'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>