Solved

A bit of everything - netware nt vb

Posted on 1998-10-28
4
272 Views
Last Modified: 2012-06-27
I've been pushed into this so help!!!

We've got a file on one NT4 Netware machine that has to be copied to another NT4 Netware machine each night at 5.30 as a batch job.

I wanted to write an NT Net Use script to do this. However I'm having trouble connecting to each machine. The first NT machine I can map a drive to providing I manually use the NT explorer map  drive screen and select 'Bindery connection' and login with a user id and password.
The second machine I have to logon to with a user id and password and the 'context' box of the netware logon set to something like 'ou=fred.ou=lan_1.o=company.c=gb'.

I didn't want to have to go through the 'Windows Nt Explorer' map drive process every night to achieve this for a number of reasons - I don't work at weekends, the login is only allowed after 5pm etc etc.

How can I 'NET USE D: //machine1/path' and
'NET USE E: //machine2/path' ?

I tried a visual basic program using the WNetAddConnection API call but I couldn't specify the a) bindery connection
b) context specific connection.

Can anybody help me - skeleton sample GUI-less API call list or a simple NT login script required.

200points because I'm really desperate. But I'm sure it's not that difficult. By the way, telling me to buy such and such a package is not a valid reply!!!

Cheers
Pete
0
Comment
Question by:datavalue
4 Comments
 
LVL 3

Expert Comment

by:brosenb0
ID: 1593952
This should help: -

1) Make sure the NT box has services pack 3 installed

2) Use AT command so you can schedule the date/time that your script will execute. You can tell AT the batch/cmd file to execute, which will contain your NET USE statements.  You need to start the schedule service in Control Panel | Services.  Type AT /? for help on syntax.

3) You may get away with using the Microsoft client for NetWare, however, it is preferable to use the Novell client for NT v4.30 as comes with the ZEN Works Starter Pack.  You can download this from www.novell.com/download.

4) Use this syntax in your NET USE statements.  
NET USE \\<Server_Name>\Volume\Path\ User:<UserID> <Password>

For the bindery connection, UserID is straight forward.

For the NDS connection, there are two possibilites.
If a 'bindery context' exists for the NDS container within which your UserID resides, you may use your UserID's common name eg FRED.  If using the NetWare client for NT v4.30, it will automatically establish a NDS connection for you in the required context.

If no bindery context, you will have to supply the fully distinguished UserID starting with a leading period eg. .FRED.LAN_1.COMPANY.  DO NOT canonicalize the name ie. do not enter CN=FRED.OU=LAN_1.O=COMPANY.

Type NET USE /? for help on syntax.

Remember this batch file contains a password so treat it with care !

5) Enter your batch commands

6) Go and hit a quick 9 holes after work knowing that your script is presently running.
0
 

Author Comment

by:datavalue
ID: 1593953
Thanks for the reply unfortunately it didn't work, however I did login to the novell netware area and download their activex developers library. I now have managed to hack the NwSess example supplied by Novell into a simple process that given a user id and password will login/authenticate with a server either using a context, a bindery connection or nothing.
I still have to use a net map command to map the drive (could write a VB function, but haven't got time). And finally I use the NwSess Logout example to logout of the connected server. We're using a Unix/VMS/NT product called Maestro for the scheduling.
cheers,
Pete
0
 
LVL 2

Expert Comment

by:liebla
ID: 1593954
For the Novell Server
map drive:=Servername/volumename:directory/subdirectory should still work


0
 
LVL 1

Accepted Solution

by:
RZahm earned 200 total points
ID: 1593955
Do you know replica Services from Novell.
It is a tool, for automatic data replicating thru Servers in NDS. It works very fine, we use it to transfer Data from our Web Server to other WebServers in other Aereas and for Fault tolerance.
With NDS for NT it will be no problem to distribute or copy data.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Scenario: Your operations manager has discovered an anomaly in your security system. The business will start to suffer within 15 minutes if it is a major IT incident. What should she do? We have 6 recommendations for managing major incidents (https:…
This article shows gives you an overview on SQL Server 2016 row level security. You will also get to know the usages of row-level-security and how it works
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…
Both in life and business – not all partnerships are created equal. As the demand for cloud services increases, so do the number of self-proclaimed cloud partners. Asking the right questions up front in the partnership, will enable both parties …

867 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

17 Experts available now in Live!

Get 1:1 Help Now