This is an automated email from the ASF dual-hosted git repository.

sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git


The following commit(s) were added to refs/heads/master by this push:
     new baf6dcb8 Make it easier to use ldapsearch in shell
baf6dcb8 is described below

commit baf6dcb8a94f7d07c9cd71fd16d59cbe57798861
Author: Sebb <[email protected]>
AuthorDate: Mon Sep 16 23:32:37 2024 +0100

    Make it easier to use ldapsearch in shell
---
 Rakefile | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/Rakefile b/Rakefile
index fb6a1e2b..15035af5 100644
--- a/Rakefile
+++ b/Rakefile
@@ -458,6 +458,11 @@ def ldap_setup
     '/etc/apache2/sites-enabled/000-default.conf', ldaphosts, ldapbinddn, 
ldapbindpw)
   filter('docker-config/25-authz_ldap_group_membership.conf',
     '/etc/apache2/conf-enabled/25-authz_ldap_group_membership.conf', 
ldaphosts, ldapbinddn, ldapbindpw)
+  # Add the URI and BASE for use by ldapsearch from shell
+  File.open("/etc/ldap/ldap.conf",'a+') do |f|
+    f.puts "URI #{hosts.join(' ')}"
+    f.puts "BASE dc=apache,dc=org"
+  end
 end
 
 # Docker support

Reply via email to