![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: Running DXL Extraction on Batch File, hide Password Topic Summary: Created On: 8-Apr-2008 08:48 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() Answer: I think the system logins work like this: DOORS knows the exact name of the user name you used to log into your computer. You cannot log into a DOORS user who's system name doesn't match the login name exactly. Putting user and password in the command line switch doesn't override this fact. That is, only one system login can use any particular DOORS account. If there is exactly one DOORS user with that specified system name, you log in as that user. If there are zero you cannot login. If there is more than one and you fail to specify one in the command line, then you are [1] in GUI, presented the login screen (with password greyed out) where you must login with one of these DOORS login names [2] in Batch mode, you cannot login (use command line switch instead). Notice the problem logging in as the Administrator. That account is associated with only one system login, and you must use that system login to use the Adminstrator account. I've not tried batch mode with system login names, but assume the same rules apply. - Louie | |
![]() |
|
Hi All
A while ago I asked about the correct syntax for running a dxl script from a commandline, and got a great response. I was just wondering if there was any way around having to type the password in so that it is 'readible'. This may present issues for me. Many thanks |
|
![]() |
|
![]() |
|
look here:
https://forum.telelogic.com/customer/doors/messageview.cfm?catid=17&threadid=8789&highlight_key=y&keyword1=password |
|
![]() |
|
![]() |
|
Here's a link that attempts to explain how to actually mask the input in a batch file, i.e. command prompt:
http://www.computing.net/dos/wwwboard/forum/7152.html ------------------------- Scott Boisvert Engineering Tools Administrator L-3 Communications - Avionics Systems scott.boisvert@l-3com.com |
|
![]() |
|
![]() |
|
Yet, another option is to use PERL (and some of their specific add-on modules) to have this password encrypted and then automatically decrypted. Do let me know if you need more details.
------------------------- pete.kowalski(at)motorola.com |
|
![]() |
|
![]() |
|
Thanks everyone for your helpful responses.
I'm beginning to think it may not be possible. This is what I wish to do in more detail: this is my batch file contents "c:\Program Files\telelogic\DOORS 7.1\bin\Doors.exe" -u Username -P Password -b "c:\Test_Progression.dxl" -data 36677@server Usually of course my username and password would appear in the line. It is the Password that I need to mask. But of course that would only mask at run time, and someone could edit the bat file and see the password in any case. Perhaps I am being a little dense here!! |
|
![]() |
|
![]() |
|
Easiest way may be to us ms word or excel and write a subroutine to launch DOORS -- then password protect your template.
Other options would be: -- get a batch file compiler. -- write in language that can be compile or converted to byte code Edited: 10-Apr-2008 at 16:34 by ron lewis |
|
![]() |
|
![]() |
|
Easier still is to set up your databases user login policy such that it uses your system login and no extra (almost always uneccesary) password, you can then ditch the -P all together and only need the "-u" if you have more than one account setup for the same system login - no real security implications at all then. I'm always surprised when I here that people use a differrent login policy.
------------------------- Regards, Richard Good |
|
![]() |
|
![]() |
|
Thanks everyone.
So I presume then, that if the DOORS system is setup to use system login I can ditch the password, even if I am running in batch mode, on a schedule, without me being logged into the machine running the batch? This would be ideal Many thanks |
|
![]() |
|
![]() |
|
Thanks everyone.
So I presume then, that if the DOORS system is setup to use system login I can ditch the password, even if I am running in batch mode, on a schedule, without me being logged into the machine running the batch? This would be ideal Many thanks |
|
![]() |
|
![]() |
|
I think the system logins work like this: DOORS knows the exact name of the user name you used to log into your computer.
You cannot log into a DOORS user who's system name doesn't match the login name exactly. Putting user and password in the command line switch doesn't override this fact. That is, only one system login can use any particular DOORS account. If there is exactly one DOORS user with that specified system name, you log in as that user. If there are zero you cannot login. If there is more than one and you fail to specify one in the command line, then you are [1] in GUI, presented the login screen (with password greyed out) where you must login with one of these DOORS login names [2] in Batch mode, you cannot login (use command line switch instead). Notice the problem logging in as the Administrator. That account is associated with only one system login, and you must use that system login to use the Adminstrator account. I've not tried batch mode with system login names, but assume the same rules apply. - Louie Edited: 14-Apr-2008 at 23:37 by Louie Landale |
|
![]() |
|
![]() |
|
Hi Louie
Thanks for your helpful responses. I did a batch file trial (unattended, and not logged into the computer), which omitted the password from the command line, I specified system username only, as the DOORS database runs on system logins. This worked well. Many thanks. |
|
![]() |
|
![]() |
|
I set myself as the person who answered the question! Apologies.
|
|
![]() |
|
![]() |
|
No, still not right!
Edited: 14-Apr-2008 at 20:46 by Lisa Carver |
|
![]() |
|
![]() |
|
I can't imagine why I think I have brains.
Apologies for all the messing about, I have set Louie as the person who answered the question now, it only took 3 attempts! Edited: 14-Apr-2008 at 20:46 by Lisa Carver |
|
![]() |
|
![]() |
|
How did you run a Batch file without logging in? I know that Scheduled Tasks require 'login'. Started the computer in DOS mode? Did you say you managed to log into a DOORS user when there was no 'system' login name for it to match?
- Louie |
|
![]() |
|
![]() |
|
Hi there
"c:\Program Files\telelogic\DOORS 7.1\bin\Doors.exe" -u UserName -P -b "c:\Scripts\Test_Progression.dxl" -data 36677@server exit_() where 'UserName' is my login to DOORS which runs on System names. I only omitted the password. |
|
![]() |
|
![]() |
|
Louie,
You are 95% right. Your only error is to do with what you say about the "Administrator" user. You can assign the Administrator to any system login by specifying it in the "System username" box (Tools->Options menu) at the time you setup your policy to use system logins and not to use passwords - in fact you must do this first or it will not allow you to complete the procedure. The user with that system login is then the "Administrator" and only he/she can change the "System username" field (which contains the Administrators system login) to a differrent login and only when logged in as the "Administrator" obviously doing this passes the Administrator account to the typed in system login - so be careful to avoid typos!! ------------------------- Regards, Richard Good |
|
![]() |
|
![]() |
|
Yes, only one person ..err.. one system login can be the Administrator. Yes, careful with Typos when changing it.
IIRC a few years ago, we set up a 'DOORS-Unclass' user account and set that to the Administrator's system login. Those of us that needed to login as the Administrator would logout, then login as DOORS-Unclass, then log in as the Administrator. - Louie |
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.