averyfreeman
Contributor
- Joined
- Feb 8, 2015
- Messages
- 164
Hi,
I have a working
I thought this was a syntax error at first, so I tried some different ways of entering the parameters, such as JSON-style, like this:
Here's the exact error I received:
After I read the error more carefully, I realized only two of the parameters I wanted to add are being flagged as invalid, so I took them out, and the remaining two I left were accepted. Not a syntax error at all.
So my question now is, why are the libdefaults parameters
Much obliged
I have a working
idmap_ad
AD setup that uses my domain's rfc2307 parameters from Windows Server LTSC 2019. I'm happy with it so far with default settings, as most parameters I had initially wanted to add I noticed are already enabled in /etc/krb5.conf
. There were a few additional parameters I wanted to list under libdefaults, specifically:Code:
default_realm = WEBTOOL.SPACE proxiable = true dns_canonicalize_hostname = true rdns = true
I thought this was a syntax error at first, so I tried some different ways of entering the parameters, such as JSON-style, like this:
Code:
{ "default_realm": "WEBTOOL.SPACE", "proxiable": "true", "dns_canonicalize_hostname": "true", "rdns: true" }
Here's the exact error I received:
Code:
Error: Traceback (most recent call last): File "/usr/lib/python3/dist-packages/middlewared/main.py", line 176, in call_method result = await self.middleware._call(message['method'], serviceobj, methodobj, params, app=self) File "/usr/lib/python3/dist-packages/middlewared/main.py", line 1293, in _call return await methodobj(*prepared_call.args) File "/usr/lib/python3/dist-packages/middlewared/service.py", line 574, in update rv = await self.middleware._call( File "/usr/lib/python3/dist-packages/middlewared/main.py", line 1293, in _call return await methodobj(*prepared_call.args) File "/usr/lib/python3/dist-packages/middlewared/schema.py", line 1140, in nf res = await f(*args, **kwargs) File "/usr/lib/python3/dist-packages/middlewared/schema.py", line 1272, in nf return await func(*args, **kwargs) File "/usr/lib/python3/dist-packages/middlewared/plugins/kerberos.py", line 143, in do_update verrors.check() File "/usr/lib/python3/dist-packages/middlewared/service_exception.py", line 62, in check raise self middlewared.service_exception.Validation Errors: [EINVAL] kerberos_settings_update.kerberos_libdefaults: dns_canonicalize_hostname is an invalid libdefaults parameter. [EINVAL] kerberos_settings_update.kerberos_libdefaults: rdns is an invalid libdefaults parameter.
After I read the error more carefully, I realized only two of the parameters I wanted to add are being flagged as invalid, so I took them out, and the remaining two I left were accepted. Not a syntax error at all.
So my question now is, why are the libdefaults parameters
rdns = $BOOL
and dns_canonicalize_hostnames = $BOOL
not accepted for krb5.conf
? AFAICT these are acceptable parameters to invoke, according to the documentation you reference, krb.conf(5)
: https://web.mit.edu/kerberos/krb5-1.12/doc/admin/conf_files/krb5_conf.htmlMuch obliged