trimming ldap values in attribute resolver

Pablo Vidaurri psvidaurri at gmail.com
Thu Jan 20 03:25:41 UTC 2022


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

INFO [Shibboleth-Audit.SSO:282] -
2022-01-20T03:06:19.995892Z|urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST|a2fb51d6e6043aig4fg5g1c60231a1i|
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|
xxxxx.xxxxx at xxxxxxxxxx.com
|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|

On Wed, Jan 19, 2022 at 6:12 PM Pablo Vidaurri <psvidaurri at gmail.com> wrote:

> 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.
>
> <Script><![CDATA[
>                     setUid.addValue(uid.getValues().get(0));
>         ]]></Script>
>
> Thank.s
> -psv
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://shibboleth.net/pipermail/users/attachments/20220119/5cf08682/attachment.htm>


More information about the users mailing list