Mercurial > noffle
view src/configfile.h @ 288:c02c4eb95f95 noffle
[svn] * src/configfile.h,src/configfile.c,docs/noffle.conf.5: Add noffle-user
and noffle-group configs.
* src/configfile.c,src/fetch.c,src/fetchlist.c,src/protocol.c,
src/server.c: Replace strcpy() with Utl_cpyStr() where appropriate.
See Debian bug 168128.
* src/control.c,src/configfile.c,src/noffle.c: Replace [s]scanf("%s")
with [s]scanf(MAXCHAR_FMT).
* src/noffle.c: Log warning if noffle.conf is world readable.
* src/noffle.c: Restrict most options to news admins; i.e. those who
are root or news on running Noffle.
* Makefile.in,acconfig.h,aclocal.m4,config.h.in,configure,configure.in,
docs/Makefile.in,docs/noffle.conf.5,packages/Makefile.in,
packages/redhat/Makefile.in,src/Makefile.am,src/Makefile.in,
src/authenticate.c,src/authenticate.h,src/noffle.c,src/server.c:
Add basic authentication using either Noffle-specific user file
or authenticating via PAM (service 'noffle'). PAM authentication
needs to run as root, so a Noffle server that needs PAM
must be started by root. Helpful (?) error messages will be logged
if not. Noffle will switch ruid and euid to 'news' (or whatever
is configured) ASAP.
* src/noffle.c: Add uid checking.
author | bears |
---|---|
date | Fri, 10 Jan 2003 23:25:45 +0000 |
parents | 01755687c565 |
children | b0ee77fa24d4 |
line wrap: on
line source
/* configfile.h Common declarations and handling of the configuration file. $Id: configfile.h 419 2003-01-10 23:11:43Z bears $ */ #ifndef CONFIGFILE_H #define CONFIGFILE_H #if HAVE_CONFIG_H #include <config.h> #endif #include "common.h" struct GroupEnum; typedef struct GroupEnum GroupEnum; const char * Cfg_spoolDir( void ); const char * Cfg_version( void ); int Cfg_maxFetch( void ); int Cfg_autoUnsubscribeDays( void ); int Cfg_threadFollowTime( void ); int Cfg_connectTimeout( void ); Bool Cfg_autoUnsubscribe( void ); Bool Cfg_autoSubscribe( void ); Bool Cfg_infoAlways( void ); Bool Cfg_replaceMsgId( void ); const char * Cfg_hostnameMsgId( void ); Bool Cfg_postLocal( void ); const char * Cfg_mailTo( void ); /* Begin iteration through the server names */ void Cfg_beginServEnum( void ); /* Save next server name in "name". Return TRUE if name has been was saved. Return FALSE if there are no more server names. */ Bool Cfg_nextServ( Str name ); Bool Cfg_servListContains( const char *name ); /* Prefer server earlier in config file. Known servers are always preferential to unknown servers. */ Bool Cfg_servIsPreferential( const char *name1, const char *name2 ); void Cfg_authInfo( const char *name, Str user, Str pass ); Bool Cfg_needClientAuth( void ); /* Return expire period for named group. */ int Cfg_expire( const char *grp ); /* Return default expire days. */ int Cfg_defaultExpire( void ); /* Return auto subscribe mode for named group. Can be: full, thread, over */ const char * Cfg_autoSubscribeMode( const char *grp ); /* Return default auto subscribe mode. Can be: full, thread, over */ const char * Cfg_defaultAutoSubscribeMode( void ); /* Return Path: header contents */ const char * Cfg_pathHeader( void ); /* Return domain for generated From: lines */ const char * Cfg_fromDomain( void ); /* Return default Organization: contents */ const char * Cfg_organization( void ); /* Return the user Noffle should run as */ const char * Cfg_noffleUser( void ); /* Return the group Noffle should run as */ const char * Cfg_noffleGroup( void ); void Cfg_read( void ); /* Get a new iterator for get group patterns for the given server */ GroupEnum * new_GetGrEn( const char *name ); /* Get a new iterator for omit group patterns for the given server */ GroupEnum * new_OmitGrEn( const char *name ); /* Free up a group enumerator */ void del_GrEn( GroupEnum * ge ); /* Rewind to first group */ void GrEn_first( GroupEnum * ge ); /* Get next group pattern or NULL if no more */ const char * GrEn_next( GroupEnum *ge ); #endif