I think I have stumbled into a small annoyance with the ksmeta field in the
webui. I am using cobbler to build directory server and have the following
ksmeta:
suffix='dc=incommon, dc=dev' dsDBName=incommonDB adminDomain=incommon.dev
configDirHost=ds01 rootDNPwd=incommon.dev adminPwd=password
When I save (from the webui) the first time, I get the following result in
the json file
"ks_meta": {"suffix": "dc=incommon, dc=dev", "dsDBName": "incommonDB",
"adminDomain": "incommon.dev", "configDirHost": "ds01", "rootDNPwd":
"incommon.dev", "adminPwd": "password"}
The webui is then refreshed with the following ksmeta line. Note that the
single quotes have been removed. This also happens for double quotes.
suffix=dc=incommon, dc=dev dsDBName=incommonDB adminDomain=incommon.dev
configDirHost=ds01 rootDNPwd=incommon.dev adminPwd=password
If I save from the webui again, the following transformation takes place in
the json file
"ks_meta": {"suffix": "dc=incommon,", "dsDBName": "incommonDB", "dc": "dev",
"adminDomain": "incommon.dev", "configDirHost": "ds01", "rootDNPwd":
"incommon.dev", "adminPwd": "password"}
And the ksmeta field in the webui is rewritten in such a way as to separate
the suffix.
suffix=dc=incommon, dsDBName=incommonDB dc=dev adminDomain=incommon.dev
configDirHost=ds01 rootDNPwd=incommon.dev adminPwd=password
Please note that if I write the ksmeta line as such (no space between the
parts of the suffix), everything is handled correctly.
suffix=dc=incommon,dc=dev dsDBName=incommonDB adminDomain=incommon.dev
configDirHost=ds01 rootDNPwd=incommon.dev adminPwd=password
I realize that this is probably not a bug, per se, but if there is ever a
real need to embed a space into the ksmeta, one would need to be mindful of
the implications for the second time you save the profile.