Skip to content

Commit

Permalink
Add notes on %ldap.group() xlat
Browse files Browse the repository at this point in the history
  • Loading branch information
ndptech committed Nov 14, 2024
1 parent 89b6104 commit a163440
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions raddb/mods-available/ldap
Original file line number Diff line number Diff line change
Expand Up @@ -970,3 +970,24 @@ ldap {
# "The LDAP url is ldap:///ou=profiles,dc=example,dc=com??sub?(objectClass=radiusprofile)"
# ```
#
# ### %ldap.group(...)
#
# Check whether the current user is a member of a the given group. If the attribute
# `control.LDAP-UserDN` exists, that will be used as the "user" object. If it does
# not then the user is first looked up using the filter form the `user { }` section
# of the module configuration.
#
# Groups can be specified either as a name or a DN, with a lookup used if necessary
# to convert to the required format.
#
# .Return: _bool_
#
# .Example
#
# [source,unlang]
# ---
# if (%ldap.group('cn=group1,ou=Groups,dc=example,dc=org')) {
# ...
# }
# ---
#

0 comments on commit a163440

Please sign in to comment.