from .ldap import BaseLdapApplication
from ..xlate import XLATOR
-__version__ = '0.6.2'
+__version__ = '0.6.3'
LOG = logging.getLogger(__name__)
_ = XLATOR.gettext
'sdbm': '.pag',
}
+ usable_postfix_hashtypes = ['btree', 'cdb', 'dbm', 'hash', 'lmdb', 'sdbm', 'texthash']
+
default_ignore_aliases = ['root', ]
default_origin = 'pixelpark.com'
self.postmap_command = Path('/sbin') / self.default_postmap_command
self.lookup_table_types = []
+ self.virtaliases_files = []
self.existing_aliases = []
self.ldap_aliases = []
self.aliases_to_create = []
LOG.error(msg)
self.exit(1)
self.postfix_db_hashtype = htype
+ elif self.postfix_db_hashtype not in self.lookup_table_types:
+ msg = _('Default lookup table type {!r} is invalid. Valid types are:').format(
+ self.postfix_db_hashtype)
+ LOG.error(msg)
+ self.exit(6)
+
+ if self.args.hashtype not in self.usable_postfix_hashtypes:
+ msg = _(
+ 'The lookup table type {!r} cannot be used to get all '
+ 'database elements.').format(self.postfix_db_hashtype)
+ LOG.error(msg)
+ self.exit(6)
+
+ # -------------------------------------------------------------------------
+ def _init_virtaliases_files(self):
+ """Collect all files used as database for virtual aliases."""
+ pass
# -------------------------------------------------------------------------
def _check_virtaliases_files(self):