necouchman commented on code in PR #931: URL: https://github.com/apache/guacamole-client/pull/931#discussion_r1454061663
########## extensions/guacamole-auth-ldap/src/main/java/org/apache/guacamole/auth/ldap/AuthenticationProviderService.java: ########## @@ -306,6 +311,26 @@ public LDAPAuthenticatedUser authenticateUser(Credentials credentials) } } + /** + * Returns parameter current ldap domain token generated from user credentials + * If no multiple LDAP are configured on GUACAMOLE_HOME + * a null is returned. + * + * @param credentials + * The credentials to use for authentication. + * + * @return + * Domain name by splitting logged username when multiple LDAP configuration is available + * or null if no such configuration + */ + private String getDomainToken(Credentials credentials) { + String ldapDomainName = null; + // Creating custom LDAP attribute token - domain name - when configured to multiple LDAP + if (credentials.getUsername().contains("\\")) { Review Comment: I think we should probably deal with situations where the username is in the UPN format, which is `USERNAME`@`DOMAIN`? -- 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: dev-unsubscr...@guacamole.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org