1
0
mirror of https://github.com/apache/httpd.git synced 2026-01-13 21:42:17 +03:00
Commit Graph

37 Commits

Author SHA1 Message Date
Yann Ylavic
08346fc972 mod_auth_form: update empty log tags.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1585435 13f79535-47bb-0310-9956-ffa450edef68
2014-04-07 09:12:09 +00:00
Yann Ylavic
42e7a43e3c mod_auth_form: revert r1585431 (don't crash when no AuthFormProvider is configured).
This cannot happen in trunk, 2.4.x needs authenticate_form_post_config() to be
merged (r1531672).


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1585434 13f79535-47bb-0310-9956-ffa450edef68
2014-04-07 09:10:51 +00:00
Yann Ylavic
c36332bfcb mod_auth_form: don't crash when no AuthFormProvider is configured. PR 56351
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1585431 13f79535-47bb-0310-9956-ffa450edef68
2014-04-07 08:59:07 +00:00
Graham Leggett
dfd46c234e mod_auth_form: Make the trace logging consistent through the notes, session
and form authentication steps.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1550307 13f79535-47bb-0310-9956-ffa450edef68
2013-12-11 23:08:42 +00:00
Graham Leggett
e8907b1678 mod_auth_form: Add a debug message when the fields on a form are not
recognised.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1550302 13f79535-47bb-0310-9956-ffa450edef68
2013-12-11 22:59:53 +00:00
Christophe Jaillet
534f207ddd Remove useless apr_pstrdup as done for other mod_auth modules in r1026660
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1538149 13f79535-47bb-0310-9956-ffa450edef68
2013-11-02 08:22:25 +00:00
Graham Leggett
6330b052dd mod_auth_form: Make sure the optional functions are loaded even when
the AuthFormProvider isn't specified.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1531672 13f79535-47bb-0310-9956-ffa450edef68
2013-10-13 12:14:39 +00:00
Stefan Fritsch
c6984dfd5e remove unneeded include statements
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1427546 13f79535-47bb-0310-9956-ffa450edef68
2013-01-01 19:50:56 +00:00
Graham Leggett
9b6daeed73 mod_auth_form: Make sure 500 Internal Server Error is returned should an error
occur while parsing an expression.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1418721 13f79535-47bb-0310-9956-ffa450edef68
2012-12-08 18:00:29 +00:00
Graham Leggett
3fcc044205 mod_auth_form: Make sure that get_notes_auth() sets the user as does
get_form_auth() and get_session_auth(). Makes sure that REMOTE_USER
does not vanish during mod_include driven subrequests.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1393152 13f79535-47bb-0310-9956-ffa450edef68
2012-10-02 20:10:21 +00:00
Graham Leggett
b122eb16ff mod_auth_form: Support the expr parser in the
AuthFormLoginRequiredLocation, AuthFormLoginSuccessLocation and
AuthFormLogoutLocation directives.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1388648 13f79535-47bb-0310-9956-ffa450edef68
2012-09-21 19:46:23 +00:00
Stefan Fritsch
92e366007c Add lots of unique tags to error log messages
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1209766 13f79535-47bb-0310-9956-ffa450edef68
2011-12-02 23:02:04 +00:00
Graham Leggett
794c090c85 mod_auth_form: Use apr_status_t for the mod_session API.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1209623 13f79535-47bb-0310-9956-ffa450edef68
2011-12-02 18:24:10 +00:00
Stefan Fritsch
7ecccc1570 Remove some more now redundant log prefixes
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1208816 13f79535-47bb-0310-9956-ffa450edef68
2011-11-30 21:51:51 +00:00
Stefan Fritsch
b5aafabf63 Consistently use base 10 for numbers when parsing config options. It may be
confusing to the user if some directives treat a number with leading zero as
octal while most don't.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1180687 13f79535-47bb-0310-9956-ffa450edef68
2011-10-09 18:58:21 +00:00
Stefan Fritsch
48345b21d0 Avoid some memory allocations by using apr_table_setn where the string arguments
are allocated from the request pool and not modified later on.

Submitted by: Christophe JAILLET <christophe jaillet wanadoo fr>
PR: 51358


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1135084 13f79535-47bb-0310-9956-ffa450edef68
2011-06-13 11:04:29 +00:00
Jim Jagielski
ec88a92d83 Expose "new" ap_parse_form_data() function instead of requiring
mod_request for any module that may want to parse form data...

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1072099 13f79535-47bb-0310-9956-ffa450edef68
2011-02-18 18:40:31 +00:00
Graham Leggett
e6a3d2ecf1 Avoid unnecessariy initialisation before we test auth_form handler names.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1024456 13f79535-47bb-0310-9956-ffa450edef68
2010-10-19 23:02:06 +00:00
Stefan Fritsch
f1f6c850eb - add some trace logging
- move comment to correct location
- redirect temporarily instead of permanently to avoid potential problems
  with browser caches


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@963860 13f79535-47bb-0310-9956-ffa450edef68
2010-07-13 20:57:13 +00:00
Stefan Fritsch
e0e27b9a55 Fix segfault
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@961004 13f79535-47bb-0310-9956-ffa450edef68
2010-07-06 20:11:30 +00:00
Stefan Fritsch
eedf130332 Introduce note_auth_failure hook to allow modules to add support
for additional auth types. This makes ap_note_auth_failure() work with
mod_auth_digest again.

PR: 48807


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@960399 13f79535-47bb-0310-9956-ffa450edef68
2010-07-04 21:16:53 +00:00
Stefan Fritsch
ebb62867fb Use the new APLOG_USE_MODULE/AP_DECLARE_MODULE macros everywhere to take
advantage of per-module loglevels


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@951895 13f79535-47bb-0310-9956-ffa450edef68
2010-06-06 16:59:50 +00:00
Graham Leggett
1ec926810c mod_auth_form: Fix a pool lifetime issue, don't remove the subrequest
until the main request is cleaned up.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@731000 13f79535-47bb-0310-9956-ffa450edef68
2009-01-03 14:59:18 +00:00
Graham Leggett
84e0e4f48d mod_auth_form: Make sure that basic authentication is correctly
faked directly after login.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@690506 13f79535-47bb-0310-9956-ffa450edef68
2008-08-30 13:48:47 +00:00
Graham Leggett
2af7a38d72 Remove trailing spaces (on the insistence of Eclipse).
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@690505 13f79535-47bb-0310-9956-ffa450edef68
2008-08-30 13:47:05 +00:00
Graham Leggett
0529fe2737 mod_auth_form: Make sure the logged in user is populated correctly
after a form login. Fixes a missing REMOTE_USER variable directly
following a login.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@690493 13f79535-47bb-0310-9956-ffa450edef68
2008-08-30 11:11:21 +00:00
William A. Rowe Jr
11492551fa If we are submitting 2GB login forms, there is a very serious,
serious problem.  The len and form_size of size_t should be
adaquate, clean up the rest of the size/off mismatches.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@664230 13f79535-47bb-0310-9956-ffa450edef68
2008-06-07 01:10:50 +00:00
Chris Darroch
9864958fcd Convert common provider version strings ("0") to
AUTHN/Z_PROVIDER_VERSION macros defined in mod_auth.h.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@658046 13f79535-47bb-0310-9956-ffa450edef68
2008-05-19 23:53:05 +00:00
Graham Leggett
4e084cccd6 Make sure the optional function calls are used for ap_session_set and
ap_session_get. [Brad Nicholes]


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@655205 13f79535-47bb-0310-9956-ffa450edef68
2008-05-10 22:57:36 +00:00
Roy T. Fielding
45e2cb08b4 fix uninitialized variable
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@655017 13f79535-47bb-0310-9956-ffa450edef68
2008-05-10 06:44:44 +00:00
Graham Leggett
00db8a73d2 mod_auth_form: Make sure the input filter stack is properly set
up before reading the login form. Make sure the kept body filter
is correctly inserted to ensure the body can be read a second
time safely should the authn be successful. [Graham Leggett,
Ruediger Pluem]


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@654958 13f79535-47bb-0310-9956-ffa450edef68
2008-05-09 22:15:37 +00:00
Graham Leggett
d5c7f53e1e Remove C++ style comments.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@652683 13f79535-47bb-0310-9956-ffa450edef68
2008-05-01 21:59:13 +00:00
Graham Leggett
23ff756ed4 Ensure that the REMOTE_USER variable is correctly written when the user
has been authenticated from a session.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@649113 13f79535-47bb-0310-9956-ffa450edef68
2008-04-17 14:03:14 +00:00
Graham Leggett
e1cb99ff36 Fix the optional declarations so that the modules will build clean in
a mod_so environment.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@649109 13f79535-47bb-0310-9956-ffa450edef68
2008-04-17 13:59:51 +00:00
Graham Leggett
b613588a30 Move the KeptBodySize directive, kept_body filters and the
ap_parse_request_body function out of the http module and into a
new module called mod_request, reducing the size of the core.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@647263 13f79535-47bb-0310-9956-ffa450edef68
2008-04-11 18:41:53 +00:00
Guenter Knauf
7f6a84a6a9 No var declarations in the middle of the code.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@646305 13f79535-47bb-0310-9956-ffa450edef68
2008-04-09 12:40:14 +00:00
Graham Leggett
786afc76bd mod_auth_form: Add a module capable of allowing end users to log
in using an HTML form, storing the credentials within mod_session.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@646285 13f79535-47bb-0310-9956-ffa450edef68
2008-04-09 11:46:46 +00:00