GitHub user jaredfrees opened a pull request:

    https://github.com/apache/guacamole-client/pull/299

    GUACAMOLE-524: Allow custom LDAP attributes to be used as tokens

    1. Add property for reading list of LDAP attributes in guacamole.properties.
    2. Add LDAP attribute name and attribute value into credentials object.
    3. Add attribute name and attribute value into Tokens from credentials 
object.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/jaredfrees/guacamole-client master

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/guacamole-client/pull/299.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #299
    
----
commit 38eb97b42245699988cfa1fefe7bf80eeea3c56c
Author: Jared Frees <frees.10@...>
Date:   2018-06-08T16:30:15Z

    GUACAMOLE-524: Added reading of LDAP attributes in guacamole.properties 
named 'ldap-user-attributes'.
    Added method getAttributes() in ConfigurationService to read environment 
property
    LDAPGuacamoleProperties.LDAP_USER_ATTRIBUTES. These
    attributes are arbitrary LDAP attributes that will
    be mapped to the user in credentials and
    tokens.

commit 5ca32a221afb9ff478e8b460e45fc14e790bcc5d
Author: Jared Frees <frees.10@...>
Date:   2018-06-08T16:34:06Z

    GUACAMOLE-524: Add LDAP attributes to credentials.
    AuthenticationProviderService gets LDAP attributes
    from confService and queries the LDAP server to
    find values on user for specified attributes.
    Added a Map<String, String> to Credentials named ldapAttrs
    and a getLDAPAttributes() and setLDAPAttributes() to
    manipulate ldapAttrs on credentials. Once
    AuthenticationProviderService gets the values for the
    LDAP attributes it sets ldapAttrs on the credentials object.

commit ad6be801311b3be14dde68be02f2b72dcdc1d8f9
Author: Jared Frees <frees.10@...>
Date:   2018-06-08T16:40:02Z

    GUACAMOLE-524: Add LDAP attribute tokens to StandardTokens.
    In method addStandardTokens(TokenFilter, Credentials),
    adds each LDAP attribute from credentials.getLDAPAttributes().
    Name of token is "USER_ATTR:" + name of attribute and value
    is the value of the attribute.

----


---

Reply via email to