from fb_tools.app import BaseApplication, DirectoryOptionAction
from fb_tools.config import CfgFileOptionAction
from fb_tools.errors import FbAppError
-from fb_tools.collections import CIStringSet, CIDict
+from fb_tools.collections import FrozenCIStringSet, CIStringSet, CIDict
from .config import LDAPMigrationConfiguration
-__version__ = '0.10.2'
+__version__ = '0.10.3'
LOG = logging.getLogger(__name__)
CFG_BASENAME = 'ldap-migration.ini'
'one': LEVEL,
'sub': SUBTREE,
}
+ name_group_classes = FrozenCIStringSet(['groupOfNames', 'groupOfUniqueNames'])
tz = get_localzone()
object_classes = []
target_entry = {}
used_classes = CIStringSet()
- name_group_classes = CIStringSet('groupOfNames', 'groupOfUniqueNames')
src_data = self.get_src_entry_data(src_entry, as_group=True)
for src_oc_name in src_data['classes']:
members = src_data['members']
if 'groupOfURLs' in src_data['classes']:
- if name_group_classes.isdisjoint(src_data['classes']):
+ if self.name_group_classes.isdisjoint(src_data['classes']):
members.clear()
tgt_oc_name = self.object_classes.real_key('groupOfURLs')
used_classes.add(tgt_oc_name)