home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 1999 March B / SCO_CASTOR4RRT.iso / nsfast / root.9 / usr / ns-home / extras / database / README / README~
Text File  |  1998-08-19  |  2KB  |  46 lines

  1. User database helpers
  2. ---------------------
  3.  
  4. For the 2.0 release of the server, the DBM format was switched from NDBM 
  5. format to Berkeley DB format.  This was done to help cross-platform 
  6. consistency.  The program, cvuser, is provided to convert from either
  7. the Netsite 1.1 NDBM database format or NCSA-style text file format to
  8. the 2.0 Berkeley DB format.  Use "cvuser -h" to see the command options.
  9. Using cvuser, you can set up a cron job to regularly update a 2.0 server
  10. user database from another database.
  11.  
  12. Note that cvuser requires the services of another program, ndbmdump, which
  13. converts a Netsite 1.1 NDBM database to NCSA-style text format.  ndbmdump
  14. should be in your PATH whenever you use cvuser.
  15.  
  16. There are also a number of utilities included for managing a 2.0 database
  17. from a command line:
  18.  
  19.     mkuser - used to create a new user
  20.     chuser - used to modify an existing user entry
  21.     rmuser - used to remove an existing user
  22.     shuser - used to display one or more user entries
  23.  
  24.     mkgroup - used to create a new group
  25.     chgroup - used to modify an existing group, including adding or
  26.               removing user or group members
  27.     rmgroup - used to remove an existing group
  28.     shgroup - used to show one or more group entries
  29.  
  30. There is also an example HTML page (changepw.htm) and CGI program 
  31. (changepw.cgi) to allow users to change their own passwords.  The HTML page
  32. has a hidden form element defining where the database is - be sure to 
  33. change it to match your database.  You can also recompile the CGI program
  34. to hardcode where the database is if you'd rather do that.  Be sure to give
  35. it a database name without the filename extension.  The form asks for the 
  36. person's username, but if the form is in an area that is already protected 
  37. by authorization, it can get that information from the environment as well.  
  38. The form still asks for the old password for security.  The CGI program
  39. uses the command-line utilities, shuser and chuser, to verify the old
  40. password and set the new one.  These utilities must be installed in the
  41. same directory as the CGI program (changepw.cgi).
  42.  
  43. Enjoy!
  44. --
  45. Copyright 1995-96 Netscape Communications Corporation, all rights reserved
  46.