Signed-off-by: Mark Hymers <mhy@debian.org>
from daklib.dbconn import *
from daklib.config import Config
+from daklib.utils import fubar
################################################################################
if Options["Help"]:
usage()
+ if not cnf.has_key('Import-LDAP-Fingerprints::LDAPServer'):
+ fubar("Import-LDAP-Fingerprints::LDAPServer not configured")
+
+ if not cnf.has_key('Import-LDAP-Fingerprints::LDAPDn'):
+ fubar("Import-LDAP-Fingerprints::LDAPDn not configured")
+
session = DBConn().session()
print "Getting info from the LDAP server..."