summaryrefslogtreecommitdiff
path: root/src/mod_auth.c
diff options
context:
space:
mode:
authorArno Töll <arno@debian.org>2012-11-21 23:03:49 +0100
committerArno Töll <arno@debian.org>2012-11-21 23:03:49 +0100
commitec0b51649cd99420792df2352b02dc949f8f293b (patch)
treea31d192b419dc5c20445983d4aff2c0a88c28d40 /src/mod_auth.c
parenta4197a3a45fd2b20d05c079d49af9fbef5fd4e2e (diff)
downloadlighttpd-ec0b51649cd99420792df2352b02dc949f8f293b.tar.gz
Imported Upstream version 1.4.17upstream/1.4.17
Diffstat (limited to 'src/mod_auth.c')
-rw-r--r--src/mod_auth.c39
1 files changed, 0 insertions, 39 deletions
diff --git a/src/mod_auth.c b/src/mod_auth.c
index ef4f6c8..19ed387 100644
--- a/src/mod_auth.c
+++ b/src/mod_auth.c
@@ -503,45 +503,6 @@ SETDEFAULTS_FUNC(mod_auth_set_defaults) {
}
switch(s->auth_backend) {
- case AUTH_BACKEND_PLAIN:
- if (s->auth_plain_userfile->used) {
- int fd;
- /* try to read */
- if (-1 == (fd = open(s->auth_plain_userfile->ptr, O_RDONLY))) {
- log_error_write(srv, __FILE__, __LINE__, "sbss",
- "opening auth.backend.plain.userfile:", s->auth_plain_userfile,
- "failed:", strerror(errno));
- return HANDLER_ERROR;
- }
- close(fd);
- }
- break;
- case AUTH_BACKEND_HTPASSWD:
- if (s->auth_htpasswd_userfile->used) {
- int fd;
- /* try to read */
- if (-1 == (fd = open(s->auth_htpasswd_userfile->ptr, O_RDONLY))) {
- log_error_write(srv, __FILE__, __LINE__, "sbss",
- "opening auth.backend.htpasswd.userfile:", s->auth_htpasswd_userfile,
- "failed:", strerror(errno));
- return HANDLER_ERROR;
- }
- close(fd);
- }
- break;
- case AUTH_BACKEND_HTDIGEST:
- if (s->auth_htdigest_userfile->used) {
- int fd;
- /* try to read */
- if (-1 == (fd = open(s->auth_htdigest_userfile->ptr, O_RDONLY))) {
- log_error_write(srv, __FILE__, __LINE__, "sbss",
- "opening auth.backend.htdigest.userfile:", s->auth_htdigest_userfile,
- "failed:", strerror(errno));
- return HANDLER_ERROR;
- }
- close(fd);
- }
- break;
case AUTH_BACKEND_LDAP: {
handler_t ret = auth_ldap_init(srv, s);
if (ret == HANDLER_ERROR)