Solved

RSA SecurID Software Token Converter

Posted on 2013-05-14
4
2,176 Views
Last Modified: 2013-05-31
Hello,

We are using RSA SecurID Software Token in our Organization to secure the connection to our system from outside the Network.

after some configuration on the Console there is a command have to be run on the CMD to generate the link

this is the Command

C:\path_name\TokenConverter user2-passwordtoken.sdtid -p t0kenpw1 -iphone -o
tokenfile.txt

Open in new window


The problem when i am going to create 20 soft token it a headache can i put the last command in a script and the script take any file with the extension .sdtid and generate the link and put it on txt file with the same name of the .sdtid file.
and the script should check all .sdtid files and converted to .txt files with the same name of the .sdtid files.

Regards,
0
Comment
Question by:fadyaz
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 13

Expert Comment

by:stergium
ID: 39164671
hello.
I believe that you need something like this
@echo off
FOR /F "tokens=1 delims=," %%a IN (list.txt) DO  CALL :Sub_createtoken %%a  %%1
GoTo EOF
:Sub_createtoken
start "C:\path_name\TokenConverter user2-%2.sdtid -p t0kenpw1 -iphone -o %1.txt"
:EOF

Open in new window

you call your batch file with a file parameter and have a list.txt with every new line will be the output txt file with a comma on the end of the line.
i hope that helps
0
 
LVL 2

Author Comment

by:fadyaz
ID: 39166414
Thanks for your reply your code is perfect but the problem with this variable user2-%2.sdtid i need it to take the files with extension autmatically vecuase the name will be with the users username .

Regards
0
 
LVL 13

Accepted Solution

by:
stergium earned 500 total points
ID: 39167246
I did not understand what you needed.
this should work.
@echo off
dir *.sdtid  /b > list.txt
FOR /F "tokens=1 delims=" %%a IN (list.txt) DO  CALL :Sub_createtoken %%a  
GoTo EOF
:Sub_createtoken
SET X=%1
set x=%x:~0,6%
start  "C:\path_name\TokenConverter user2-%1 -p t0kenpw1 -iphone -o %X%.txt"
:EOF

Open in new window

it will create a list.txt file with the contents of the folder (*.sdtid files)  and for everyfile will run the command and finally creating the txt file using the filename of the sdtid original file.
0
 
LVL 2

Author Comment

by:fadyaz
ID: 39167296
Thanks for your help Your Code create a list.txt and include all sdtid file name in it .

I didn't need this, exactly our scenario is after generate the sdtid file from the system in example fadyaz.sdtid

i should run this command for each sdtid

TokenConverter.exe fady.sdtid -p 1234 -android -o fadyaz.txt

i didn't need to run this command every time for every file.

i want to make a batch file to check the sdtid files in the same folder and run the converter for each one and make the output in the txt file with the same name of sdtid file.

Regards,
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If like me you are one who spends a lot of time working and scripting with cmd.exe, sometimes it is handy to be able to quickly view a calendar for a given month and year. This script will quickly do just that!  Save the code posted below to a .bat …
Use this article to create a batch file to backup a Microsoft SQL Server database to a Windows folder.  The folder can be on the local hard drive or on a network share.  This batch file will query the SQL server to get the current date & time and wi…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

751 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question