Skip to content

Commit

Permalink
Feature: Autogenerated ou for ejabberd base LDAP authentication setti…
Browse files Browse the repository at this point in the history
…ng for ejabberd
  • Loading branch information
Theo Cushion committed Nov 13, 2009
1 parent b5a3317 commit 475cdbe
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions ejabberd/recipes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -90,4 +90,11 @@
owner ejabberd[:user]
group ejabberd[:user]
mode 0640
end

if ejabberd[:auth_method][:ldap]
ldap_add ejabberd[:auth_method][:ldap][:base] do
attributes :objectclass => ["organizationalUnit"],
:ou => /\Aou=([^,]+)/.match(ejabberd[:auth_method][:ldap][:base]).to_a[1]
end
end

0 comments on commit 475cdbe

Please sign in to comment.