canonical / charm-userdir-ldap

A charm to install and configured userdir-ldap
Other
0 stars 3 forks source link

udconsumer should re-announce it's hostname to udprovider if config template-hostname is adjusted. #8

Open sudeephb opened 8 months ago

sudeephb commented 8 months ago

When using relation between udprovider and udconsumer, if udconsumer side of relation is using a template-hostname, it should be passed to udprovider for udprovider to link that hosts' key(s) with the template rather than the actual hostname provided from the consumer.

Currently, the udconsumer is looking for /var/cache/userdir-ldap/hosts/. instead of /var/cache/userdir-ldap/hosts/.

The udconsumer can still request hostname.domain, but the provider should squash that to template-hostname within the sshdist user's auth-keys config.


Imported from Launchpad using lp2gh.

sudeephb commented 8 months ago

(by afreiberger) Actually, this does seem to work properly, but the relation data does not properly change when config changes on the consumer side. udconsumer should re-announce it's hostname to udprovider if config template-hostname is adjusted.

sudeephb commented 8 months ago

(by afreiberger) Two issues, udconsumer relation needs to relation-set new hostname to udprovider when config changed for template-hostname.

Track this above issue on this bug.

Other issue, udprovider does not copy files pulled from upstream from /var/lib/misc to /var/cache/userdir-ldap/hosts/ for it's udconsumers. To be tracked in lp#1897134.

https://bugs.launchpad.net/charm-userdir-ldap/+bug/1897134