mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Add a function for formatting network locations of the form host:port for use in URLs.
If the host part is a literal IPv6 address, it must be enclosed in square brackets (RFC 2732). ticket 1869
This commit is contained in:
committed by
Martin Kosek
parent
a16b5b4c00
commit
12bfed37d4
@@ -201,8 +201,8 @@ def configure_krb5_conf(realm, kdc, filename):
|
||||
|
||||
#the following are necessary only if DNS discovery does not work
|
||||
#[realms]
|
||||
realms_info =[{'name':'kdc', 'type':'option', 'value':kdc+':88'},
|
||||
{'name':'admin_server', 'type':'option', 'value':kdc+':749'}]
|
||||
realms_info =[{'name':'kdc', 'type':'option', 'value':ipautil.format_netloc(kdc, 88)},
|
||||
{'name':'admin_server', 'type':'option', 'value':ipautil.format_netloc(kdc, 749)}]
|
||||
realms = [{'name':realm, 'type':'subsection', 'value':realms_info}]
|
||||
|
||||
opts.append({'name':'realms', 'type':'section', 'value':realms})
|
||||
|
||||
Reference in New Issue
Block a user