if ahenk dn is null get ahenk dn from ahenkdb

This commit is contained in:
Tuncay ÇOLAK 2020-04-28 14:58:11 +03:00
parent 58a7e84fc9
commit 435e0309e4

View file

@ -30,6 +30,9 @@ class LDAPLogin(AbstractPlugin):
admin_dn = self.data['admin-dn'] admin_dn = self.data['admin-dn']
admin_password = self.data['admin-password'] admin_password = self.data['admin-password']
if admin_dn is None:
admin_dn = self.Ahenk.dn()
if admin_password is None: if admin_password is None:
self.config.read(self.ahenk_conf_path) self.config.read(self.ahenk_conf_path)
if self.config.has_section('CONNECTION'): if self.config.has_section('CONNECTION'):