Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* Re: Beta (Alpha?) release of HIPSS 0.25
       [not found] <42gcgd$10qi@thebes.waikato.ac.nz>
@ 1995-09-05  4:00 ` Hamish Marson
  0 siblings, 0 replies; only message in thread
From: Hamish Marson @ 1995-09-05  4:00 UTC (permalink / raw)


After complaing bitterly that noone had ever replaced NIS with oomething
useful, I started writing HIPSS. (Thanks to people at work for the name :)
The readme is below, all contributions to hamish@waikato.ac.nz





		    HIPSS
    Hamish's Inexpensive Password Sharing System
    ============================================

		Version 0.25
		  05/09/95

	Copyright 1995
	Hamish Marson & The University of Waikato

	email hamish@waikato.ac.nz


Ever had problems with NIS? I did, and I wanted to share passwords, so
I wrote HIPSS. Basically what it was designed to do is to share
password files among multiple machines, and replicate the changes to
the passwd (And group) file without hassles.

Many of the hassles have been overcome, such as what if a node is down
when a change occurs (All changes are journalled, and updates
re-propagated to nodes when they come up). A main aim was to make any
changes pretty much transparent to the OS. The only thing that really
needs changing on your system, is to startup the main daemon
(sharedameon, it will fork() off the jnldaemon, syncdaemon and
userdaemon processes), and replace the passwd command with spasswd (Or
educate your users to use spasswd instead).

This is the first public beta (Alpha?) of the code, hopefully I'll get
some good feedback on things people want to see. One thing that is
missing that it needs, is on the wire encryption of information as it
goes over the wire. Of course if you use secure RPC's you won't have
that problem, trouble is I can't rely on machines having secure RPC's
in this part of the world (What are we going to do. Throw code at
people?), so I guess I'll have to include encryption into the
protocols one day RSN.

Documentation...

    Is minimal. Pretty much all there is is this file, so read
carefully. There are several directories off the main directory. They
are...

bin	    Unused...

client	    The code for the client utilities. There are utilities in
	    there for changing passwords (spasswd), creating users and
	    groups (pwdshare and groupshare), checking if the servers
 	    are all running (pwdsver) and others (testuser tests the
 	    userdaemon, there isn't one for testing the journal yet,
 	    nor the main sharedaemon or syncdaemon yet).
 	    The programs for importing passwd and group files into the
 	    database are a bit raw, and currently can't be used if the
 	    main daemons are up and running. Ah well.. Time catches
 	    up.

doc	    Empty except for a man page from Digital Unix on using its
 	    security database stuff.

include	    The main includes for the system. Edit config.h and defs.h
 	    for your site. All you should need to change are the
 	    pathnames.

jnldaemon   The journalling daemon. Journals changes to the passwd
 	    database. The journal is kept by default in the directory
 	    /usr/local/pwdshare, so you'd better create that now.

syncdaemon  Does the synchronisation of passwd files to other hosts by
 	    querying the jnldaemon for changes since the last time it
 	    successfully sent anything to a host (Named in the hosts
 	    file, kept of course in /usr/local/pwdshare). The hosts
 	    file remains in shared memory, so try not to touch it when
 	    the servers are running (Kind of like touching the active
 	    file when innd is running, only no quite as bad).

userdaemon  Looks after the user database file. This details WHEN a
 	    change was made, and holds the information for that
 	    user. Kind of redundent, but when a user may not
 	    necessarily get created on a host, kind of necessary. More
 	    on that later...
 	    The passwords are kept in here as well, so we can pass
 	    them to hosts that don't do unix crypt(). SUch as VMS (If
 	    I ever do a VMS version). SHould be encrypted, but it
 	    isn't. Ah well... Time Again...

sharedaemon The main daemon. You run this by hand, and it starts
 	    everything else up. All IPC (Inter Process Communications)
 	    are done via RPC's, so you can put security in there with
 	    secure RPC's if you really want to. I didn't becasue it
 	    had to work with Digital unix, and the version they ship
 	    here doesn't do auth_des().

rpc_src	    Source (*.x) files for rpc protocols used. pwdshare.x is
 	    not used any more becasue I changed a lot of
 	    pwdshare_svc.c, and couldn't think of a good way to keep
 	    it consistent without being fancy with patch. Maybe one
 	    day I'll fix that again.




Supported Platforms.

This was written on AIX 3.2.5, AIX 4.1.x, and Digital Unix v3.0, other
should work, its kind of generic. AIX shadow passwords files are
supported (It doesn't do /etc/passwd passwds on AIX, becasue I don;t
believe in them), and it also does the security password stuff in
DIgital Unix, as well as generic password files. The generic stuff is
kind of limited, it won't update the dbm hash files (Because there was
a bug somewhere in my code, and I #ifdef'ed it out), but oneday I'll
fix it.



Other Directories.
You need to create the directory /usr/local/pwdshare and make sure
that it isn't readable by anyone except root (And whoever needs
security access. Under AIX I make it rwxrwx--- and ownership
root.group, just like /etc/security. This is where the databases are
kept.



OK. setup the two include files (include/defs.h and include/config.h),
edit the makefile to your needs (OSF1, OSF_C2 and AIX defines are
recommended depending on your platform), and do a make depend. Then
make and make install. sharedaemon runs the executables for the other
daemons from /usr/local/bin, so a make install is needed. It should
now work. I've been running a p[revious version on OSF/1 for almost a
year now, and it seems to work OK. 


Known Problems.
Scaling isn't all I hoped it would be. I need to work on
that. Currently config.h limits it to 20 hosts, but I don't have that
may to run it on, so I don't know how high it could comfortably go. It
spits humungeous amounts of info to the screen when running, most of
it can be stopped by commenting out the DEBUG_XXXXXX #define's in
config.h, I may have missed some though. (I know i have). Like I said,
it's version 0.25


Any flames, suggestions for enhancement, or code you want to donate,
send to hamish@waikato.ac.nz

Thanks to.
Many thanks to whoever did the npasswd stuff, I pinched some code and
ideas from there for doing the generic passwd file and dbm hased
databse stuff. Pity I didn't get that hased stuff working. Everything
else is my own, and copyrighted by me. No commercial use if you intent
on making money etc etc etc. You know. If you want to license it, hey!
I can be bought.

Also thanks to the ever patient helpdesk people here who use it and
tell me when I get it wrong. 

--
======================================================================
|  Hamish Marson                                                     |
|  Systems Programmer & News Manager          news@news.waikato.ac.nz|
|  Computer Services               | INTERNET h.marson@waikato.ac.nz |
|  University of Waikato           | PHONE    +64 7 8562889 xt 8181  |
|  New Zealand                     | FAX      +64 7 8384066          |
===========Disclaimer :- Remember. You heard it here first.===========
If nuclear bombs are so safe why don't the French test them under Paris



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1995-09-05  4:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <42gcgd$10qi@thebes.waikato.ac.nz>
1995-09-05  4:00 ` Beta (Alpha?) release of HIPSS 0.25 Hamish Marson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox