124N/A<?
xml version="1.0" encoding="UTF-8" standalone="no"?>
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 ! You can obtain a copy of the license at 124N/A ! See the License for the specific language governing permissions 124N/A ! and limitations under the License. 124N/A ! When distributing Covered Code, include this CDDL HEADER in each 124N/A ! file and include the License file at 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] 7156N/A ! Copyright 2006-2008 Sun Microsystems, Inc. 844N/A <
defaultcall function="pwd_null"/>
618N/A <
function name="pwd_null">
2996N/A <!--- Test Case : Default - Search Entry With Pwd --> 3996N/A <
testcase name="getTestCaseName('Default - Search Entry With Pwd')">
3996N/A <
call function="'testCase_Preamble'"/>
2996N/A 'Security: Bind No Pwd: Default - Search Entry With Pwd'
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=*' ,
7156N/A <
call function="'testCase_Postamble'"/>
124N/A <!--- Test Case : Default - Search Entry With No Pwd --> 6089N/A <
testcase name="getTestCaseName('Default - Search Entry With No Pwd')">
124N/A <
call function="'testCase_Preamble'"/>
4311N/A 'Security: Bind No Pwd: Default - Search Entry With No Pwd'
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=*' ,
1823N/A <
call function="'testCase_Postamble'"/>
765N/A <!--- Test Case : Enable Binds With No Password --> 765N/A <
testcase name="getTestCaseName('Enable')">
765N/A <
call function="'testCase_Preamble'"/>
4311N/A 'Security: Bind No Pwd: Enable Binds With No Password'
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 function="'testCase_Postamble'"/>
3996N/A <!--- Test Case : Enabled - Search Entry With Pwd --> 3996N/A <
testcase name="getTestCaseName('Enabled - Search Entry With Pwd')">
3996N/A <
call function="'testCase_Preamble'"/>
3996N/A 'Security: Bind No Pwd: Enabled - Search Entry With Pwd'
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 <
call function="'testCase_Postamble'"/>
<!--- Test Case : Enabled - Search Entry With No Pwd --> <
testcase name="getTestCaseName('Enabled - Search Entry With No Pwd')">
<
call function="'testCase_Preamble'"/>
'Security: Bind No Pwd: Enabled - Search Entry With No Pwd'
<
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=*' ,
<
call function="'testCase_Postamble'"/>
<!--- Test Case : Enabled - Search As User With No Pwd --> <
testcase name="getTestCaseName('Enabled - Search As User With No Pwd')">
<
call function="'testCase_Preamble'"/>
'Security: Bind No Pwd: Enabled - Search As User With No Pwd'
<
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=*' ,
<
call function="'testCase_Postamble'"/>
<!--- Test Case : Enabled - Search As Non-exist User --> <
testcase name="getTestCaseName('Enabled - Search As Non-exist User')">
<
call function="'testCase_Preamble'"/>
'Security: Bind No Pwd: Enabled - Search As Non-exist User'
<
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=*' ,
<
call function="'testCase_Postamble'"/>
<!--- Test Case : Reset Configuration --> <
testcase name="getTestCaseName('Postamble')">
<
call function="'testCase_Preamble'"/>
'Security: Bind No Pwd: Reset - Step 1. Reset Configuration'
<
call function="'modifyGlobal'">
{ 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
'dsInstanceDn' : DIRECTORY_INSTANCE_DN ,
'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD ,
'attributeName' : 'bind-with-dn-requires-password' ,
'attributeValue' : 'true' }
'Security: Bind No Pwd: Reset - Step 2. Check Reset'
<
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=*' ,
<
call function="'testCase_Postamble'"/>