| Ticket Hash: | 6446fb492877472ad11a074dbc4d28eb49b46ecd | ||
| Title: | Authentication: enable line "require valid-user" in .htaccess inside limit tags | ||
| Status: | Open | Type: | Feature_Request |
| Severity: | Important | Priority: | |
| Subsystem: | Resolution: | ||
| Last Modified: |
2015-11-02 16:58:57 10.88 years ago |
Created: |
2015-11-02 16:58:57 10.88 years ago |
| Version Found In: | ffc189660f15a776 | ||
| User Comments: | ||||
fr added on 2015-11-02 16:58:57:
# patch to apply in modules/httpd/auth.tcl
395c395,400
< return [expr {[lsearch $users $user] >= 0}]
---
> if {[llength $users]} {
> return [expr {[lsearch $users $user] >= 0}]
> } else {
> # valid-user
> return 1
> }
555a561,566
> if {[expr {[llength $words] == 2}]} {
> if {[string equal valid-user [string tolower [lindex $words 1]]]} {
> lset words 1 user
> lappend words {}
> }
> }
| ||||