from .. import pp
from ..xlate import XLATOR
-__version__ = '0.5.0'
+__version__ = '0.5.1'
LOG = logging.getLogger(__name__)
_ = XLATOR.gettext
group_object_classes = ('groupOfNames', 'groupOfUniqueNames', 'groupOfURLs', 'posixGroup')
member_attributes = (
'member', 'memberUid', 'memberURL', 'mgrpRFC822MailMember', 'uniqueMember')
+ helptext_ldap_base_dn = _('The base DN used as the root for the LDAP search.')
# -------------------------------------------------------------------------
def __init__(self, appname=None, base_dir=None):
return res
- # -------------------------------------------------------------------------
- def init_arg_parser(self):
- """Initialize specific command line parameters for this application."""
- remove_group = self.arg_parser.add_argument_group(_('Removing options'))
-
- remove_group.add_argument(
- '-b', '--base-dn', metavar='DN', dest='ldap_base_dn',
- help=_('The base DN used as the root for the LDAP search.')
- )
-
- super(CleanEmptyLdapGroupsApplication, self).init_arg_parser()
-
# -------------------------------------------------------------------------
def _verify_instances(self):
"""Execute some steps before calling run()."""
super(CleanEmptyLdapGroupsApplication, self).post_init()
- self.base_dn = getattr(self.args, 'ldap_base_dn', None)
-
self.check_instances()
self.instance = self.ldap_instances[0]