mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-01-11 00:31:56 -06:00
Force kerberos realm to be a string
Fixes issue with Python linter on Fedora 16 where it assumes for C modules-provided objects that they are of type _Chainmap during static analysis.
This commit is contained in:
parent
070bc7f725
commit
ff3d3c0ab3
@ -178,7 +178,7 @@ def __discover_config(discover_server = True):
|
||||
|
||||
if not config.default_domain:
|
||||
#try once with REALM -> domain
|
||||
dom_name = config.default_realm.lower()
|
||||
dom_name = str(config.default_realm).lower()
|
||||
name = "_ldap._tcp."+dom_name+"."
|
||||
rs = ipapython.dnsclient.query(name, ipapython.dnsclient.DNS_C_IN, ipapython.dnsclient.DNS_T_SRV)
|
||||
rl = len(rs)
|
||||
|
Loading…
Reference in New Issue
Block a user