Differences between revisions 5 and 8 (spanning 3 versions)
Revision 5 as of 2007-05-03 00:43:04
Size: 879
Editor: ?dodgerfan78
Comment:
Revision 8 as of 2007-05-03 01:28:34
Size: 907
Editor: ?dodgerfan78
Comment:
Deletions are marked like this. Additions are marked like this.
Line 6: Line 6:
 apt-get install freeradius {{{ apt-get install freeradius }}}
Line 16: Line 16:
client x.x.x.x/x {[[BR]]
 secret = secret [[BR]]
}   
{{{
client x.x.x.x/x
 secret = secret
}
 
}}}
Line 22: Line 24:
{{{
Line 23: Line 26:
}}}
Line 26: Line 30:
{{{
Line 27: Line 32:
      server = “x.x.x.x” [[BR]]
      identity = “cn=admin,dc=example,dc=com” [[BR]]
      password = password[[BR]]
      basedn = “dc=example,dc=com”[[BR]]
      filter = “(uid=%{Stripped-User-Name:-%{User-Name}})”[[BR]]
      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}})”
Line 33: Line 38:
}}}
Line 36: 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"]