necouchman commented on code in PR #921:
URL: https://github.com/apache/guacamole-client/pull/921#discussion_r1366262804
##########
extensions/guacamole-vault/modules/guacamole-vault-ksm/src/main/java/org/apache/guacamole/vault/ksm/secret/KsmRecordService.java:
##########
@@ -411,6 +412,11 @@ public String getHostname(KeeperRecord record) {
if (hostsField != null)
return getSingleStringValue(hostsField.getValue(),
Host::getHostName);
+ // Next, try a PAM hostname
+ PamHostnames pamHostsField = getField(record, PamHostnames.class,
null);
+ if (pamHostsField != null)
+ return getSingleStringValue(pamHostsField.getValue(),
Host::getHostName);
Review Comment:
Is it intended that the present of the "hostname" field will always override
this new "PAM Hostname" field?
If so, should the function documentation be updated to both include the
alternative field label that is being added, here, and also document that order
of preference?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]