Problem: FreeRadius Authentication using LDAP

2011-11-08 Thread suggestme
Hi,

I have configured FreeRadius to authenticate against LDAP. I have installed
and configured FreeRadius in FreeBSD Server and LDAP is already set up in
another server. I configured as below: (Changes on file are shown on bold
letter)

*/usr/local/etc/raddb/modules/ldap :*


ldap {
 
 # Define the LDAP server and the base domain name
 
 server = *localhost* 
basedn = *dc=example,dc=com*
 
 # Define which attribute from an LDAP ldapsearch query
 # is the password. Create a filter to extract the password
 # from the ldapsearch output
 
 password_attribute = userPassword
 filter = (uid=%{Stripped-User-Name:-%{User-Name}})
 
 # The following are RADIUS defaults
 start_tls = no
 dictionary_mapping = ${raddbdir}/ldap.attrmap
 ldap_connections_number = 5
 timeout = 4
 timelimit = 3
 net_timeout = 1
}


*/usr/local/etc/raddb/sites-enabled/default :*

authorize {
...
...
#
#  The ldap module will set Auth-Type to LDAP if it has not
#  already been set
Ldap
...
...
}


Auth-Type LDAP {
 ldap
}

 Also, same type of modifications has been done on :

*/usr/local/etc/raddb/sites-enabled/inner-tunnel*


Also, change has been made to users file adding LDAP user authentication.

But when I run radiusd -X command to run freeradius on debug mode, it gives
following error:

/usr/local/etc/raddb/modules/ldap[29]: Failed to link to module 'rlm_ldap':
file not found
/usr/local/etc/raddb/sites-enabled/inner-tunnel[237]: Failed to load module
ldap.
/usr/local/etc/raddb/sites-enabled/inner-tunnel[237]: Failed to parse ldap
entry.


I don't know what to do? I would appreciate anyone's idea.

Should I need to configure anything if I have freeradius server on one
machine and LDAP server on another machine. They are not on same
machine/host.


Thanks









--
View this message in context: 
http://freeradius.1045715.n5.nabble.com/Problem-FreeRadius-Authentication-using-LDAP-tp4974896p4974896.html
Sent from the FreeRadius - User mailing list archive at Nabble.com.
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html


Re: Problem: FreeRadius Authentication using LDAP

2011-11-08 Thread Alan DeKok
suggestme wrote:
 But when I run radiusd -X command to run freeradius on debug mode, it gives
 following error:
 
 /usr/local/etc/raddb/modules/ldap[29]: Failed to link to module 'rlm_ldap':
 file not found
 /usr/local/etc/raddb/sites-enabled/inner-tunnel[237]: Failed to load module
 ldap.
 /usr/local/etc/raddb/sites-enabled/inner-tunnel[237]: Failed to parse ldap
 entry.

  This is in the FAQ.

  Alan DeKok.
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html


Re: Problem: FreeRadius Authentication using LDAP

2011-11-08 Thread suggestme
Alan,


Are you talking about the following FAQ:

http://wiki.freeradius.org/FAQ#How+do+I+make+CHAP+work+with+LDAP%3F

I have followed the same configuration method it has suggested.


Or is there any other FAQ which mentions about this error and method to
solve this?


Thank you so much for your suggestion.



--
View this message in context: 
http://freeradius.1045715.n5.nabble.com/Problem-FreeRadius-Authentication-using-LDAP-tp4974896p4975206.html
Sent from the FreeRadius - User mailing list archive at Nabble.com.
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html


Re: Problem: FreeRadius Authentication using LDAP

2011-11-08 Thread Alan DeKok
suggestme wrote:
 Are you talking about the following FAQ:

  No.  I meant the FAQ entry which talked about being unable to load a
module.  The example is rlm_mysql, but the underlying cause and solution
is the same.

  Alan DeKok.
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html