home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Network Support Encyclopedia 96-1
/
novell-nsepro-1996-1-cd2.iso
/
download
/
netware
/
dbsamp.exe
/
README.1ST
< prev
Wrap
Text File
|
1995-03-31
|
3KB
|
58 lines
Database Sample Programs.
This set of applications is to show how a database might leverage
NDS. There are five separate parts to this example. Each part is
listed here with a description of what it does.
DBAPP:
This actually has two parts. A Windows Client and an NLM.
CLIENT:
The client allows a user to find a Database in the tree (which in
a real app would probably be stored in the users object or in
some kind of a config file). After locating the Database, the
client reads the object to find the location of the Database Server.
It then reads the Database Server to find the NetWare server it is
loaded on. Then it reads the NetWare server object to get the
network address and then attaches to the server. After this, the
client sends an Extended NCP which requests authentication to the
Database. The NLM responds and either grants access or denies it.
SERVER:
This is a 4.1 NLM that registers a NCP extension. When receiving
the request from the client, it pulls the name of the Database from
the Extended NCP call and also gets the name connection number of
the client from the call. From this, the NLM is able to find out
who the user is and then proceeds to read the Database object in
NDS to determine if the user has rights to the database. the
user is either given access or denied access.
DBINST:
This utility extends the schema by adding a Database, a Database
Server and two attributes for the Database. It is written as a
separate application so that a diskette containing this app can be
given the system administrator to extend the schema. A database
administrator may not be given the rights at the root of the tree to
extend the schema.
DBUNINST:
This is similar to the DBINST but it removes or un-extends the
schema by removing the Database and Database Server and their
extended attributes.
DBSNAPIN:
This is a windows dll that is loaded into nwadmin to administrate the
Databases and Database Servers. It creates the Database Server with
a blank password so the NLM can login to DS as that object. (in other
words, you have to create the Database Server object in NWAdmin before
the NLM will load.) To install this dll into NWAdmin, you must edit
the nwadmin.ini file located in your windows directory. Modify the
file so that it has and entry like this:
[Snapin Object DLLs]
DBSNAPIN=Z:\PUBLIC\DBSNAPIN.DLL
Be sure to either have the full path to the DLL or have its path in
your environment. (if you place it in the public directory on the
SYS: volume, it will work for everyone!)