Project

General

Profile

[Solved] enable basic authentication for add-on modules in code

Added by yurylankovskiy almost 6 years ago

Hello, I've included a pam module in lighttpd 1.4.48 that has basic authentication method. The problem I'm experiencing is, I cannot find how to enable pam backend for auth.required basic, in the docs it says basic method only supported for backends

plain
htpasswd
htdigest
ldap
gssapi
mysql
sasl

I have tried running as is, and these are my observations:

1. I can send login credentials as part of the url from the browser and pam tries to authenticate, ie login:
2. I cannot get basic authentication prompt as basic authentication does not support pam

I've checked sasl, gssapi, ldap source code in hopes to find some lead as to how to enable pam backend for basic authentication. Can you please point me in the direction or file, or provide some explanation?

Thanks in advance for the help


Replies (3)

RE: enable basic authentication for add-on modules in code - Added by gstrauss almost 6 years ago

The official lighttpd codebase does not support a pam module. The attachment to #688 by sravas claims it works on 1.4.45. YMMV.

RE: enable basic authentication for add-on modules in code - Added by yurylankovskiy almost 6 years ago

I understand that, and I saw the post by sravas. However, the question is a bit different. Where in the source, or what is the mechanism used to attach backend types to basic authentication?

RE: [Solved] enable basic authentication for add-on modules in code - Added by gstrauss over 3 years ago

mod_auth documentation includes mod_authn_pam since lighttpd 1.4.51. See #688

    (1-3/3)