whimsical-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ru...@apache.org
Subject [whimsy] branch master updated: prep work for auto configuring macs
Date Sun, 24 Nov 2019 15:17:26 GMT
This is an automated email from the ASF dual-hosted git repository.

rubys 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 255da5d  prep work for auto configuring macs
255da5d is described below

commit 255da5ddd2c58596e255cc3e850290ba06d9e8a7
Author: Sam Ruby <rubys@intertwingly.net>
AuthorDate: Sun Nov 24 10:16:54 2019 -0500

    prep work for auto configuring macs
---
 asf.gemspec            | 1 +
 lib/whimsy/asf/ldap.rb | 5 +++++
 2 files changed, 6 insertions(+)

diff --git a/asf.gemspec b/asf.gemspec
index fb68567..6ac263a 100644
--- a/asf.gemspec
+++ b/asf.gemspec
@@ -27,6 +27,7 @@ Gem::Specification.new do |s|
   s.add_dependency("tzinfo")
   s.add_dependency("tzinfo-data")
   s.add_dependency("wunderbar")
+  s.add_dependency("rdoc")
 
   # If your tests use any gems, include them here
   # s.add_development_dependency("mocha") # for example
diff --git a/lib/whimsy/asf/ldap.rb b/lib/whimsy/asf/ldap.rb
index e269700..6cd23e8 100644
--- a/lib/whimsy/asf/ldap.rb
+++ b/lib/whimsy/asf/ldap.rb
@@ -259,6 +259,11 @@ module ASF
       File.write(ldap_conf, content) unless content == File.read(ldap_conf)
     end
 
+    # determine if ldap has been configured atleast once
+    def self.configured?
+      return File.read("#{ETCLDAP}/ldap.conf").include? "asf-ldap-client.pem"
+    end
+
     # modify an entry in LDAP; dump information on LDAP errors
     def self.modify(dn, list)
       ASF.ldap.modify(dn, list)


Mime
View raw message