Novell Home

Commandline login 1.03

Novell Cool Solutions: Cool Tool

Digg This - Slashdot This

In Brief

A simple commandline login utility.

Vitals

Product Categories:
  • eDirectory
  • Functional Categories:
  • Login
  • Secure Identity
  • Updated:4 Jan 2006
    File Size:1.22MB
    License:Free
    Download:http://www.hbware.com/component/option,com_ccdownload/task,download/id,7/
    Home Page:http://www.hbware.com
    Publisher:Hans Boone

    Disclaimer

    Please read the note from our friends in legal before using this file.


    Details

    This version (1.03) not only makes a connect to the tree, but also an authentication to the tree.

    The login needs 3 parameters to login: tree, user and password. For security reasons the password is encrypted.

    There are a few methods to use the program:

    HBWlogin
    HBWlogin /setup
    HBWlogin /t=<treename> /u=<username>

    HBWlogin

    The program reads the hbwlogin.ini file and uses the entries tree= and user= in the section [LOGIN]. The program searches for the file pass<treename>.hbw. This file contains the password.

    HBWlogin /setup

    Run this in a dosbox. The program will ask you for the treename, username and password. The password will not hidden on the screen. The program creates the hbwlogin.ini file and the encrypted password file.

    HBWlogin /t=<treename> /u=<username>

    The program will use the treename and username for the login. For the password the program will use the filename pass<treename>$<username>.hbw. You can use the program pass.exe for the generation of the password file.

    HBWlogin /m or HBWlogin /m /t=<tree> /u=<user>

    The /m parameter will create a map to a server (the first one that reacts) It will create the following mapping similar to the command map f:=server/sys:\public.

    The program returns one of the following error levels.

    Login successful
    Login failed
    Some internal error
    You can use these return values in a batch file.

    Example batch file:

    @echo off
    rem setup some common vars
    rem
    set count=0
    set tree=firewall
    set user=.admin.fir
    rem
    :loop
    hbwlogin /t=%tree% /u=%user% /m
    if errorlevel 2 goto error2
    if errorlevel 1 goto error1
    rem
    rem do something useful :-)
    echo login successful
    f:
    cx [root]
    nlist *
    pause
    rem
    notree %tree%
    goto end
    rem
    :error1
    echo "Could not login"
    set/a count=count+1
    if %count% leq 5 goto loop
    goto end
    rem
    :error2
    echo "Some internal error"
    :end

    Novell Cool Solutions (corporate web communities) are produced by WebWise Solutions. www.webwiseone.com

    © 2014 Novell