On Thu, Aug 7, 2014 at 7:41 PM, <[email protected]> wrote:

> Hi, thanks for all the help especially to Sergey.
>
> I have to add authentification, I tried the example
> https://github.com/cesanta/mongoose/blob/master/examples/auth.c, but I'm
> doing somthing wrong, I'm defining the file mypasswords.txt, and populating
> it with a htpasswd generator, but when I'm trying to login, it pop
>

It should be my_passwords.txt, not mypasswords.txt

E.g. "mongoose -A my_passwords.txt mydomain.com foo bar" then start
 "./auth" and login as "foo", password "bar".



> up the user/pass form, but never get throught it.
> Is there any more option that is requiered to work?
>
> Thanks!
>
> I'm working with and embed version of mongoose, it could be a good idea to
> work with a authentification module such as PAM?
>

Whatever you want to use. In auth callback, check the user against any
system you like (e.g. PAM), and return MG_TRUE if authenticated, MG_FALSE
if not.

-- 
You received this message because you are subscribed to the Google Groups 
"mongoose-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/mongoose-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to