Name
ap_ get_basic_auth_pw — get the password supplied for basic authentication
Synopsis
int ap_ get_basic_auth_pw(request_rec *r, const char **pw)
If a password has been set for basic authentication (by the client),
its address is put in *pw
. Otherwise, an
appropriate error is returned:
-
DECLINED
If the request does not require basic authentication
-
SERVER_ERROR
If no authentication domain name has been set (with
AuthName
)-
AUTH_REQUIRED
If authentication is required but has not been sent by the client
-
OK
If the password has been put in
*pw
Get Apache: The Definitive Guide, 3rd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.