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   
Text File  |  1995-03-31  |  3KB  |  58 lines

  1. Database Sample Programs.
  2.  
  3. This set of applications is to show how a database might leverage
  4. NDS.  There are five separate parts to this example.  Each part is
  5. listed here with a description of what it does.
  6.  
  7. DBAPP:
  8.      This actually has two parts.  A Windows Client and an NLM.
  9.      CLIENT:
  10.           The client allows a user to find a Database in the tree (which in
  11.           a real app would probably be stored in the users object or in
  12.           some kind of a config file).  After locating the Database, the
  13.           client reads the object to find the location of the Database Server.
  14.           It then reads the Database Server to find the NetWare server it is
  15.           loaded on.  Then it reads the NetWare server object to get the
  16.           network address and then attaches to the server.  After this, the
  17.           client sends an Extended NCP which requests authentication to the
  18.           Database.  The NLM responds and either grants access or denies it.
  19.      SERVER:
  20.           This is a 4.1 NLM that registers a NCP extension.  When receiving
  21.           the request from the client, it pulls the name of the Database from
  22.           the Extended NCP call and also gets the name connection number of
  23.           the client from the call.  From this, the NLM is able to find out
  24.           who the user is and then proceeds to read the Database object in
  25.           NDS to determine if the user has rights to the database.  the
  26.           user is either given access or denied access.
  27.  
  28. DBINST:
  29.      This utility extends the schema by adding a Database, a Database
  30.      Server and two attributes for the Database.  It is written as a
  31.      separate application so that a diskette containing this app can be
  32.      given the system administrator to extend the schema.  A database
  33.      administrator may not be given the rights at the root of the tree to
  34.      extend the schema.
  35.  
  36. DBUNINST:
  37.      This is similar to the DBINST but it removes or un-extends the
  38.      schema by removing the Database and Database Server and their
  39.      extended attributes.
  40.  
  41. DBSNAPIN:
  42.      This is a windows dll that is loaded into nwadmin to administrate the
  43.      Databases and Database Servers.  It creates the Database Server with
  44.      a blank password so the NLM can login to DS as that object.  (in other
  45.      words, you have to create the Database Server object in NWAdmin before
  46.      the NLM will load.)  To install this dll into NWAdmin, you must edit
  47.      the nwadmin.ini file located in your windows directory.  Modify the
  48.      file so that it has and entry like this:
  49.  
  50.      [Snapin Object DLLs]
  51.      DBSNAPIN=Z:\PUBLIC\DBSNAPIN.DLL
  52.  
  53.      Be sure to either have the full path to the DLL or have its path in
  54.      your environment.  (if you place it in the public directory on the
  55.      SYS: volume, it will work for everyone!)
  56.  
  57.  
  58.