Solved

RSA SecurID Software Token Converter

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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

This is pretty cool.  The purpose of this VB Script is to help you document where JAR (Java ARchive) files and specifically java class files are located so that you can address issues seen with a client or that you can speak intelligently with a dev…
When you receive another warning that your shared drive is almost full and you have asked your users to clean out old files again and again, here is a single command that may help. This command will place all the files that have not been used rec…
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…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

760 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

19 Experts available now in Live!

Get 1:1 Help Now