You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@whimsical.apache.org by "John D. Ament" <jo...@apache.org> on 2017/06/03 15:13:35 UTC

Local setup Question

I get the following error when trying to access the LDAP cert using the
first format.  Is that expected now?

ruby -r whimsy/asf -e "puts ASF::LDAP.cert"

-e:1:in `<main>': undefined method `cert' for ASF::LDAP:Module
(NoMethodError)

Re: Local setup Question

Posted by Sam Ruby <ru...@intertwingly.net>.
On Sat, Jun 3, 2017 at 11:13 AM, John D. Ament <jo...@apache.org> wrote:
> I get the following error when trying to access the LDAP cert using the
> first format.  Is that expected now?
>
> ruby -r whimsy/asf -e "puts ASF::LDAP.cert"
>
> -e:1:in `<main>': undefined method `cert' for ASF::LDAP:Module
> (NoMethodError)

My guess is that you have an old version of the whimsy-asf gem.

Try the following commands:

$ gem list whimsy-asf

*** LOCAL GEMS ***

whimsy-asf (0.0.77)

$ gem update whimsy-asf

- Sam Ruby

Re: Local setup Question

Posted by Sam Ruby <ru...@intertwingly.net>.
On Sat, Jun 3, 2017 at 11:28 AM, Shane Curcuru <as...@shanecurcuru.org> wrote:
> John D. Ament wrote on 6/3/17 11:13 AM:
>> I get the following error when trying to access the LDAP cert using the
>> first format.  Is that expected now?
>>
>> ruby -r whimsy/asf -e "puts ASF::LDAP.cert"
>>
>> -e:1:in `<main>': undefined method `cert' for ASF::LDAP:Module
>> (NoMethodError)
>
> Um, because there isn't a .cert method on the ASF::LDAP class?
>
> You *might* want this (although I'm not sure):
>
> ruby -r whimsy/asf -e "puts ASF::LDAP.extract_cert"
>
> I don't understand all the details, but I think the DEVELOPMENT.md doc
> is wrong, it looks like the method was changed back here:
>
> https://github.com/apache/whimsy/commit/7eaebbcbf477ef6efc87dcfec39b6af6e753912a

Good catch!  Fixed:
https://github.com/apache/whimsy/commit/31093167e927779b051195e962bf51451d55e65f

> Separately, you might be able to run setup stuff like the Mac setup
> instructions say:
>
> https://github.com/apache/whimsy/blob/master/MACOSX.md#configure-ldap
>
> Which is:
>
> $ cd <path-to-git-whimsy>
> $ sudo ruby -I whimsy/lib -r whimsy/asf -e "ASF::LDAP.configure"

That also works.

> - Shane

- Sam Ruby

Re: Local setup Question

Posted by Shane Curcuru <as...@shanecurcuru.org>.
John D. Ament wrote on 6/3/17 11:13 AM:
> I get the following error when trying to access the LDAP cert using the
> first format.  Is that expected now?
> 
> ruby -r whimsy/asf -e "puts ASF::LDAP.cert"
> 
> -e:1:in `<main>': undefined method `cert' for ASF::LDAP:Module
> (NoMethodError)

Um, because there isn't a .cert method on the ASF::LDAP class?

You *might* want this (although I'm not sure):

ruby -r whimsy/asf -e "puts ASF::LDAP.extract_cert"

I don't understand all the details, but I think the DEVELOPMENT.md doc
is wrong, it looks like the method was changed back here:

https://github.com/apache/whimsy/commit/7eaebbcbf477ef6efc87dcfec39b6af6e753912a

Separately, you might be able to run setup stuff like the Mac setup
instructions say:

https://github.com/apache/whimsy/blob/master/MACOSX.md#configure-ldap

Which is:

$ cd <path-to-git-whimsy>
$ sudo ruby -I whimsy/lib -r whimsy/asf -e "ASF::LDAP.configure"

- Shane

-- 

- Shane
  https://www.apache.org/foundation/marks/resources