Welcome Serena Central users! CLICK HERE
The migration of the Serena Central community is currently underway. Be sure to read THIS MESSAGE to get your new login set up to access your account.
Anonymous_User Absent Member.
Absent Member.
10661 views

Netware login from DOS-prompt

Scenario:
Netware 6.5 SP5
eDir 8.7.3.8

Issue:
Login via BAT-file

Details:
How can I login to eDir from a BAT-file in a DOS-promt?
What ere the files needed on the workstation?
And what are the full syntax for the login.exe, to provide an automated login?
(tree, server, user and password parameters?)
A complete example for the login DOS-command syntax would be appreciated!

- Erik
Labels (1)
0 Likes
3 Replies
Anonymous_User Absent Member.
Absent Member.

Re: Netware login from DOS-prompt

First off, you'll need a drive mapped to a sys:public, often z:

From there you can goto a DOS prompt and type login.exe /?

I'll try to get the exact syntax for you
"Erik Aaseth" <erik.aaseth@hedmarken-ikt.no> wrote in message news:449BE398.4202.00D1.0@hedmarken-ikt.no...
Scenario:
Netware 6.5 SP5
eDir 8.7.3.8

Issue:
Login via BAT-file

Details:
How can I login to eDir from a BAT-file in a DOS-promt?
What ere the files needed on the workstation?
And what are the full syntax for the login.exe, to provide an automated login?
(tree, server, user and password parameters?)
A complete example for the login DOS-command syntax would be appreciated!

- Erik

0 Likes
Anonymous_User Absent Member.
Absent Member.

Re: Netware login from DOS-prompt

"Erik Aaseth" <erik.aaseth@hedmarken-ikt.no> wrote:

> How can I login to eDir from a BAT-file in a DOS-promt?
> What ere the files needed on the workstation?
> And what are the full syntax for the login.exe, to provide an automated login?
> (tree, server, user and password parameters?)
> A complete example for the login DOS-command syntax would be appreciated!


You don't mention a version of Windows or Novell Client in that
scenario. Are you talking about a literal DOS machine, or are we
talking about a Windows 2000 or Windows XP workstation with the
current Novell Client 4.91 SP2 installed?

From the Command Prompt window on a Windows 2003/XP/2000 machine (or a
batch file executing within that Command Prompt window), using the
Novell LOGINW32.EXE is the best command to be using to perform a login
dialog the command line.

The following logs in an available server within the specified tree:

LOGINW32.EXE treename/.user.orgunit.org /PWD password /TR /CONT

To login via a specific server (and the NDS tree that server is a
member of) the syntax would only be slightly different:

LOGINW32.EXE servername/.user.orgunit.org /PWD password /CONT

You can't literally specify both the server and the NDS tree on the
command line. You will simply target the treename (and pass /TR so
LOGINW32.EXE knows its a tree name), or you specify the server (and
let LOGINW32.EXE figure out its an NDS server and part of which tree).

Note this is actually creating all the normal Novell login UI, and
then presence of the /CONT parameter causes it to try and continue as
though the "OK" button was pressed. If the login fails, there will be
an on-screen error dialog, followed by the on-screen display of the
full Novell login dialog allowing the user to correct the credentials
and/or eDirectory tab information before retrying or canceling the
login.

i.e. This is not something you want to do from a non-interactive
service or scheduled action, because you could end up with a Novell
login dialog prompt or error message that no one can see. But for a
normal interactive batch file execution, this can all be fine.

Alan Adams
alancrumbadams@drcrumb.com
(for email, remove the crumbs)
0 Likes
Anonymous_User Absent Member.
Absent Member.

SV: Re: Netware login from DOS-prompt

Hi Adam!

Thanks a lot - this works!
My scenario is a Win2003 server with Novell Client v4.91 SP2 installed.
I've created a BAT-file with the syntax:

LOGINW32.EXE servername/.user.orgunit.org /PWD password /CONT

... and login performs flawlessly.

Thanks again!

- Erik

------------------------------

>>> Alan Adams<alancrumbadams@drcrumb.com> 23.06.2006 19:26 >>>

"Erik Aaseth" <erik.aaseth@hedmarken-ikt.no> wrote:


> How can I login to eDir from a BAT-file in a DOS-promt?
> What ere the files needed on the workstation?
> And what are the full syntax for the login.exe, to provide an automated login?
> (tree, server, user and password parameters?)
> A complete example for the login DOS-command syntax would be appreciated!


You don't mention a version of Windows or Novell Client in that
scenario. Are you talking about a literal DOS machine, or are we
talking about a Windows 2000 or Windows XP workstation with the
current Novell Client 4.91 SP2 installed?

From the Command Prompt window on a Windows 2003/XP/2000 machine (or a
batch file executing within that Command Prompt window), using the
Novell LOGINW32.EXE is the best command to be using to perform a login
dialog the command line.

The following logs in an available server within the specified tree:

LOGINW32.EXE treename/.user.orgunit.org /PWD password /TR /CONT

To login via a specific server (and the NDS tree that server is a
member of) the syntax would only be slightly different:

LOGINW32.EXE servername/.user.orgunit.org /PWD password /CONT

You can't literally specify both the server and the NDS tree on the
command line. You will simply target the treename (and pass /TR so
LOGINW32.EXE knows its a tree name), or you specify the server (and
let LOGINW32.EXE figure out its an NDS server and part of which tree).

Note this is actually creating all the normal Novell login UI, and
then presence of the /CONT parameter causes it to try and continue as
though the "OK" button was pressed. If the login fails, there will be
an on-screen error dialog, followed by the on-screen display of the
full Novell login dialog allowing the user to correct the credentials
and/or eDirectory tab information before retrying or canceling the
login.

i.e. This is not something you want to do from a non-interactive
service or scheduled action, because you could end up with a Novell
login dialog prompt or error message that no one can see. But for a
normal interactive batch file execution, this can all be fine.

Alan Adams
alancrumbadams@drcrumb.com
(for email, remove the crumbs)
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.