Branch: Tag:

2005-12-13

2005-12-13 15:46:00 by Anders Johansson <anders@roxen.com>

Implemented custom authentication failed message and 401.inc files.

Rev: server/base_server/configuration.pike:1.600
Rev: server/etc/modules/Roxen.pmod:1.203
Rev: server/modules/compat/secure_fs.pike:1.31
Rev: server/modules/filesystems/filesystem.pike:1.152
Rev: server/modules/security/auth_httpbasic.pike:1.11
Rev: server/modules/tags/rxmltags.pike:1.505

7:   inherit "module";   inherit "socket";    - constant cvs_version= "$Id: filesystem.pike,v 1.151 2005/10/19 12:22:09 grubba Exp $"; + constant cvs_version= "$Id: filesystem.pike,v 1.152 2005/12/13 15:45:59 anders Exp $";   constant thread_safe=1;      #include <module.h>
404:    return    // FIXME: Sane realm.    Roxen.http_auth_required("foo", -  "<h1>Permission to 'LOCK' files denied</h1>"); +  "<h1>Permission to 'LOCK' files denied</h1>", +  id);    }    register_lock(path, lock, id);    return 0;
418:    return    // FIXME: Sane realm.    Roxen.http_auth_required("foo", -  "<h1>Permission to 'UNLOCK' files denied</h1>"); +  "<h1>Permission to 'UNLOCK' files denied</h1>", +  id);    }    unregister_lock(path, lock, id);    return 0;
447:    return    Roxen.http_auth_required("foo",    sprintf("<h1>Permission to '%s' denied</h1>", -  id->method)); +  id->method), id);    }    TRACE_LEAVE("Fall back to the default write access checks.");    return ::write_access(path, recursive, id);