Github user jaredfrees commented on a diff in the pull request:
https://github.com/apache/guacamole-manual/pull/90#discussion_r200415197
--- Diff: src/chapters/ldap-auth.xml ---
@@ -356,6 +356,17 @@ dn: cn={4}guacConfigGroup,cn=schema,cn=config
"<systemitem>uid=user,ou=people,dc=example,dc=net</systemitem>".</para>
</listitem>
</varlistentry>
+ <varlistentry>
+ <term><property>ldap-user-attributes</property></term>
+ <listitem>
+ <para>The attribute or attributes to retrieve from
the LDAP directory.
+ These attributes are stored as tokens with the
prefix "GUAC_ATTR_"
+ and the name of the attribute appended in
uppercase letters.
+ The value of the token is the value of the
attribute in the LDAP directory.
+ If the attribute has no value in the directory
then the token is not saved.
+ Multiple attributes can be specified here,
separated by commas.</para>
--- End diff --
So it turns out getStringValue() actually returns the the first value of
the attribute as a String. You can find it here:
https://www.novell.com/documentation/developer/jldap/jldapenu/api/
So it already returns the first value. I also just tested this and it does
return just the first value of the attribute.
---