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.415 2001/01/29 05:47:58 per Exp $"; + constant cvs_version = "$Id: configuration.pike,v 1.416 2001/01/30 04:49:55 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:672:      User find_user( string user, RequestID|void id )   //! Tries to find the specified user in the currently available user   //! databases. If id is specified, this function defaults to the   //! database that the currently authenticated user came from, if any.   //!   //! The other user databases are processed in priority order   {    User uid;    -  if( id->misc->authenticated_user +  if( id && id->misc->authenticated_user    && ( uid = id->misc->authenticated_user->database->find_user( user ) ))    return uid;       foreach( user_databases(), UserDB m )    if( uid = m->find_user( user ) )    return uid;   }    -  + array(string) list_users() + //! Fetches the full list of valid usernames from the authentication + //! modules by calling the list-users() methods. + { +  array(string) list = ({}); +  foreach( user_databases(), UserDB m ) +  list |= m->list_users(); +  return list; + } +  + array(string) list_groups() + //! Fetches the full list of valid groupnames from the authentication + //! modules by calling the list-users() methods. + { +  array(string) list = ({}); +  foreach( user_databases(), UserDB m ) +  list |= m->list_groups(); +  return list; + } +  +  +    Group find_group( string group, RequestID|void id )   //! Tries to find the specified group in the currently available user   //! databases. If id is specified, this function defaults to the   //! database that the currently authenticated user came from, if any.   //!   //! The other user databases are processed in priority order   {    Group uid;    -  if( id->misc->authenticated_user +  if( id && id->misc->authenticated_user    && ( uid = id->misc->authenticated_user->database->find_group( group ) ))    return uid;       foreach( user_databases(), UserDB m )    if( uid = m->find_group( group ) )    return uid;   }         public string last_modified_by(Stdio.File file, RequestID id)