[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[LANdb] pre 0.90 code
I've got the user/login schema planned, and my changes uploaded:
http://avenir.dhs.org/landb/download/current/landb-01-10-2000.tar.gz
The whole thing is quite simple. It may not be the most efficient just
yet, but I think it's pretty functional, and pretty effective. Note
that due to my oops (rm *) this morning, I had to backtrack and redo
everything I had done since 0.80 (with the uport3.cgi patch), and
currently, all you can do is login. I still have to fix misc.cgi, and
update all the other scripts to use:
LANdb::LANdbLogin instead of ::DBLogin (I think I'll move this to a
separate script, since it's only used once)
LANdb::LANdbAuth instead of ::DBLogin (this does the actual nis.login
authentication)
The table layouts:
nis.login:
loginid char(32), user char(12), time timestamp(10))
nis.user:
username char(12), password char(32), functions char(40), type char(15)
<-might remove this later)
Functions: Basically, you've got a table of functions, numbered 0->, and
in the function field of nis.user, you get a list of 1's and commas.
Later, it's checked by if($functions[X]) {then do stuff} where X is 0->.
I'll work on finishing this up, but classes start tomorrow, so it may
take a few days. :( I'm looking at 0.90 somtime soon, maybe in the next
couple weeks, depending on when Terry or Dale pop up with the SNMP code.
John
--
# John Madden weez@avenir.dhs.org ICQ: 2EB9EA
# Sys-Admin / Webmaster, Avenir Web: http://avenir.dhs.org
# LANdb: Network Admin Database -- COMP Mailing List: Linux & Windows
# The NAN Project: Neighborhood Networks -- Tech Support Database
-------------------------------------
LANdb - The Network Management Database
To unsubscribe, send email to landb-request@avenir.dhs.org
and put 'unsubscribe' in the subject line
Administrative contact: weez@avenir.dhs.org
-------------------------------------