[prev in list] [next in list] [prev in thread] [next in thread] 

List:       cistron-radius
Subject:    Re: radius start problem
From:       Alan DeKok <aland () striker ! ottawa ! on ! ca>
Date:       2000-03-28 16:20:16
[Download RAW message or body]

ramesh chandra <ramesh@sprintrpg.com> wrote:
> I tried but no progress. 'Users' file does not has entries for 'User-Id' of
> 'User-Name'. 
> Am I missing somethig or I should look for these entries in some other files?

  It sounds like you haven't installed the dictionaries, or you aren't
using the correct dictionaries.
 
> I have observed that the error response is coming for all user and default
> entries. I mean, I am getting error for the first user. If I comment 1st
> user then it comes for the second. When I comment all entries of 'users'
> file then there is no error but radius daemon is also not getting started.
> Same thing with debugging. 

  That's a big problem, and really shouldn't happen.  What files are
in your 'raddb' directory, along with the 'users' file?

> Alternatively, I am trying to load freshly on the new machine. I am using
> cistron-1.6.2-stable.tar.gz. 
> Please advie the following.
> 
> 1	Is 'radius-cistron-1.6.2-stable.tar.gz' precomplied?

  No... you've got to compile it.

> 2	What is the purpose of command ' vi Makefile' without 	action in FAQ
> document?

  To let you modify whatever you want in the Makefile.  If you don't
want to modify anything, then you can probably skip that step.

> 3	When I tar the radius file as per document, system creates firectionary
> in name of 'radius-cistron-1.6.2-stable.tar'. Shoud I copy all files of
> this long directory in /etc/raddb?

  No... it creates a directory: radiusd-cistron-1.6.2-stable

  You can then do:

cd radiusd-cistron-1.6.2-stable/src
make

  And from that directory, follow the instructions for debugging the
server in 4.11 of the FAQ:

http://www.freeradius.org/FAQ.html#4.11

  After that, you can do a 'make install'.

  Hmm... the 'make install' option doesn't copy anything to
/etc/raddb.  That's bad....

  You'll have to copy the files from:

radiusd-cistron-1.6.2-stable/raddb to /etc/raddb by hand.


  Miquel?  Shouldn't there be an 'install' target for /etc/raddb?

Maybe:

	mv $(RADIUS_DIR) $(RADIUS_DIR).old.$$$$;exit 0
	install -d $(RADIUS_DIR)
	install -m 600    ../raddb/clients $(RADIUS_DIR)
	install -m 600    ../raddb/dictionary $(RADIUS_DIR)
	install -m 600    ../raddb/dictionary.ascend $(RADIUS_DIR)
	install -m 600    ../raddb/dictionary.cisco $(RADIUS_DIR)
	install -m 600    ../raddb/dictionary.compat $(RADIUS_DIR)
	install -m 600    ../raddb/dictionary.livingston $(RADIUS_DIR)
	install -m 600    ../raddb/dictionary.shiva $(RADIUS_DIR)
	install -m 600    ../raddb/dictionary.tunnel $(RADIUS_DIR)
	install -m 600    ../raddb/dictionary.usr $(RADIUS_DIR)
	install -m 600    ../raddb/dictionary.versanet $(RADIUS_DIR)
	install -m 600    ../raddb/hints $(RADIUS_DIR)
	install -m 600    ../raddb/huntgroups $(RADIUS_DIR)
	install -m 600    ../raddb/naslist $(RADIUS_DIR)
	install -m 600    ../raddb/naspasswd $(RADIUS_DIR)
	install -m 600    ../raddb/realms      $(RADIUS_DIR)
	install -m 600    ../raddb/users                  $(RADIUS_DIR)

  ???

  That seems to work for me.  And the '$$$$' thing in the 'mv' command
translates to '$$' for the shell (current PID), which ensures that the
old 'raddb' directory is NEVER destroyed.  I *HATE* installation
scripts that destroy my databases, they're evil beyond words.

  Alan DeKok.

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic