Roxen.git / server / base_server / configuration.pike

version» Context lines:

Roxen.git/server/base_server/configuration.pike:1:   // A vitual server's main configuration   // Copyright © 1996 - 2000, Roxen IS. - constant cvs_version = "$Id: configuration.pike,v 1.411 2001/01/19 18:34:44 per Exp $"; + constant cvs_version = "$Id: configuration.pike,v 1.412 2001/01/19 21:20:16 per Exp $";   #include <module.h>   #include <module_constants.h>   #include <roxen.h>   #include <request_trace.h>         #define CATCH(P,X) do{mixed e;if(e=catch{X;})report_error("While "+P+"\n"+describe_backtrace(e));}while(0)      // --- Locale defines ---   //<locale-token project="roxen_start"> LOC_S </locale-token>
Roxen.git/server/base_server/configuration.pike:619:   //! Return the user data for id u from the authentication module. The   //! id parameter might be left out if FTP. Returns zero if no auth   //! module was present.   {    User uid;    foreach( user_databases(), UserDB m )    if( uid = m->find_user_from_uid( u ) )    return uid->compat_userinfo();   }    + UserDB find_user_database( string name ) + { +  foreach( user_databases(), UserDB m ) +  if( m->name == name ) +  return m; + }    -  + AuthModule find_auth_module( string name ) + { +  foreach( auth_modules(), AuthModule m ) +  if( m->name == name ) +  return m; + } +    public User authenticate( RequestID id,    UserDB|void database,    AuthModule|void method )   //! Try to authenticate the request with users from the specified user   //! database. If no @[database] is specified, all datbases in the   //! current configuration are searched in priority order, then the   //! configuration user database. Same goes for the @[method].   //!   //! The return value is the autenticated user.   {