Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Projets publics
puppet-freeradius
Commits
98b27162
Commit
98b27162
authored
Nov 18, 2015
by
Jonathan Gazeley
Browse files
Add support for using multiple LDAP servers
parent
eb77d6cc
Changes
4
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
98b27162
...
...
@@ -374,8 +374,8 @@ Password for the `identity` account. Required.
Unless overridden in another section, the dn from which all searches will start from. Required.
##### `server`
H
ostname o
f
IP address of the LDAP server. Note that this needs to match the name(s) in the LDAP
server
certificate, if you're using ldaps. Default:
`localhost`
Array of h
ostname
s
o
r
IP address
es
of the LDAP server
(s)
. Note that this needs to match the name(s) in the LDAP
server
certificate, if you're using ldaps. Default:
[
`localhost`
]
##### `port`
Port to connect to the LDAP server on. Default:
`389`
...
...
manifests/ldap.pp
View file @
98b27162
...
...
@@ -3,7 +3,7 @@ define freeradius::ldap (
$identity
,
$password
,
$basedn
,
$server
=
'localhost'
,
$server
=
[
'localhost'
]
,
$port
=
389
,
$uses
=
0
,
$idle
=
60
,
...
...
templates/ldap.fr2.erb
View file @
98b27162
...
...
@@ -30,7 +30,11 @@ ldap <%= @name %> {
#
# Note that this needs to match the name in the LDAP
# server certificate, if you're using ldaps.
server = "
<%=
@server
%>
"
#
#
<%
@server
.
each
do
|
srv
|
-%>
server = "
<%=
srv
%>
"
<%
end
-%>
identity = "
<%=
@identity
%>
"
password =
<%=
@password
%>
basedn = "
<%=
@basedn
%>
"
...
...
templates/ldap.fr3.erb
View file @
98b27162
...
...
@@ -16,7 +16,10 @@ ldap <%= @name %> {
# - ldaps:// (LDAP over SSL)
# - ldapi:// (LDAP over Unix socket)
# - ldapc:// (Connectionless LDAP)
server = '
<%=
@server
%>
'
<%
@server
.
each
do
|
srv
|
-%>
server = '
<%=
srv
%>
'
<%
end
-%>
# server = '
<%=
@server
%>
'
# server = 'ldap.rrdns.example.org'
# server = 'ldap.rrdns.example.org'
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment