Jason's pam_pgsql Module version 0.1
Author: Jason Robertson jason@ifuture.com

Okay this was a hack made up of various sources. 
Sources include pam_pgsql, and pam_unix.  And you know both of your codes, are 
very messy and disorganized.

I am far from being complete, I have many things I want to implement, that I just 
don't have time to implement.

What's completed, to this point:
  - Authentication on the database
    query = select password from passwd where username = 'user' and password = 
           'password' and active = 'T' and (expire > now() or expire = NULL)
    This should allow for an administrator to deactive accounts, with a single 
    field, without changing passwords, or renaming accounts.   Also allows you to
    define an account expire time, for those temporary accounts.

  - It will pass the Acct Part, without the need for /etc/passwd or /etc/shadow


What is desired to be work in the future:
  - MD5 storing of passwords. 
  - Service based passwords.
  - Better Account Management, so you can actually use it for telnet.
    (yes I know I'll have to find a way to update /etc/passwd) 
  - chauthtok module still needs to be done.
  - Session Management module still needs to be done.
  - Logging on Connection, to be done. Though have to find a way to grab the IP
    since pam_get_item does not get it all of the time.
  - Secondary Auth, to also use the source IP and Password to validate.
  - Add the ability to Chroot.
  - Add ability to have global configurations.
  - Include a php, and programs to update the database for this.
