Solved

RSA SecurID Software Token Converter

Posted on 2013-05-14
4
2,074 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
  • 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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

Suggested Solutions

This script will sweep a range of IP addresses (class c only, 255.255.255.0) and report to a log the version of office installed. What it does: 1.)      Creates log file in the directory the script is run from (if it doesn't already exist) 2.)      Sweep…
Recently, an awarded photographer, Selina De Maeyer (http://www.selinademaeyer.com/), completed a photo shoot of a beautiful event (http://www.sintjacobantwerpen.be/verslag-en-fotoreportage-van-de-sacramentsprocessie-door-antwerpen#thumbnails) in An…
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…
I designed this idea while studying technology in the classroom.  This is a semester long project.  Students are asked to take photographs on a specific topic which they find meaningful, it can be a place or situation such as travel or homelessness.…

911 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now