Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Backslash being stripped out of user name

Hi,

When I deploy an application with a user role mapping the \ that is within the username is stripped out. The property is as below:

options.multi.one.MapRolesToUsers=

However, when the application is deployed I end up with the user as below:

CN=Service
Account
AU,OCI
MDM
Client
Service,OU=AU,OU=Service
Accounts,OU=ANZ
Security
Objects,DC=oceaniatst,DC=corptst,DC=anz,DC=com

I've tried lots of combinations, like double \'s, to try and get around the issue but with no luck. Has anyone else been able to add a user role mapping with a user that includes a \ ? Any help would be greatly appreciated.

Cheers.

Des

0 votes



One answer

Permanent link
depending on how and where the value is used, you may have to use more than 2 backslashes.

for instance, if you're needing that value in a BF variable, 2 will be sufficient. If you need it available at the shell level 4 may be required. If you're using it inside of an adaptor, 8 may be required. Setting the nopreparse variable will reduce the number.

the amount of doubling of backslashes and dollar-signs depends on no-preparse, the architecture, the level at which the value is needed to be used, and whether or not the value is being used in an adaptor. Each value evaluation adds to the doubling required.

when I run upon something like this I'll usually add several "echo" lines to the step in question with in increasing number of backslashes or dollar signs. then check step-log output to get the right one. note that in some architectures '$$' evaluates to a numeric process ID. In your case with just backslashes, it will be much simpler.

no this is not optimal. But its what we have to work with at the moment.

0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details

Question asked: Sep 06 '11, 2:04 a.m.

Question was seen: 5,498 times

Last updated: Sep 06 '11, 2:04 a.m.

Confirmation Cancel Confirm