Welcome to Telelogic Product Support
  Home Downloads Knowledgebase Case Tracking Licensing Help Telelogic Passport
Telelogic DOORS (steve huntington)
Decrease font size
Increase font size
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
Search Topic Search Topic
Topic Tools Topic Tools
Quick Reply Quick Reply
Subscribe to this topic Subscribe to this topic
E-mail this topic to someone. E-mail this topic
Bookmark this topic Bookmark this topic
View similar topics View similar topics
View topic in raw text format. Print this topic.
Answer This question was answered by Louie Landale, on Monday, April 14, 2008 8:44 PM

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
 8-Apr-2008 08:48
User is offline View Users Profile Print this message


Lisa Carver

Posts: 61
Joined: 15-Jun-2005

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
Report this to a Moderator Report this to a Moderator
 8-Apr-2008 12:37
User is offline View Users Profile Print this message


ron lewis

Posts: 650
Joined: 20-Sep-2004

look here:

https://forum.telelogic.com/customer/doors/messageview.cfm?catid=17&threadid=8789&highlight_key=y&keyword1=password
Report this to a Moderator Report this to a Moderator
 8-Apr-2008 12:53
User is offline View Users Profile Print this message


Scott Boisvert

Posts: 348
Joined: 14-Apr-2006

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
Report this to a Moderator Report this to a Moderator
 8-Apr-2008 16:02
User is offline View Users Profile Print this message


Pete Kowalski

Posts: 301
Joined: 7-Feb-2003

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
Report this to a Moderator Report this to a Moderator
 8-Apr-2008 16:28
User is offline View Users Profile Print this message


Lisa Carver

Posts: 61
Joined: 15-Jun-2005

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!!
Report this to a Moderator Report this to a Moderator
 8-Apr-2008 16:59
User is offline View Users Profile Print this message


ron lewis

Posts: 650
Joined: 20-Sep-2004

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
Report this to a Moderator Report this to a Moderator
 8-Apr-2008 17:50
User is offline View Users Profile Print this message


Richard Good

Posts: 152
Joined: 22-Mar-2005

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
Report this to a Moderator Report this to a Moderator
 12-Apr-2008 16:14
User is offline View Users Profile Print this message


Lisa Carver

Posts: 61
Joined: 15-Jun-2005

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
Report this to a Moderator Report this to a Moderator
 12-Apr-2008 16:14
User is offline View Users Profile Print this message


Lisa Carver

Posts: 61
Joined: 15-Jun-2005

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
Report this to a Moderator Report this to a Moderator
 14-Apr-2008 20:27
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

Answer 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

Edited: 14-Apr-2008 at 23:37 by Louie Landale
Report this to a Moderator Report this to a Moderator
 14-Apr-2008 20:38
User is offline View Users Profile Print this message


Lisa Carver

Posts: 61
Joined: 15-Jun-2005

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.
Report this to a Moderator Report this to a Moderator
 14-Apr-2008 20:40
User is offline View Users Profile Print this message


Lisa Carver

Posts: 61
Joined: 15-Jun-2005

I set myself as the person who answered the question! Apologies.
Report this to a Moderator Report this to a Moderator
 14-Apr-2008 20:41
User is offline View Users Profile Print this message


Lisa Carver

Posts: 61
Joined: 15-Jun-2005

No, still not right!

Edited: 14-Apr-2008 at 20:46 by Lisa Carver
Report this to a Moderator Report this to a Moderator
 14-Apr-2008 20:43
User is offline View Users Profile Print this message


Lisa Carver

Posts: 61
Joined: 15-Jun-2005

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
Report this to a Moderator Report this to a Moderator
 14-Apr-2008 23:39
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

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
Report this to a Moderator Report this to a Moderator
 15-Apr-2008 13:10
User is offline View Users Profile Print this message


Lisa Carver

Posts: 61
Joined: 15-Jun-2005

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.
Report this to a Moderator Report this to a Moderator
 15-Apr-2008 13:46
User is offline View Users Profile Print this message


Richard Good

Posts: 152
Joined: 22-Mar-2005

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
Report this to a Moderator Report this to a Moderator
 15-Apr-2008 17:20
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

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
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic DOORS forum.
There are currently 1 users logged in.
The most users ever online was 15 on 15-Jan-2009 at 16:36.
There are currently 0 guests browsing this forum, which makes a total of 1 users using this forum.
You have posted 0 messages to this forum. 0 overall.

FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.