Re: Migrate htpasswd users to _users?

2012-06-08 Thread Keith Gable
Well what I'm trying to say is crypt() won't work. You'll have to use the APR-specific crypt() or a clone implementation. I remember seeing one in Python on the nginx wiki. On Jun 7, 2012 10:48 PM, "Jim Klo" wrote: > As we're using whatever the default is on Ubuntu (which is crypt() per > manpage

Re: Migrate htpasswd users to _users?

2012-06-07 Thread Jim Klo
As we're using whatever the default is on Ubuntu (which is crypt() per manpage http://linux.die.net/man/1/htpasswd) Is there an existing authentication handler plugin that uses crypt? While I'm not even close to even call myself an Erlang noob - from here it doesn't seem like it would too diffi

Re: Migrate htpasswd users to _users?

2012-06-07 Thread Keith Gable
htpasswd supports several different hash schemes. $apr1$ is the default and isn't very portable (though is supported by nginx) because it's not exactly MD5 as generated by crypt(). On Jun 7, 2012 4:15 PM, "Jim Klo" wrote: > Wondering if there is a way to easily migrate a flat file of htpasswd > u

Migrate htpasswd users to _users?

2012-06-07 Thread Jim Klo
Wondering if there is a way to easily migrate a flat file of htpasswd users into couchdb _users? htpasswd typically uses crypt() which I think i based off a MD5, and couchdb uses SHA1. So essentially is there a stable authentication handler out there that replicates htpasswd? Thanks, - Jim