Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 4th October 2008, 15:55
swati_sharma swati_sharma is offline
Junior Member
 
Join Date: Oct 2008
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default URGENT - HELP REQUIRED :: FreeRadius Server Configuration and Integration with LDAP

Hi all,

I am doing the configuration of FreeRadius Server version 2.1.1 on FC8. I plan to connect WiFi access points to freeRadius for AAA as a part of my project. I downloaded the source code and built it using

./configure
make
make install

But, radtest gives access-reject for any username and password. Also, when running the radius daemon : radiusd i get the following error ::

/etc/raddb/users[74]: Parse error (check) for entry Auth-Type: expecting '='
Errors reading /etc/raddb/users
radiusd.conf[1171]: files: Module instantiation failed.
radiusd.conf[1970] Unknown module "files".
radiusd.conf[1905] Failed to parse authorize section.


Initially i was trying to integrate ldap with freeradius 1.1.7 in the first go. But, it also gave the failure to parse errors. So, i just shifted the version of freradius to 2.1.1.


Following is the code in the users file that i have added ::

#DEFAULT Auth-Type = System
# Fall-Through = 1

Auth-Type := ldap
Auth-Type := local, User-Password == mypasswd
Auth-Type := System

Service-Type = Login-User

"test" User-Password == "test"

User-Name = "abc" User-Password = "cba"

"swati" Cleartext-Password := "swati"
Reply-Message = "Hello, %{User-Name}..............."


Hope this much information is sufficient. Please do help me at the earliest.

Thanking you in anticipation.

Swati
Reply With Quote
Sponsored Links
  #2  
Old 5th October 2008, 19:40
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

What's the output of
Code:
ls -la /etc/raddb/users
?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 9th October 2008, 10:07
swati_sharma swati_sharma is offline
Junior Member
 
Join Date: Oct 2008
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Sir,

Following is the output to ls -la /etc/raddb/users ::

-rw------- 1 radiusd radiusd 7431 2008-10-04 16:23 /etc/raddb/users
Reply With Quote
  #4  
Old 10th October 2008, 13:59
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

And what's in /etc/raddb/users?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #5  
Old 10th October 2008, 15:38
swati_sharma swati_sharma is offline
Junior Member
 
Join Date: Oct 2008
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

The part i added in the users file is as follows ::


#DEFAULT Auth-Type = System
# Fall-Through = 1

Auth-Type = ldap
Auth-Type = local, User-Password == mypasswd
Auth-Type = System

Service-Type = Login-User

"test" User-Password == "test"

User-Name = "abc" User-Password = "cba"

"swat" Cleartext-Password := "swat"
Reply-Message = "Hello, %{User-Name}..............."


But when i run radtest; either with the username and password mentioned in the file as given above or the system username and password; it does not work.

Thanks in advance.

Regards,
Swati
Reply With Quote
  #6  
Old 11th October 2008, 18:55
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

I don't know FreeRadius, but is the colon in
Code:
"swat" Cleartext-Password := "swat"
correct?

And what about the two = signs in
Code:
Auth-Type = local, User-Password == mypasswd
and
Code:
"test" User-Password == "test"
?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #7  
Old 13th October 2008, 06:49
awan awan is offline
Junior Member
 
Join Date: Sep 2007
Posts: 23
Thanks: 0
Thanked 1 Time in 1 Post
 
Default Freeradius SErver config & integration with LDAP !

Swati,
Freeradius 2.0.5 or 2.X for that matter is a great product. It works with lots of configurations out-of-the-box.

I would suggest u to go back to the basics. Do a clean Install. enter a user in /etc/raddb/users (a plain text user) & test it with radtest. ( with this plaintext users even the freeradius 1.7 works out-of-the-box.)
Work it from there onwards. remember baby-steps. one thing at a time.
Good luck
--
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Best Linux Mail Server Configuration mnzava Server Operation 3 27th November 2007 18:29


All times are GMT +2. The time now is 18:46.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.