mirror of
https://github.com/Pardus-LiderAhenk/ahenk
synced 2024-11-22 10:52:17 +03:00
if ahenk dn is null get ahenk dn from ahenkdb
This commit is contained in:
parent
58a7e84fc9
commit
435e0309e4
1 changed files with 3 additions and 0 deletions
|
@ -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'):
|
||||||
|
|
Loading…
Reference in a new issue