Size: 733
Comment:
|
Size: 907
Comment:
|
Deletions are marked like this. | Additions are marked like this. |
Line 1: | Line 1: |
RADIUS – LDAP HOWTO: | = SUMMARY = This is a simple guide on how to connect freeradius to an ldap server. |
Line 3: | Line 4: |
Step 1: Install freeradius | == Step 1: Install freeradius == |
Line 5: | Line 6: |
apt-get install freedius | {{{ apt-get install freeradius }}} |
Line 7: | Line 8: |
Step 2: Modify the following freeradius configurations file: | == Step 2: Modify the following freeradius configuration files: == |
Line 9: | Line 10: |
/etc/freeradius/clients.conf /etc/freeradius/users etc/freeradius/radiusd.conf |
* /etc/freeradius/clients.conf * /etc/freeradius/users * /etc/freeradius/radiusd.conf |
Line 13: | Line 14: |
Examples: | === /etc/freeradius/clients.conf === |
Line 15: | Line 16: |
/etc/freeradius/clients.conf | {{{ client x.x.x.x/x secret = secret } }}} === /etc/freeradius/users === |
Line 17: | Line 24: |
client x.x.x.x/x { secret = secret } /etc/freeradius/users |
{{{ user Auth-Type := LDAP }}} |
Line 23: | Line 28: |
user Auth-Type := LDAP | === /etc/freeradius/radiusd.conf === |
Line 25: | Line 30: |
/etc/freeradius/radiusd.conf |
{{{ |
Line 34: | Line 38: |
}}} | |
Line 35: | Line 40: |
Step 3: Restart freeradius | == Step 3: Restart freeradius == |
Line 37: | Line 42: |
/etc/init.d/freeradius restart | {{{ /etc/init.d/freeradius restart }}} ["BuildingALinuxDomain"] |
SUMMARY
This is a simple guide on how to connect freeradius to an ldap server.
Step 1: Install freeradius
apt-get install freeradius
Step 2: Modify the following freeradius configuration files:
- /etc/freeradius/clients.conf
- /etc/freeradius/users
- /etc/freeradius/radiusd.conf
/etc/freeradius/clients.conf
client x.x.x.x/x secret = secret }
/etc/freeradius/users
user Auth-Type := LDAP
/etc/freeradius/radiusd.conf
ldap { server = “x.x.x.x” identity = “cn=admin,dc=example,dc=com” password = password basedn = “dc=example,dc=com” filter = “(uid=%{Stripped-User-Name:-%{User-Name}})” }
Step 3: Restart freeradius
/etc/init.d/freeradius restart
["BuildingALinuxDomain"]