Skip to content

Commit

Permalink
Fix formatting in LDAP config file
Browse files Browse the repository at this point in the history
  • Loading branch information
arr2036 committed Mar 21, 2014
1 parent 1d12b84 commit 45d082b
Showing 1 changed file with 31 additions and 33 deletions.
64 changes: 31 additions & 33 deletions raddb/mods-available/ldap
Expand Up @@ -6,14 +6,12 @@
# Lightweight Directory Access Protocol (LDAP)
#
ldap {
#
# Note that this needs to match the name in the LDAP
# server certificate, if you're using ldaps.
# Note that this needs to match the name in the LDAP server
# certificate, if you're using ldaps.
server = "ldap.example.org"

# Port to connect on, defaults to 389. Setting this to
# 636 will enable LDAPS if start_tls (see below) is not
# able to be used.
# Port to connect on, defaults to 389. Setting this to 636 will enable
# LDAPS if start_tls (see below) is not able to be used.
# port = 389

# Administrator account for searching and possibly modifying.
Expand All @@ -24,6 +22,24 @@ ldap {
# searches will start from.
# base_dn = "dc=example,dc=org"

#
# Generic valuepair attribute
# If set, this will attribute will be retrieved in addition to any
# mapped attributes.
#
# Values should be in the format:
# <radius attr> <op> <value>
#
# Where:
# <radius attr>: Is the attribute you wish to create
# with any valid list and request qualifiers.
# <op>: Is any assignment attribute (=, :=, +=, -=).
# <value>: Is the value to parse into the new valuepair.
# If the attribute name is wrapped in double
# quotes it will be xlat expanded.
#
# valuepair_attribute = "radiusAttribute"

#
# Mapping of LDAP directory attributes to RADIUS dictionary attributes.
#
Expand Down Expand Up @@ -58,25 +74,7 @@ ldap {
# reply:Tunnel-Type := 'radiusTunnelType'
# reply:Tunnel-Medium-Type := 'radiusTunnelMediumType'
# reply:Tunnel-Private-Group-ID := 'radiusTunnelPrivategroupId'
}

#
# Generic valuepair attribute
# If set, this will attribute will be retrieved in addition to any
# mapped attributes.
#
# Values should be in the format:
# <radius attr> <op> <value>
#
# Where:
# <radius attr>: Is the attribute you wish to create
# with any valid list and request qualifiers.
# <op>: Is any assignment attribute (=, :=, +=, -=).
# <value>: Is the value to parse into the new valuepair.
# If the attribute name is wrapped in double
# quotes it will be xlat expanded.
#
# valuepair_attribute = "radiusAttribute"

# Set to yes if you have eDirectory and want to use the universal
# password mechanism.
Expand All @@ -94,7 +92,7 @@ ldap {
# ldap
# if ((ok || updated) && User-Password) {
# update {
# control:Auth-Type := ldap
# control:Auth-Type := ldap
# }
# }

Expand Down Expand Up @@ -237,8 +235,8 @@ ldap {
# Arbitrary attributes (accessible by %{client:<attr>}) are not yet supported.
#
# The following attributes are required:
# * identifier - IPv4 address, or IPv4 address with prefix, or hostname)
# * secret - RADIUS shared secret
# * identifier - IPv4 address, or IPv4 address with prefix, or hostname.
# * secret - RADIUS shared secret.
#
# The following attributes are optional:
# * shortname - Friendly name associated with the client
Expand All @@ -250,12 +248,12 @@ ldap {
# Schemas are available in doc/schemas/ldap for openldap and eDirectory
#
attribute {
identifier = 'radiusClientIdentifier'
secret = 'radiusClientSecret'
# shortname = 'radiusClientShortname'
# nas_type = 'radiusClientType'
# virtual_server = 'radiusClientVirtualServer'
# require_message_authenticator = 'radiusClientRequireMa'
identifier = 'radiusClientIdentifier'
secret = 'radiusClientSecret'
# shortname = 'radiusClientShortname'
# nas_type = 'radiusClientType'
# virtual_server = 'radiusClientVirtualServer'
# require_message_authenticator = 'radiusClientRequireMa'
}
}

Expand Down

0 comments on commit 45d082b

Please sign in to comment.