| | |
| | | dsReplicaPath = '%s/%s' % (dsReplica.getDir(),OPENDSNAME) |
| | | |
| | | </script> |
| | | <call function="'SearchObject'"> |
| | | <call function="'ldapSearchWithScript'"> |
| | | { 'location' : dsMaster.getHostname(), |
| | | 'dsPath' : dsMasterPath, |
| | | 'dsInstanceHost' : dsMaster.getHostname(), |
| | |
| | | 'dsInstancePswd' : dsMaster.getRootPwd(), |
| | | 'dsBaseDN' : baseDN, |
| | | 'dsFilter' : 'objectclass=*', |
| | | 'dsScope' : 'sub' |
| | | 'dsScope' : 'sub', |
| | | 'dsDontWrap' : 'true', |
| | | } |
| | | </call> |
| | | <if expr="RC == 0"> |
| | |
| | | # if new attribute line |
| | | elif not f[0].isspace(): |
| | | currentAttr = f.split(':',1)[0] |
| | | # for instance if description is a valid attribute, |
| | | # so localized description (description;lang-fr) is also valid |
| | | currentAttr = currentAttr.split(';',1)[0] |
| | | # if valid attribute |
| | | if currentAttr in keptAttributes: |
| | | refFiltered.append(f+"\n") |
| | |
| | | </if> |
| | | <if expr="RC == 0"> |
| | | <sequence> |
| | | <call function="'SearchObject'"> |
| | | <call function="'ldapSearchWithScript'"> |
| | | { 'location' : dsReplica.getHostname(), |
| | | 'dsPath' : dsReplicaPath, |
| | | 'dsInstanceHost' : dsReplica.getHostname(), |
| | |
| | | 'dsInstancePswd' : dsReplica.getRootPwd(), |
| | | 'dsBaseDN' : 'o=example', |
| | | 'dsFilter' : 'objectclass=*', |
| | | 'dsScope' : 'sub' |
| | | 'dsScope' : 'sub', |
| | | 'dsDontWrap' : 'true', |
| | | } |
| | | </call> |
| | | </sequence> |