[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Cistron Radius password file question



Hi,

On Thu, Nov 28, 2002 at 07:09:49PM +0100, Radek Hnilica wrote:

> > 
> > also, you might want to eventually move radius to this box too.  if
> > you're not using LDAP or other shared account db, it can be very useful
> > to have with the radius server on the same machine as the mail server.
> > /etc/passwd already holds the passwords for login accounts, it's easy to
> > configure radius to use that.  
> 
> please is there a simple way how to push radius to use
> /etc/ftpd.passwd instead of /etc/passwd ?  The structure is the same
> but users are different.

Turn on caching of /etc/passwd (causes Cistron to read the passwd file
itself instead of using the libc routines), and apply this in the src directory before compiling:

--- cache.h.orig        Thu Nov 28 19:13:41 2002
+++ cache.h     Thu Nov 28 19:14:29 2002
@@ -13,7 +13,7 @@
 #if defined(__FreeBSD__) || defined(__NetBSD__) || defined(bsdi)
 #define PASSWDFILE "/etc/master.passwd"
 #else 
-#define PASSWDFILE "/etc/passwd"
+#define PASSWDFILE "/etc/ftpd.passwd"
 #endif /* bsdi*/
 #define SHADOWFILE "/etc/shadow"

Cheers,


Emile.

-- 
E-Advies / Emile van Bergen   |   emile@e-advies.info
tel. +31 (0)70 3906153        |   http://www.e-advies.info

Attachment: pgpoA__rQDm6C.pgp
Description: PGP signature


Reply to: