CR-1826 Updated global aci when running in upgrade mode
| | |
| | | ! CDDL HEADER END |
| | | ! |
| | | ! Copyright 2007-2009 Sun Microsystems, Inc. |
| | | ! Portions Copyright 2011 ForgeRock AS |
| | | ! Portions Copyright 2011-2013 ForgeRock AS |
| | | ! --> |
| | | <stax> |
| | | <defaultcall function="main_aci"/> |
| | |
| | | |
| | | <script> |
| | | CurrentTestPath['group']='aci' |
| | | GLOBAL_ACI_SEARCH="(targetattr!=\"userPassword||authPassword||changes||changeNumber||changeType||changeTime||targetDN||newRDN||newSuperior||deleteOldRDN||targetEntryUUID||changeInitiatorsName||changeLogCookie||includedAttributes\")(version 3.0; acl \"Anonymous read access\"; allow (read,search,compare) userdn=\"ldap:///anyone\";)" |
| | | |
| | | import re |
| | | if UPGRADE_OPENDJNAME != '' and re.search('2.4.*',UPGRADE_OPENDJNAME) is not None: |
| | | # UPGRADE MODE |
| | | # Only for upgrade from 2.4.x |
| | | GLOBAL_ACI_SEARCH="(targetattr!=\"userPassword||authPassword||changes||changeNumber||changeType||changeTime||targetDN||newRDN||newSuperior||deleteOldRDN||targetEntryUUID||targetUniqueID||changeInitiatorsName||changeLogCookie\")(version 3.0; acl \"Anonymous read access\"; allow (read,search,compare) userdn=\"ldap:///anyone\";)" |
| | | else: |
| | | # NORMAL MODE |
| | | GLOBAL_ACI_SEARCH="(targetattr!=\"userPassword||authPassword||changes||changeNumber||changeType||changeTime||targetDN||newRDN||newSuperior||deleteOldRDN||targetEntryUUID||changeInitiatorsName||changeLogCookie||includedAttributes\")(version 3.0; acl \"Anonymous read access\"; allow (read,search,compare) userdn=\"ldap:///anyone\";)" |
| | | </script> |
| | | |
| | | <call function="'testGroup_Preamble'"/> |
| | |
| | | ! CDDL HEADER END |
| | | ! |
| | | ! Copyright 2007-2009 Sun Microsystems, Inc. |
| | | ! Portions Copyright 2011 ForgeRock AS |
| | | ! Portions Copyright 2011-2013 ForgeRock AS |
| | | ! --> |
| | | <stax> |
| | | <defaultcall function="main_privileges" /> |
| | |
| | | CurrentTestPath['group']='privileges' |
| | | _group=CurrentTestPath['group'] |
| | | |
| | | GLOBAL_ACI_SEARCH="(targetattr!=\"userPassword||authPassword||changes||changeNumber||changeType||changeTime||targetDN||newRDN||newSuperior||deleteOldRDN||targetEntryUUID||changeInitiatorsName||changeLogCookie||includedAttributes\")(version 3.0; acl \"Anonymous read access\"; allow (read,search,compare) userdn=\"ldap:///anyone\";)" |
| | | import re |
| | | if UPGRADE_OPENDJNAME != '' and re.search('2.4.*',UPGRADE_OPENDJNAME) is not None: |
| | | # UPGRADE MODE |
| | | # Only for upgrade from 2.4.x |
| | | GLOBAL_ACI_SEARCH="(targetattr!=\"userPassword||authPassword||changes||changeNumber||changeType||changeTime||targetDN||newRDN||newSuperior||deleteOldRDN||targetEntryUUID||targetUniqueID||changeInitiatorsName||changeLogCookie\")(version 3.0; acl \"Anonymous read access\"; allow (read,search,compare) userdn=\"ldap:///anyone\";)" |
| | | else: |
| | | # NORMAL MODE |
| | | GLOBAL_ACI_SEARCH="(targetattr!=\"userPassword||authPassword||changes||changeNumber||changeType||changeTime||targetDN||newRDN||newSuperior||deleteOldRDN||targetEntryUUID||changeInitiatorsName||changeLogCookie||includedAttributes\")(version 3.0; acl \"Anonymous read access\"; allow (read,search,compare) userdn=\"ldap:///anyone\";)" |
| | | </script> |
| | | <call function="'testGroup_Preamble'" /> |
| | | <script> |
| | |
| | | <else> |
| | | <!-- Windows --> |
| | | <script> |
| | | sleepTime = 10000 |
| | | sleepTime = 6000 |
| | | </script> |
| | | </else> |
| | | </if> |
| | |
| | | |
| | | replServerPath = '%s/%s' % (replServer.getDir(), OPENDSNAME) |
| | | </script> |
| | | |
| | | |
| | | <!-- Trace for debug --> |
| | | <call function="'ldapSearchWithScript'"> |
| | | { 'location' : replServer.getHostname(), |
| | | 'dsPath' : replServerPath, |
| | | 'dsInstanceHost' : replServer.getHostname(), |
| | | 'dsInstancePort' : replServer.getPort(), |
| | | 'dsInstanceDn' : replServer.getRootDn(), |
| | | 'dsInstancePswd' : replServer.getRootPwd(), |
| | | 'dsBaseDN' : 'dc=replicationChanges', |
| | | 'dsFilter' : 'objectclass=*' |
| | | } |
| | | </call> |
| | | <message> |
| | | STAXResult[0][1] |
| | | </message> |
| | | |
| | | <!-- Search for entry add --> |
| | | <call function="'ldapSearchWithScript'"> |
| | | { 'location' : replServer.getHostname(), |
| | |
| | | ! CDDL HEADER END |
| | | ! |
| | | ! Copyright 2006-2009 Sun Microsystems, Inc. |
| | | ! Portions Copyright 2011-2012 ForgeRock AS |
| | | ! Portions Copyright 2011-2013 ForgeRock AS |
| | | ! --> |
| | | <stax> |
| | | <defaultcall function="main_security" /> |
| | |
| | | CurrentTestPath['group']='security' |
| | | _group=CurrentTestPath['group'] |
| | | |
| | | GLOBAL_ACI_SEARCH="(targetattr!=\"userPassword||authPassword||changes||changeNumber||changeType||changeTime||targetDN||newRDN||newSuperior||deleteOldRDN||targetEntryUUID||changeInitiatorsName||changeLogCookie||includedAttributes\")(version 3.0; acl \"Anonymous read access\"; allow (read,search,compare) userdn=\"ldap:///anyone\";)" |
| | | import re |
| | | if UPGRADE_OPENDJNAME != '' and re.search('2.4.*',UPGRADE_OPENDJNAME) is not None: |
| | | # UPGRADE MODE |
| | | # Only for upgrade from 2.4.x |
| | | GLOBAL_ACI_SEARCH="(targetattr!=\"userPassword||authPassword||changes||changeNumber||changeType||changeTime||targetDN||newRDN||newSuperior||deleteOldRDN||targetEntryUUID||targetUniqueID||changeInitiatorsName||changeLogCookie\")(version 3.0; acl \"Anonymous read access\"; allow (read,search,compare) userdn=\"ldap:///anyone\";)" |
| | | else: |
| | | # NORMAL MODE |
| | | GLOBAL_ACI_SEARCH="(targetattr!=\"userPassword||authPassword||changes||changeNumber||changeType||changeTime||targetDN||newRDN||newSuperior||deleteOldRDN||targetEntryUUID||changeInitiatorsName||changeLogCookie||includedAttributes\")(version 3.0; acl \"Anonymous read access\"; allow (read,search,compare) userdn=\"ldap:///anyone\";)" |
| | | </script> |
| | | |
| | | <call function="'testGroup_Preamble'" /> |
| | | <script> |
| | | suiteList = [] |