Anonymous_User Absent Member.
Absent Member.
512 views

Substr syntax


Any hints on the correct substr syntax for SecureLogin? The syntax in
the guide isn't correct, and there's nothing in the knowledgebase
offering any kind of hint.


--
jeff_stjohn
------------------------------------------------------------------------
jeff_stjohn's Profile: https://forums.netiq.com/member.php?userid=2222
View this thread: https://forums.netiq.com/showthread.php?t=42707

0 Likes
2 Replies
Anonymous_User Absent Member.
Absent Member.

Re: Substr syntax


Hi jeff_stjohn,

this worked for me:

Set ?RACF ?SysPassword(System)
#Messagebox ?RACF

StrLength ?Length ?RACF

If ?Length LT "9"
#do nothing
else
messagebox "RACF: GT 8"
SubStr ?Result ?RACF 0 8
StrLower ?RACFPassword ?Result
# USE VARIABLE ?RACFPassword cut until position 8 and use it for
authentication
Messagebox "RACFPASSWORD: " ?RACFPassword
#Set ?RACFPassword ?Result

EndIf


--
fschmaering
------------------------------------------------------------------------
fschmaering's Profile: https://forums.netiq.com/member.php?userid=1499
View this thread: https://forums.netiq.com/showthread.php?t=42707

0 Likes
Anonymous_User Absent Member.
Absent Member.

Re: Substr syntax


fschmaering,

Thanks for the reply. I was reading the release notes and I think
what's happening here is that I don't have SP3 installed on my machine
(I didn't realize that this command wasn't added until then.)

The syntax you're using is identical to what I've tried and it's
trapped as an unrecognized command, supporting my conclusion. Thanks
again - I appreciate it.

Jeff


--
jeff_stjohn
------------------------------------------------------------------------
jeff_stjohn's Profile: https://forums.netiq.com/member.php?userid=2222
View this thread: https://forums.netiq.com/showthread.php?t=42707

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.