def import_ldif(self):
        self.logIt("Importing userRoot LDIF data")
        ldifFolder = '%s/ldif' % self.ldapBaseFolder
        for ldif_file_fn in self.ldif_files:
            ldifFolder = '%s/ldif' % self.ldapBaseFolder
            self.copyFile(ldif_file_fn, ldifFolder)
            ldif_file_fullpath = "%s/ldif/%s" % (self.ldapBaseFolder,
                                                 os.path.split(ldif_file_fn)[-1])
            self.run(['/bin/chown', 'ldap:ldap', ldif_file_fullpath])
            importParams = [self.ldapBaseFolder % 'cd %s/bin ; ',
                                  self.loadLdifCommand,
                                  '--hostname',
                                  self.ldap_hostname,
                                  '--port',
                                  self.ldap_admin_port,
                                  '--bindDN',
                                  '"%s"' % self.ldap_binddn,
                                  '-j',
                                  self.ldapPassFn,
                                  '--trustAll']
            if self.opendj_version == "2.6":
                importParams.append('--backendID')
                importParams.append('userRoot')
                importParams.append('--append')
                importParams.append('--ldifFile')
                importParams.append(ldif_file_fullpath)
            else:
                importParams.append('--useSSL')
                importParams.append('--defaultAdd')
                importParams.append('--continueOnError')
                importParams.append('--filename')
                importParams.append(ldif_file_fullpath)

            importCmd = " ".join(importParams)
            self.run(['/bin/su',
                      'ldap',
                      '-c',
                      '%s' % importCmd])

        self.logIt("Importing site LDIF")
        self.copyFile("%s/static/cache-refresh/o_site.ldif" % self.install_dir, ldifFolder)
        site_ldif_fn = "%s/o_site.ldif" % ldifFolder
        self.run(['/bin/chown', 'ldap:ldap', site_ldif_fn])
        
        importParams = ['cd %s/bin ; ' % self.ldapBaseFolder,
                              self.importLdifCommand,
                              '--ldifFile',
                              site_ldif_fn,
                              '--backendID',
                              'site',
                              '--hostname',
                              self.ldap_hostname,
                              '--port',
                              self.ldap_admin_port,
                              '--bindDN',
                              '"%s"' % self.ldap_binddn,
                              '-j',
                              self.ldapPassFn,
                              '--trustAll']
        if self.opendj_version == "2.6":
            importParams.append('--append')

        importCmd = " ".join(importParams)
        self.run(['/bin/su',
                  'ldap',
                  '-c',
                  '%s' % importCmd])
dataset/ETHPy150Open GluuFederation/community-edition-setup/setup.py/Setup.import_ldif/swapped operands of `%`