LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 10-28-2008, 11:11 AM   #1
netmaster3620
LQ Newbie
 
Registered: Dec 2005
Posts: 4

Rep: Reputation: 0
Freeradius LDAP Authentication


I am trying to get Freeradius to authenticate against an LDAP. We have a captive portal for our wireless system that allows us to point to a radius server for authentication.

I have installed free radius on Ubuntu Linus as well as the freeradius-ldap module. In the radiusd.conf file I have set the AuthType to LDAP. Under the LDAP configuration I have configured the LDAP Server.

When I am tail the radius.log file I see the following error:

Tue Oct 28 11:26:25 2008 : Error: rlm_ldap: ldap_search() failed: Bad search filter: (posixAccount)(uid=))

This error only occurs if the filter under the LDAP configuration is set to:
filter = "(posixAccount)(uid=%u))"

With the above setting I can see the authentication requests comming through when testing the LDAP connection.

If I set the filter back to the default nothing shows up in the log file. I have listed the default below.

filter = "(uid=%{Stripped-User-Name:-%{User-Name}})"

Unfortunately I have no way of knowing if Freeradius is even hitting the LDAP. In the client that I am using for testing I am receiving an access rejected error message.

I know that Freeradius is working because I have been able to successfully authenticate using a local unix user.

To date I have not had any luck finding good documentation on setting up LDAP authentication on Freeradius.

Any ideas?
 
Old 11-20-2008, 11:36 AM   #2
DisasterArea03
LQ Newbie
 
Registered: Nov 2008
Location: Allentown, PA
Distribution: Ubuntu, Fedora
Posts: 1

Rep: Reputation: 0
You should leave the default filter... your group filter should look like this:

groupmembership_filter = (&(objectClass=posixGroup)(memberUid=%{Stripped-User-Name:-%{User-Name}}))

Or, you could change the filter to be:

filter = "(&(objectClass=posixAccount)(cn=%{Stripped-User-Name:-%{User-Name}}))"

The objectClass can be changed, but the syntax you have won't work. Also, are you trying to do EAP? If you set Auth-Type = ldap then it will not work. In most cases, you don't need to set that feature. You can run FreeRADIUS in debugging mode to find out if it's hitting LDAP... just type "freeradius -X" and check the output. I hope this helps a bit

Last edited by DisasterArea03; 11-20-2008 at 11:37 AM. Reason: objectClass edit
 
  


Reply

Tags
freeradius



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
freeRADIUS authentication issues metallica1973 Linux - Networking 2 07-07-2008 01:39 AM
Configuring freeradius with wap-eap authentication nathan_sas Linux - Newbie 0 06-26-2008 01:49 AM
FreeRADIUS to give 802.1x keys without authentication saprouzy Linux - Software 0 04-16-2007 03:57 AM
Freeradius Authentication in Daemon Mode randalmeister Linux - Server 0 10-13-2006 02:48 PM
Authentication through freeRADIUS abdullahgee Linux - Security 3 06-17-2004 01:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 07:15 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration