Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 8 Aug 2002 20:53:22 -0700 (PDT)
From:      Jeff Jirsa <jeff@unixconsults.com>
To:        Brian McCann <bjm1287@ritvax.rit.edu>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   RE: htpasswd / Apache
Message-ID:  <20020808204306.L1167-100000@boris.st.hmc.edu>
In-Reply-To: <000101c23f54$dcaea130$2e00a8c0@dogbert>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 8 Aug 2002, Brian McCann wrote:

> I've tried it...but I could NEVER get it to work right with encrypted
> passwords.  This was actually what I tried first...but since I could
> only get it to work with clear text passwords, I gave up on it.  My
> problem was no matter where I grabbed the PW from to put into the db
> (using htpasswd or crypt), I could never authenticate right.  Do you
> have any example code or a site I could look at to help me out for how
> to add people into the DB using encrypted PWs?  Preferably MD5.
>


This link has always worked well for me ...

http://www.cgi101.com/class/password/mod_auth_mysql.html

The directive to notice is : Auth_MySQL_Encryption_Types Crypt_DES
Everything else should be pretty much self explainatory ... MD5 doesn't
seem to be an option.

Adding them is trivial ... but just in case ... once connected to the db,
issue a command similar to:

INSERT INTO http_auth (username,passwd,groups) VALUES("username","cryptedpass","default");


- Jeff




To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020808204306.L1167-100000>