<div dir="ltr">i added some print statements, and seems that .trim() does work, but I still see this trailing space in my logs and missing attributes from my db datasource<div><br></div><div>INFO [Shibboleth-Audit.SSO:282] - 2022-01-20T03:06:19.995892Z|urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST|a2fb51d6e6043aig4fg5g1c60231a1i|<a href="http://xxx.xxxx.com/sample/samlclient|http://shibboleth.net/ns/profiles/saml2/sso/browser|https://xxx.xxxx.com/idp/shibboleth|urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST|_54bac1775142c763a1eeec1d0adf578a|">http://xxx.xxxx.com/sample/samlclient|http://shibboleth.net/ns/profiles/saml2/sso/browser|https://xxx.xxxx.com/idp/shibboleth|urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST|_54bac1775142c763a1eeec1d0adf578a|</a><span style="background-color:rgb(255,0,0)"><font color="#f3f3f3"><a href="mailto:xxxxx.xxxxx@xxxxxxxxxx.com">xxxxx.xxxxx@xxxxxxxxxx.com</a> </font></span>|urn:oasis:names:tc:SAML:2.0:ac:classes:PasswordProtectedTransport|uid,commonName,mail,authorizedGroups,Groups,givenname,surname|AAdzZWNyZXQxoOuRikLis8lWdmCa515Xs67celVT30HSNBwAsV5Q2nPG9e4QjILkRf+9wo5D7d6uAP2B4EbRwpdNudq9QsWHhxp+AquHUPe6/zn+K+TbwmllOV/JCthqXO0E/sVMXufASYdxHmbUmRbpFWFUn+5KlEC/3atHFhzBeGFPhC8ernVkL7lm|_5edafdacfdfa0ce594657618479254cd|<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Jan 19, 2022 at 6:12 PM Pablo Vidaurri <<a href="mailto:psvidaurri@gmail.com">psvidaurri@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>At one point we had a problem with inserting trailing spacing into LDAP. Now it's causing problems resolving attributes. How can I trim, for example uid value in this script? I've tried the obvious .trim() with no luck.</div><div><br></div><Script><![CDATA[<br>                    setUid.addValue(uid.getValues().get(0));<br>        ]]></Script><br><div><br></div><div>Thank.s</div><div>-psv</div></div>
</blockquote></div>