Functional tests for Issues 335 and 336.
13 files added
1 files modified
| New file |
| | |
| | | # 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. |
| | | # |
| | | |
| | | dn: cn=Length-Based Password Validator,cn=Password Validators,cn=config |
| | | changetype: modify |
| | | replace: ds-cfg-maximum-password-length |
| | | ds-cfg-maximum-password-length: 10 |
| New file |
| | |
| | | # 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. |
| | | # |
| | | |
| | | dn: cn=Length-Based Password Validator,cn=Password Validators,cn=config |
| | | changetype: modify |
| | | replace: ds-cfg-minimum-password-length |
| | | ds-cfg-minimum-password-length: 4 |
| New file |
| | |
| | | # 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. |
| | | # |
| | | |
| | | dn: cn=Default Password Policy,cn=Password Policies,cn=config |
| | | changetype: modify |
| | | replace: ds-cfg-password-validator-dn |
| | | ds-cfg-password-validator-dn: cn=Length-Based Password Validator,cn=Password Validators,cn=config |
| New file |
| | |
| | | # 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. |
| | | # |
| | | |
| | | dn: cn=Length-Based Password Validator,cn=Password Validators,cn=config |
| | | changetype: modify |
| | | replace: ds-cfg-maximum-password-length |
| | | ds-cfg-maximum-password-length: 0 |
| New file |
| | |
| | | # 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. |
| | | # |
| | | |
| | | dn: cn=Length-Based Password Validator,cn=Password Validators,cn=config |
| | | changetype: modify |
| | | replace: ds-cfg-minimum-password-length |
| | | ds-cfg-minimum-password-length: 6 |
| New file |
| | |
| | | # 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. |
| | | # |
| | | |
| | | dn: o=Pwd Validator Tests, dc=example,dc=com |
| | | o: Pwd Validator Tests |
| | | objectclass: top |
| | | objectclass: organization |
| | | |
| | | dn: ou=password tests, o=Pwd Validator Tests, dc=example,dc=com |
| | | ou: password tests |
| | | objectclass: top |
| | | objectclass: organizationalunit |
| | | |
| | | dn: ou=Groups, ou=password tests, o=Pwd Validator Tests, dc=example,dc=com |
| | | objectclass: top |
| | | objectclass: organizationalunit |
| | | ou: Groups |
| | | |
| | | dn: cn=Directory Administrators, ou=Groups, ou=password tests, o=Pwd Validator Tests, dc=example,dc=com |
| | | cn: Directory Administrators |
| | | objectclass: top |
| | | objectclass: groupofuniquenames |
| | | ou: Groups |
| | | uniquemember: uid=kvaughan, ou=People, ou=password tests, o=Pwd Validator Tests, dc=example,dc=com |
| | | uniquemember: uid=rdaugherty, ou=People, ou=password tests, o=Pwd Validator Tests, dc=example,dc=com |
| | | uniquemember: uid=hmiller, ou=People, ou=password tests, o=Pwd Validator Tests, dc=example,dc=com |
| | | |
| | | dn: ou=People, ou=password tests, o=Pwd Validator Tests, dc=example,dc=com |
| | | objectclass: top |
| | | objectclass: organizationalunit |
| | | ou: People |
| | | |
| | | dn: ou=Special Users,ou=password tests, o=Pwd Validator Tests, dc=example,dc=com |
| | | objectclass: top |
| | | objectclass: organizationalUnit |
| | | ou: Special Users |
| | | description: Special Administrative Accounts |
| | | |
| | | dn: uid=scarter, ou=People, ou=password tests, o=Pwd Validator Tests, dc=example,dc=com |
| | | cn: Sam Carter |
| | | sn: Carter |
| | | givenname: Sam |
| | | objectclass: top |
| | | objectclass: person |
| | | objectclass: organizationalPerson |
| | | objectclass: inetOrgPerson |
| | | ou: Accounting |
| | | ou: People |
| | | l: Sunnyvale |
| | | uid: scarter |
| | | mail: scarter@example.com |
| | | telephonenumber: +1 408 555 4798 |
| | | facsimiletelephonenumber: +1 408 555 9751 |
| | | roomnumber: 4612 |
| | | userpassword: sprain |
| | | |
| | | dn: uid=tmorris, ou=People, ou=password tests, o=Pwd Validator Tests, dc=example,dc=com |
| | | cn: Ted Morris |
| | | sn: Morris |
| | | givenname: Ted |
| | | objectclass: top |
| | | objectclass: person |
| | | objectclass: organizationalPerson |
| | | objectclass: inetOrgPerson |
| | | ou: Accounting |
| | | ou: People |
| | | l: Santa Clara |
| | | uid: tmorris |
| | | mail: tmorris@example.com |
| | | telephonenumber: +1 408 555 9187 |
| | | facsimiletelephonenumber: +1 408 555 8473 |
| | | roomnumber: 4117 |
| | | userpassword: irrefutable |
| | | |
| | | dn: uid=kvaughan, ou=People, ou=password tests, o=Pwd Validator Tests, dc=example,dc=com |
| | | cn: Kirsten Vaughan |
| | | sn: Vaughan |
| | | givenname: Kirsten |
| | | objectclass: top |
| | | objectclass: person |
| | | objectclass: organizationalPerson |
| | | objectclass: inetOrgPerson |
| | | ou: Human Resources |
| | | ou: People |
| | | l: Sunnyvale |
| | | uid: kvaughan |
| | | mail: kvaughan@example.com |
| | | telephonenumber: +1 408 555 5625 |
| | | facsimiletelephonenumber: +1 408 555 3372 |
| | | roomnumber: 2871 |
| | | userpassword: bribery |
| | | |
| | | dn: uid=abergin, ou=People, ou=password tests, o=Pwd Validator Tests, dc=example,dc=com |
| | | cn: Andy Bergin |
| | | sn: Bergin |
| | | givenname: Andy |
| | | objectclass: top |
| | | objectclass: person |
| | | objectclass: organizationalPerson |
| | | objectclass: inetOrgPerson |
| | | ou: Product Testing |
| | | ou: People |
| | | l: Cupertino |
| | | uid: abergin |
| | | mail: abergin@example.com |
| | | telephonenumber: +1 408 555 8585 |
| | | facsimiletelephonenumber: +1 408 555 7472 |
| | | roomnumber: 3472 |
| | | userpassword: inflict |
| | | |
| | | dn: uid=dmiller, ou=People, ou=password tests, o=Pwd Validator Tests, dc=example,dc=com |
| | | cn: David Miller |
| | | sn: Miller |
| | | givenname: David |
| | | objectclass: top |
| | | objectclass: person |
| | | objectclass: organizationalPerson |
| | | objectclass: inetOrgPerson |
| | | ou: Accounting |
| | | ou: People |
| | | l: Sunnyvale |
| | | uid: dmiller |
| | | mail: dmiller@example.com |
| | | telephonenumber: +1 408 555 9423 |
| | | facsimiletelephonenumber: +1 408 555 0111 |
| | | roomnumber: 4135 |
| | | userpassword: gosling |
| | | |
| | | dn: uid=gfarmer, ou=People, ou=password tests, o=Pwd Validator Tests, dc=example,dc=com |
| | | cn: Gern Farmer |
| | | sn: Farmer |
| | | givenname: Gern |
| | | objectclass: top |
| | | objectclass: person |
| | | objectclass: organizationalPerson |
| | | objectclass: inetOrgPerson |
| | | ou: Accounting |
| | | ou: People |
| | | l: Cupertino |
| | | uid: gfarmer |
| | | mail: gfarmer@example.com |
| | | telephonenumber: +1 408 555 6201 |
| | | facsimiletelephonenumber: +1 408 555 8473 |
| | | roomnumber: 1269 |
| | | userpassword: ruling |
| | | |
| | | dn: uid=kwinters, ou=People, ou=password tests, o=Pwd Validator Tests, dc=example,dc=com |
| | | cn: Kelly Winters |
| | | sn: Winters |
| | | givenname: Kelly |
| | | objectclass: top |
| | | objectclass: person |
| | | objectclass: organizationalPerson |
| | | objectclass: inetOrgPerson |
| | | ou: Product Development |
| | | ou: People |
| | | l: Santa Clara |
| | | uid: kwinters |
| | | mail: kwinters@example.com |
| | | telephonenumber: +1 408 555 9069 |
| | | facsimiletelephonenumber: +1 408 555 1992 |
| | | roomnumber: 4178 |
| | | userpassword: forsook |
| | | |
| | | dn: uid=trigden, ou=People, ou=password tests, o=Pwd Validator Tests, dc=example,dc=com |
| | | cn: Torrey Rigden |
| | | sn: Rigden |
| | | givenname: Torrey |
| | | objectclass: top |
| | | objectclass: person |
| | | objectclass: organizationalPerson |
| | | objectclass: inetOrgPerson |
| | | ou: Product Development |
| | | ou: People |
| | | l: Santa Clara |
| | | uid: trigden |
| | | mail: trigden@example.com |
| | | telephonenumber: +1 408 555 9280 |
| | | facsimiletelephonenumber: +1 408 555 8473 |
| | | roomnumber: 3584 |
| | | userpassword: sensitive |
| | | |
| | | dn: uid=cschmith, ou=People, ou=password tests, o=Pwd Validator Tests, dc=example,dc=com |
| | | cn: Chris Schmith |
| | | sn: Schmith |
| | | givenname: Chris |
| | | objectclass: top |
| | | objectclass: person |
| | | objectclass: organizationalPerson |
| | | objectclass: inetOrgPerson |
| | | ou: Human Resources |
| | | ou: People |
| | | l: Santa Clara |
| | | uid: cschmith |
| | | mail: cschmith@example.com |
| | | telephonenumber: +1 408 555 8011 |
| | | facsimiletelephonenumber: +1 408 555 4774 |
| | | roomnumber: 0416 |
| | | userpassword: hypotenuse |
| | | |
| | | dn: uid=jwallace, ou=People, ou=password tests, o=Pwd Validator Tests, dc=example,dc=com |
| | | cn: Judy Wallace |
| | | sn: Wallace |
| | | givenname: Judy |
| | | objectclass: top |
| | | objectclass: person |
| | | objectclass: organizationalPerson |
| | | objectclass: inetOrgPerson |
| | | ou: Accounting |
| | | ou: People |
| | | l: Sunnyvale |
| | | uid: jwallace |
| | | mail: jwallace@example.com |
| | | telephonenumber: +1 408 555 0319 |
| | | facsimiletelephonenumber: +1 408 555 8473 |
| | | roomnumber: 1033 |
| | | userpassword: linear |
| | | |
| | | dn: uid=jwalker, ou=People, ou=password tests, o=Pwd Validator Tests, dc=example,dc=com |
| | | cn: John Walker |
| | | sn: Walker |
| | | givenname: John |
| | | objectclass: top |
| | | objectclass: person |
| | | objectclass: organizationalPerson |
| | | objectclass: inetOrgPerson |
| | | ou: Product Testing |
| | | ou: People |
| | | l: Cupertino |
| | | uid: jwalker |
| | | mail: jwalker@example.com |
| | | telephonenumber: +1 408 555 1476 |
| | | facsimiletelephonenumber: +1 408 555 1992 |
| | | roomnumber: 3915 |
| | | userpassword: dogleg |
| | | |
| | | dn: uid=tclow, ou=People, ou=password tests, o=Pwd Validator Tests, dc=example,dc=com |
| | | cn: Torrey Clow |
| | | sn: Clow |
| | | givenname: Torrey |
| | | objectclass: top |
| | | objectclass: person |
| | | objectclass: organizationalPerson |
| | | objectclass: inetOrgPerson |
| | | ou: Human Resources |
| | | ou: People |
| | | l: Santa Clara |
| | | uid: tclow |
| | | mail: tclow@example.com |
| | | telephonenumber: +1 408 555 8825 |
| | | facsimiletelephonenumber: +1 408 555 1992 |
| | | roomnumber: 4376 |
| | | userpassword: cardreader |
| | | |
| | | dn: uid=rdaugherty, ou=People, ou=password tests, o=Pwd Validator Tests, dc=example,dc=com |
| | | cn: Robert Daugherty |
| | | sn: Daugherty |
| | | givenname: Robert |
| | | objectclass: top |
| | | objectclass: person |
| | | objectclass: organizationalPerson |
| | | objectclass: inetOrgPerson |
| | | ou: Human Resources |
| | | ou: People |
| | | l: Sunnyvale |
| | | uid: rdaugherty |
| | | mail: rdaugherty@example.com |
| | | telephonenumber: +1 408 555 1296 |
| | | facsimiletelephonenumber: +1 408 555 1992 |
| | | roomnumber: 0194 |
| | | userpassword: apples |
| | | |
| | | dn: uid=jreuter, ou=People, ou=password tests, o=Pwd Validator Tests, dc=example,dc=com |
| | | cn: Jayne Reuter |
| | | sn: Reuter |
| | | givenname: Jayne |
| | | objectclass: top |
| | | objectclass: person |
| | | objectclass: organizationalPerson |
| | | objectclass: inetOrgPerson |
| | | ou: Product Testing |
| | | ou: People |
| | | l: Cupertino |
| | | uid: jreuter |
| | | mail: jreuter@example.com |
| | | telephonenumber: +1 408 555 1122 |
| | | facsimiletelephonenumber: +1 408 555 8721 |
| | | roomnumber: 2942 |
| | | userpassword: destroy |
| | | |
| | | dn: uid=tmason, ou=People, ou=password tests, o=Pwd Validator Tests, dc=example,dc=com |
| | | cn: Torrey Mason |
| | | sn: Mason |
| | | givenname: Torrey |
| | | objectclass: top |
| | | objectclass: person |
| | | objectclass: organizationalPerson |
| | | objectclass: inetOrgPerson |
| | | ou: Human Resources |
| | | ou: People |
| | | l: Sunnyvale |
| | | uid: tmason |
| | | mail: tmason@example.com |
| | | telephonenumber: +1 408 555 1596 |
| | | facsimiletelephonenumber: +1 408 555 9751 |
| | | roomnumber: 1124 |
| | | userpassword: squatted |
| | | |
| | | dn: uid=bhall, ou=People, ou=password tests, o=Pwd Validator Tests, dc=example,dc=com |
| | | cn: Benjamin Hall |
| | | sn: Hall |
| | | givenname: Benjamin |
| | | objectclass: top |
| | | objectclass: person |
| | | objectclass: organizationalPerson |
| | | objectclass: inetOrgPerson |
| | | ou: Product Development |
| | | ou: People |
| | | l: Santa Clara |
| | | uid: bhall |
| | | mail: bhall@example.com |
| | | telephonenumber: +1 408 555 6067 |
| | | facsimiletelephonenumber: +1 408 555 0111 |
| | | roomnumber: 2511 |
| | | userpassword: oranges |
| | | |
| New file |
| | |
| | | # 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. |
| | | # |
| | | |
| | | dn: uid=bhall, ou=People, ou=password tests, o=Pwd Validator Tests, dc=example,dc=com |
| | | changetype: modify |
| | | replace: userpassword |
| | | userpassword: pomegranates |
| New file |
| | |
| | | # 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. |
| | | # |
| | | |
| | | dn: uid=bhall, ou=People, ou=password tests, o=Pwd Validator Tests, dc=example,dc=com |
| | | changetype: modify |
| | | replace: userpassword |
| | | userpassword: grapefruit |
| New file |
| | |
| | | # 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. |
| | | # |
| | | |
| | | dn: uid=bhall, ou=People, ou=password tests, o=Pwd Validator Tests, dc=example,dc=com |
| | | changetype: modify |
| | | replace: userpassword |
| | | userpassword: grape |
| New file |
| | |
| | | # 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. |
| | | # |
| | | |
| | | dn: uid=bhall, ou=People, ou=password tests, o=Pwd Validator Tests, dc=example,dc=com |
| | | changetype: modify |
| | | replace: userpassword |
| | | userpassword: goo |
| 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="pwd_length"/> |
| | | |
| | | <function name="pwd_length"> |
| | | |
| | | <sequence> |
| | | |
| | | <testcase name="'Security: Pwd Length: Check Existence of ds-cfg-minimum-password-length'"> |
| | | <sequence> |
| | | <message> |
| | | 'Security: Pwd Length: Checking existence of ds-cfg-minimum-password-length' |
| | | </message> |
| | | |
| | | <call function="'compareEntry'"> |
| | | { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN , |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , |
| | | 'attrToBeCompared' : 'ds-cfg-minimum-password-length:6', |
| | | 'entryToBeCompared' : 'cn=Length-Based Password Validator,cn=Password Validators,cn=config' } |
| | | </call> |
| | | |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : RC , |
| | | 'result' : STAXResult } |
| | | </call> |
| | | |
| | | </sequence> |
| | | </testcase> |
| | | |
| | | <!--- Test Case : Admin Enable Pwd Length Validator --> |
| | | <testcase name="'Security:Pwd Length: Admin Enable Pwd Length Validator'"> |
| | | <sequence> |
| | | <message> |
| | | 'Security: Pwd Length: Admin Enabling Pwd Length Validator' |
| | | </message> |
| | | |
| | | <call function="'modifyEntry'"> |
| | | { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN , |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , |
| | | 'entryToBeModified' : '%s/security/pwd_validator/admin_enable_pwd_length_validator.ldif' % STAGED_DATA_DIR } |
| | | </call> |
| | | |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : RC , |
| | | 'result' : STAXResult } |
| | | </call> |
| | | </sequence> |
| | | </testcase> |
| | | |
| | | <!--- Test Case : User Change Password - Too Short--> |
| | | <testcase name="'Security:Pwd Length: User Change Password - Too Short'"> |
| | | <sequence> |
| | | <message> |
| | | 'Security: Pwd Length: User Changing Password - Too Short' |
| | | </message> |
| | | |
| | | <call function="'modifyEntry'"> |
| | | { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : 'uid=bhall,ou=people,ou=password tests,o=Pwd Validator Tests,dc=example,dc=com' , |
| | | 'dsInstancePswd' : 'oranges' , |
| | | 'entryToBeModified' : '%s/security/pwd_validator/user_change_pwd_too_short.ldif' % STAGED_DATA_DIR } |
| | | </call> |
| | | |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : RC , |
| | | 'result' : STAXResult , |
| | | 'expected' : 53 } |
| | | </call> |
| | | </sequence> |
| | | </testcase> |
| | | |
| | | <!--- Test Case : User Search With Password --> |
| | | <testcase name="'Security:Pwd Policy: User Search With Password'"> |
| | | <sequence> |
| | | <message> |
| | | 'Security: Pwd Policy: User Searching With Password' |
| | | </message> |
| | | |
| | | <call function="'SearchObject'"> |
| | | { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : 'uid=bhall,ou=people,ou=password tests,o=Pwd Validator Tests,dc=example,dc=com' , |
| | | 'dsInstancePswd' : 'grape' , |
| | | 'dsBaseDN' : 'dc=example,dc=com' , |
| | | 'dsFilter' : 'objectclass=*' , |
| | | 'extraParams' : '-s base' } |
| | | </call> |
| | | |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : RC , |
| | | 'result' : STAXResult , |
| | | 'expected' : 1 } |
| | | </call> |
| | | </sequence> |
| | | </testcase> |
| | | |
| | | <!--- Test Case : Admin Change Minimum Pwd Length --> |
| | | <testcase name="'Security:Pwd Length: Admin Change Minimum Pwd Length'"> |
| | | <sequence> |
| | | <message> |
| | | 'Security: Pwd Length: Admin Changing Minimum Pwd Length' |
| | | </message> |
| | | |
| | | <call function="'modifyEntry'"> |
| | | { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN , |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , |
| | | 'entryToBeModified' : '%s/security/pwd_validator/admin_change_min_pwd_length.ldif' % STAGED_DATA_DIR } |
| | | </call> |
| | | |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : RC , |
| | | 'result' : STAXResult } |
| | | </call> |
| | | </sequence> |
| | | </testcase> |
| | | |
| | | <!--- Test Case : User Change Password - Too Short--> |
| | | <testcase name="'Security:Pwd Length: User Change Password - Too Short'"> |
| | | <sequence> |
| | | <message> |
| | | 'Security: Pwd Length: User Changing Password - Too Short' |
| | | </message> |
| | | |
| | | <call function="'modifyEntry'"> |
| | | { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : 'uid=bhall,ou=people,ou=password tests,o=Pwd Validator Tests,dc=example,dc=com' , |
| | | 'dsInstancePswd' : 'oranges' , |
| | | 'entryToBeModified' : '%s/security/pwd_validator/user_change_pwd_too_short2.ldif' % STAGED_DATA_DIR } |
| | | </call> |
| | | |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : RC , |
| | | 'result' : STAXResult , |
| | | 'expected' : 53 } |
| | | </call> |
| | | </sequence> |
| | | </testcase> |
| | | |
| | | <!--- Test Case : User Search With Password --> |
| | | <testcase name="'Security:Pwd Policy: User Search With Password'"> |
| | | <sequence> |
| | | <message> |
| | | 'Security: Pwd Policy: User Searching With Password' |
| | | </message> |
| | | |
| | | <call function="'SearchObject'"> |
| | | { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : 'uid=bhall,ou=people,ou=password tests,o=Pwd Validator Tests,dc=example,dc=com' , |
| | | 'dsInstancePswd' : 'goo' , |
| | | 'dsBaseDN' : 'dc=example,dc=com' , |
| | | 'dsFilter' : 'objectclass=*' , |
| | | 'extraParams' : '-s base' } |
| | | </call> |
| | | |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : RC , |
| | | 'result' : STAXResult , |
| | | 'expected' : 1 } |
| | | </call> |
| | | </sequence> |
| | | </testcase> |
| | | |
| | | <!--- Test Case : User Change Password--> |
| | | <testcase name="'Security:Pwd Length: User Change Password'"> |
| | | <sequence> |
| | | <message> |
| | | 'Security: Pwd Length: User Changing Password' |
| | | </message> |
| | | |
| | | <call function="'modifyEntry'"> |
| | | { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : 'uid=bhall,ou=people,ou=password tests,o=Pwd Validator Tests,dc=example,dc=com' , |
| | | 'dsInstancePswd' : 'oranges' , |
| | | 'entryToBeModified' : '%s/security/pwd_validator/user_change_pwd_too_short.ldif' % STAGED_DATA_DIR } |
| | | </call> |
| | | |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : RC , |
| | | 'result' : STAXResult } |
| | | </call> |
| | | </sequence> |
| | | </testcase> |
| | | |
| | | <!--- Test Case : User Search With Password --> |
| | | <testcase name="'Security:Pwd Policy: User Search With Password'"> |
| | | <sequence> |
| | | <message> |
| | | 'Security: Pwd Policy: User Searching With Password' |
| | | </message> |
| | | |
| | | <call function="'SearchObject'"> |
| | | { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : 'uid=bhall,ou=people,ou=password tests,o=Pwd Validator Tests,dc=example,dc=com' , |
| | | 'dsInstancePswd' : 'grape' , |
| | | 'dsBaseDN' : 'dc=example,dc=com' , |
| | | 'dsFilter' : 'objectclass=*' , |
| | | 'extraParams' : '-s base' } |
| | | </call> |
| | | |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : RC , |
| | | 'result' : STAXResult } |
| | | </call> |
| | | </sequence> |
| | | </testcase> |
| | | |
| | | <!--- Test Case : Admin Reset Minimum Pwd Length --> |
| | | <testcase name="'Security:Pwd Length: Admin Reset Minimum Pwd Length'"> |
| | | <sequence> |
| | | <message> |
| | | 'Security: Pwd Length: Admin Resetting Minimum Pwd Length' |
| | | </message> |
| | | |
| | | <call function="'modifyEntry'"> |
| | | { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN , |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , |
| | | 'entryToBeModified' : '%s/security/pwd_validator/admin_reset_min_pwd_length.ldif' % STAGED_DATA_DIR } |
| | | </call> |
| | | |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : RC , |
| | | 'result' : STAXResult } |
| | | </call> |
| | | </sequence> |
| | | </testcase> |
| | | |
| | | <testcase name="'Security: Pwd Length: Check Existence of ds-cfg-maximum-password-length'"> |
| | | <sequence> |
| | | <message> |
| | | '####Security: Pwd Length: Checking existence of ds-cfg-maximum-password-length' |
| | | </message> |
| | | |
| | | <call function="'compareEntry'"> |
| | | { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN , |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , |
| | | 'attrToBeCompared' : 'ds-cfg-maximum-password-length:0', |
| | | 'entryToBeCompared' : 'cn=Length-Based Password Validator,cn=Password Validators,cn=config' } |
| | | </call> |
| | | |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : RC , |
| | | 'result' : STAXResult } |
| | | </call> |
| | | |
| | | </sequence> |
| | | </testcase> |
| | | |
| | | <!--- Test Case : Admin Change Maximum Pwd Length --> |
| | | <testcase name="'Security:Pwd Length: Admin Change Maximum Pwd Length'"> |
| | | <sequence> |
| | | <message> |
| | | 'Security: Pwd Length: Admin Changing Maximum Pwd Length' |
| | | </message> |
| | | |
| | | <call function="'modifyEntry'"> |
| | | { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN , |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , |
| | | 'entryToBeModified' : '%s/security/pwd_validator/admin_change_max_pwd_length.ldif' % STAGED_DATA_DIR } |
| | | </call> |
| | | |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : RC , |
| | | 'result' : STAXResult } |
| | | </call> |
| | | </sequence> |
| | | </testcase> |
| | | |
| | | <!--- Test Case : User Change Password - Too Long--> |
| | | <testcase name="'Security:Pwd Length: User Change Password - Too Long'"> |
| | | <sequence> |
| | | <message> |
| | | 'Security: Pwd Length: User Changing Password - Too Long' |
| | | </message> |
| | | |
| | | <call function="'modifyEntry'"> |
| | | { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : 'uid=bhall,ou=people,ou=password tests,o=Pwd Validator Tests,dc=example,dc=com' , |
| | | 'dsInstancePswd' : 'grape' , |
| | | 'entryToBeModified' : '%s/security/pwd_validator/user_change_pwd_too_long.ldif' % STAGED_DATA_DIR } |
| | | </call> |
| | | |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : RC , |
| | | 'result' : STAXResult , |
| | | 'expected' : 53 } |
| | | </call> |
| | | </sequence> |
| | | </testcase> |
| | | |
| | | <!--- Test Case : User Search With Password --> |
| | | <testcase name="'Security:Pwd Policy: User Search With Password'"> |
| | | <sequence> |
| | | <message> |
| | | 'Security: Pwd Policy: User Searching With Password' |
| | | </message> |
| | | |
| | | <call function="'SearchObject'"> |
| | | { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : 'uid=bhall,ou=people,ou=password tests,o=Pwd Validator Tests,dc=example,dc=com' , |
| | | 'dsInstancePswd' : 'pomegranates' , |
| | | 'dsBaseDN' : 'dc=example,dc=com' , |
| | | 'dsFilter' : 'objectclass=*' , |
| | | 'extraParams' : '-s base' } |
| | | </call> |
| | | |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : RC , |
| | | 'result' : STAXResult , |
| | | 'expected' : 1 } |
| | | </call> |
| | | </sequence> |
| | | </testcase> |
| | | |
| | | <!--- Test Case : User Change Password--> |
| | | <testcase name="'Security:Pwd Length: User Change Password'"> |
| | | <sequence> |
| | | <message> |
| | | 'Security: Pwd Length: User Changing Password' |
| | | </message> |
| | | |
| | | <call function="'modifyEntry'"> |
| | | { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : 'uid=bhall,ou=people,ou=password tests,o=Pwd Validator Tests,dc=example,dc=com' , |
| | | 'dsInstancePswd' : 'grape' , |
| | | 'entryToBeModified' : '%s/security/pwd_validator/user_change_pwd_too_long2.ldif' % STAGED_DATA_DIR } |
| | | </call> |
| | | |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : RC , |
| | | 'result' : STAXResult } |
| | | </call> |
| | | </sequence> |
| | | </testcase> |
| | | |
| | | <!--- Test Case : User Search With Password --> |
| | | <testcase name="'Security:Pwd Policy: User Search With Password'"> |
| | | <sequence> |
| | | <message> |
| | | 'Security: Pwd Policy: User Searching With Password' |
| | | </message> |
| | | |
| | | <call function="'SearchObject'"> |
| | | { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : 'uid=bhall,ou=people,ou=password tests,o=Pwd Validator Tests,dc=example,dc=com' , |
| | | 'dsInstancePswd' : 'grapefruit' , |
| | | 'dsBaseDN' : 'dc=example,dc=com' , |
| | | 'dsFilter' : 'objectclass=*' , |
| | | 'extraParams' : '-s base' } |
| | | </call> |
| | | |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : RC , |
| | | 'result' : STAXResult } |
| | | </call> |
| | | </sequence> |
| | | </testcase> |
| | | |
| | | <!--- Test Case : Admin Reset Maximum Pwd Length --> |
| | | <testcase name="'Security:Pwd Length: Admin Reset Maximum Pwd Length'"> |
| | | <sequence> |
| | | <message> |
| | | 'Security: Pwd Length: Admin Resetting Maximum Pwd Length' |
| | | </message> |
| | | |
| | | <call function="'modifyEntry'"> |
| | | { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN , |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , |
| | | 'entryToBeModified' : '%s/security/pwd_validator/admin_reset_max_pwd_length.ldif' % STAGED_DATA_DIR } |
| | | </call> |
| | | |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : RC , |
| | | 'result' : STAXResult } |
| | | </call> |
| | | </sequence> |
| | | </testcase> |
| | | |
| | | <!--- Test Case : User Change Password --> |
| | | <testcase name="'Security:Pwd Length: User Change Password'"> |
| | | <sequence> |
| | | <message> |
| | | 'Security: Pwd Length: User Changing Password' |
| | | </message> |
| | | |
| | | <call function="'modifyEntry'"> |
| | | { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : 'uid=bhall,ou=people,ou=password tests,o=Pwd Validator Tests,dc=example,dc=com' , |
| | | 'dsInstancePswd' : 'grapefruit' , |
| | | 'entryToBeModified' : '%s/security/pwd_validator/user_change_pwd_too_long.ldif' % STAGED_DATA_DIR } |
| | | </call> |
| | | |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : RC , |
| | | 'result' : STAXResult } |
| | | </call> |
| | | </sequence> |
| | | </testcase> |
| | | |
| | | <return>RC</return> |
| | | |
| | | </sequence> |
| | | |
| | | </function> |
| | | |
| | | </stax> |
| 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="security_pwd_validator"/> |
| | | |
| | | <function name="security_pwd_validator"> |
| | | |
| | | <sequence> |
| | | |
| | | <parallel> |
| | | <block name="'Block DS Process Active'"> |
| | | |
| | | <!--- Test Case : Start DS --> |
| | | <testcase name="'StartDS'"> |
| | | <sequence> |
| | | <message> |
| | | 'Start DS to run on port %s' % (DIRECTORY_INSTANCE_PORT) |
| | | </message> |
| | | |
| | | <!--- Start DS --> |
| | | <call function="'startDS'"> |
| | | { 'dsbinpath' : '%s' % (OPENDS_BINPATH) } |
| | | </call> |
| | | |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : RC , |
| | | 'result' : STAXResult } |
| | | </call> |
| | | |
| | | </sequence> |
| | | |
| | | </testcase> |
| | | |
| | | <!--- End Block DS Process Active --> |
| | | </block> |
| | | |
| | | <block name="'Block Clients'"> |
| | | |
| | | <sequence> |
| | | |
| | | <!--- Check that DS started --> |
| | | <call function="'isAlive'"> |
| | | { 'noOfLoops' : 5 , |
| | | 'noOfMilliSeconds' : 2000 } |
| | | </call> |
| | | |
| | | <import machine="'%s' % (STAF_LOCAL_HOSTNAME)" |
| | | file="'%s/testcases/security/pwd_validator/security_setup_pwd_validator.xml' % (TESTS_DIR)"/> |
| | | <call function="'setup_pwd_validator'" /> |
| | | |
| | | <import machine="'%s' % (STAF_LOCAL_HOSTNAME)" |
| | | file="'%s/testcases/security/pwd_validator/security_pwd_length.xml' % (TESTS_DIR)"/> |
| | | <call function="'pwd_length'" /> |
| | | |
| | | <!--- Test Case : Stop DS --> |
| | | <testcase name="'StopDS'"> |
| | | <sequence> |
| | | <message> |
| | | 'Stop DS running on port %s' % (DIRECTORY_INSTANCE_PORT) |
| | | </message> |
| | | |
| | | <call function="'stopDS'"> |
| | | { 'dsInstancePort' : '%s' % (DIRECTORY_INSTANCE_PORT) } |
| | | </call> |
| | | |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : RC , |
| | | 'result' : STAXResult } |
| | | </call> |
| | | </sequence> |
| | | </testcase> |
| | | |
| | | <return>RC</return> |
| | | |
| | | </sequence> |
| | | |
| | | <!--- End Block Clients --> |
| | | </block> |
| | | |
| | | </parallel> |
| | | |
| | | </sequence> |
| | | |
| | | </function> |
| | | |
| | | </stax> |
| 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="setup_pwd_validator"/> |
| | | |
| | | <function name="setup_pwd_validator"> |
| | | |
| | | <sequence> |
| | | |
| | | <!--- Test Case : Add Entries for Password Validator Tests --> |
| | | <testcase name="'Security:Pwd Validator: Add Initial Entries'"> |
| | | <sequence> |
| | | <message> |
| | | 'Security: Pwd Validator: Adding Initial Entries' |
| | | </message> |
| | | |
| | | <call function="'addEntry'"> |
| | | { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN , |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , |
| | | 'entryToBeAdded' : '%s/security/pwd_validator/pwd_validator_startup.ldif' % STAGED_DATA_DIR } |
| | | </call> |
| | | |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : RC , |
| | | 'result' : STAXResult } |
| | | </call> |
| | | </sequence> |
| | | </testcase> |
| | | |
| | | <return>RC</return> |
| | | |
| | | </sequence> |
| | | |
| | | </function> |
| | | |
| | | </stax> |
| | |
| | | file="'%s/testcases/security/pwd_policy/security_pwd_policy.xml' % (TESTS_DIR)"/> |
| | | <call function="'security_pwd_policy'" /> |
| | | |
| | | <import machine="'%s' % (STAF_LOCAL_HOSTNAME)" |
| | | file="'%s/testcases/security/pwd_validator/security_pwd_validator.xml' % (TESTS_DIR)"/> |
| | | <call function="'security_pwd_validator'" /> |
| | | |
| | | </sequence> |
| | | |
| | | </function> |