google-code-export / ruby-activeldap

Automatically exported from code.google.com/p/ruby-activeldap
Other
1 stars 1 forks source link

rails3 support #50

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Try to use ActiveLdap with rails3
2. Fail

With rails3 in RC, it's probably time to start looking at compatibility.

Should probably look at migrating to fast_gettext 
http://github.com/grosser/fast_gettext since it's better in various ways, and 
already supports rails3.

Following that, ActiveLdap::Validations will need some refactoring to come into 
line with the various validation changes in rails3.

Original issue reported on code.google.com by spoidar@gmail.com on 1 Aug 2010 at 7:00

GoogleCodeExporter commented 9 years ago
Are you interested in implementing it?
If your answer is true, we hope you to help us. :-)

Original comment by kou...@gmail.com on 1 Aug 2010 at 7:28

GoogleCodeExporter commented 9 years ago
I'm certainly willing to try - I've started work on it, but it's probably going 
to take me a while to understand what you're doing in some areas and I may need 
some help - I'm failing a whole bunch of tests at the moment.

Original comment by spoidar@gmail.com on 1 Aug 2010 at 2:14

GoogleCodeExporter commented 9 years ago
Thanks!!!

I'm not doing Rails 3 area. Our works will not be conflicted.

All tests are passed on your environment with Rails 2.3.8? If some tests are 
failed on your environment with Rails 2.3.8. We will start to fix them before 
we start to support Rails 3.

If all tests are passed with Rails 2.3.8. OK. We can go to the next step.

It seems that supporting fast_gettext is the first step. Do you think about the 
first step?

Original comment by kou...@gmail.com on 2 Aug 2010 at 11:58

GoogleCodeExporter commented 9 years ago
I've created a github mirror (auto-syncs with the SVN repo here) so I can work 
on a rails3 branch: http://github.com/pdf/ruby-activeldap

However, I have serious problems getting any environment passing tests with 
Rails 2.3.8 (haven't tried previous versions yet).  What are the requirements 
for getting the tests to pass (or even vaguely work)?

On ruby-1.8.7-p299 I get:

./test/test_associations.rb:6: undefined method `priority' for 
TestAssociations:Class (NoMethodError)

And then it dies completely...

On ruby-1.9.1-p429 I have problems with almost all tests due to gettext:

test_parent(TestActsAsTree) 
[/home/spoidar/workspace/ruby-activeldap/test/test_acts_as_tree.rb:42]:
<ArgumentError> exception expected but was
Class: <NoMethodError>
Message: <"undefined method `split' for nil:NilClass">
---Backtrace---
/home/spoidar/.rvm/gems/ruby-1.9.1-p429/gems/gettext-2.1.0/lib/gettext/runtime/c
lass_info.rb:33:in `related_classes_internal'
/home/spoidar/.rvm/gems/ruby-1.9.1-p429/gems/gettext-2.1.0/lib/gettext/runtime/c
lass_info.rb:59:in `related_classes'
/home/spoidar/.rvm/gems/ruby-1.9.1-p429/gems/locale-2.0.5/lib/locale/util/memoiz
able.rb:80:in `block in related_classes'
/home/spoidar/.rvm/gems/ruby-1.9.1-p429/gems/locale-2.0.5/lib/locale/util/memoiz
able.rb:87:in `_memoize'
/home/spoidar/.rvm/gems/ruby-1.9.1-p429/gems/locale-2.0.5/lib/locale/util/memoiz
able.rb:79:in `related_classes'
/home/spoidar/.rvm/gems/ruby-1.9.1-p429/gems/gettext-2.1.0/lib/gettext/runtime/t
extdomain_manager.rb:79:in `each_textdomains'
/home/spoidar/.rvm/gems/ruby-1.9.1-p429/gems/gettext-2.1.0/lib/gettext/runtime/t
extdomain_manager.rb:102:in `translate_singluar_message'
/home/spoidar/.rvm/gems/ruby-1.9.1-p429/gems/gettext-2.1.0/lib/gettext.rb:128:in
 `gettext'
/home/spoidar/workspace/ruby-activeldap/lib/active_ldap/acts/tree.rb:66:in 
`parent='
/home/spoidar/workspace/ruby-activeldap/test/test_acts_as_tree.rb:43:in `block 
in test_parent'
/home/spoidar/workspace/ruby-activeldap/test/test_acts_as_tree.rb:42:in 
`test_parent'

Am I missing something obvious?

Original comment by spoidar@gmail.com on 3 Aug 2010 at 4:12

GoogleCodeExporter commented 9 years ago
Gem list may help:

*** LOCAL GEMS ***

actionmailer (2.3.8)
actionpack (2.3.8)
activerecord (2.3.8)
activeresource (2.3.8)
activesupport (2.3.8)
gettext (2.1.0)
gettext_activerecord (2.1.0)
gettext_rails (2.1.0)
hoe (2.6.1)
json_pure (1.4.3)
locale (2.0.5)
locale_rails (2.0.5)
net-ldap (0.1.1)
rack (1.1.0)
rails (2.3.8)
rake (0.8.7)
rdoc (2.5.9)
rubyforge (2.0.4)
test-unit (2.1.1)
test-unit-full (0.0.2)
test-unit-notify (0.0.1)
test-unit-runner-fox (0.0.1)
test-unit-runner-gtk2 (0.0.1)
test-unit-runner-tk (0.0.1)

Original comment by spoidar@gmail.com on 3 Aug 2010 at 4:17

GoogleCodeExporter commented 9 years ago
It seems that test-unit 2.x isn't used.
I've modified test/run-test.rb to use test-unit 2.x gem if test-unit/ directory 
doesn't exist on working copy.

Could you try again?

Original comment by kou...@gmail.com on 4 Aug 2010 at 12:14

GoogleCodeExporter commented 9 years ago
Need to add `require 'rubygems'` to run-test.rb.  Much closer now - only 
failing a the nested attribute tests on 1.8.7.

Original comment by spoidar@gmail.com on 4 Aug 2010 at 1:50

GoogleCodeExporter commented 9 years ago
OK. I've added it.

Could you show your test result?

Original comment by kou...@gmail.com on 4 Aug 2010 at 2:20

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
  1) Failure:
test_add_entry_with_attribute_with_nested_options(TestBase)
    [./test/test_base.rb:72:in `test_add_entry_with_attribute_with_nested_options'
     /home/spoidar/workspace/ruby-activeldap/test/al-test-utils.rb:346:in `ensure_delete_user'
     ./test/test_base.rb:59:in `test_add_entry_with_attribute_with_nested_options']:
Exception raised:
Class: <ActiveLdap::LdapError::UndefinedType>
Message: <"Undefined attribute type">
---Backtrace---
/home/spoidar/workspace/ruby-activeldap/lib/active_ldap/adapter/ldap_ext.rb:102:
in `assert_error_code'
/home/spoidar/workspace/ruby-activeldap/lib/active_ldap/adapter/ldap.rb:181:in 
`execute'
/home/spoidar/workspace/ruby-activeldap/lib/active_ldap/adapter/ldap.rb:134:in 
`add'
/home/spoidar/workspace/ruby-activeldap/lib/active_ldap/adapter/base.rb:201:in 
`add'
/home/spoidar/workspace/ruby-activeldap/lib/active_ldap/adapter/base.rb:270:in 
`operation'
/home/spoidar/.rvm/rubies/ruby-1.8.7-p299/lib/ruby/1.8/timeout.rb:53:in 
`timeout'
/home/spoidar/workspace/ruby-activeldap/lib/active_ldap/adapter/ldap.rb:187:in 
`do_in_timeout'
/home/spoidar/workspace/ruby-activeldap/lib/active_ldap/adapter/base.rb:316:in 
`with_timeout'
/home/spoidar/workspace/ruby-activeldap/lib/active_ldap/adapter/base.rb:269:in 
`operation'
/home/spoidar/workspace/ruby-activeldap/lib/active_ldap/adapter/base.rb:200:in 
`add'
/home/spoidar/workspace/ruby-activeldap/lib/active_ldap/adapter/ldap.rb:126:in 
`add'
/home/spoidar/workspace/ruby-activeldap/lib/active_ldap/operations.rb:551:in 
`add_entry'
/home/spoidar/workspace/ruby-activeldap/lib/active_ldap/base.rb:1566:in 
`create_without_callbacks'
/home/spoidar/workspace/ruby-activeldap/lib/active_ldap/base.rb:1548:in 
`prepare_data_for_saving'
/home/spoidar/workspace/ruby-activeldap/lib/active_ldap/base.rb:1564:in 
`create_without_callbacks'
/home/spoidar/.rvm/gems/ruby-1.8.7-p299/gems/activerecord-2.3.8/lib/active_recor
d/callbacks.rb:266:in `create'
/home/spoidar/workspace/ruby-activeldap/lib/active_ldap/base.rb:1532:in 
`create_or_update_without_callbacks'
/home/spoidar/.rvm/gems/ruby-1.8.7-p299/gems/activerecord-2.3.8/lib/active_recor
d/callbacks.rb:250:in `create_or_update'
/home/spoidar/workspace/ruby-activeldap/lib/active_ldap/base.rb:819:in 
`save_without_validation!'
/home/spoidar/.rvm/gems/ruby-1.8.7-p299/gems/activerecord-2.3.8/lib/active_recor
d/validations.rb:1100:in `save_without_active_ldap_support!'
/home/spoidar/workspace/ruby-activeldap/lib/active_ldap/validations.rb:57:in 
`save!'
./test/test_base.rb:73:in `test_add_entry_with_attribute_with_nested_options'
./test/test_base.rb:72:in `test_add_entry_with_attribute_with_nested_options'
/home/spoidar/workspace/ruby-activeldap/test/al-test-utils.rb:346:in 
`ensure_delete_user'
./test/test_base.rb:59:in `test_add_entry_with_attribute_with_nested_options'
---------------

  2) Failure:
test_modify_entry_with_attribute_with_nested_options(TestBase)
    [./test/test_base.rb:52:in `test_modify_entry_with_attribute_with_nested_options'
     /home/spoidar/workspace/ruby-activeldap/test/al-test-utils.rb:320:in `make_temporary_user'
     /home/spoidar/workspace/ruby-activeldap/test/al-test-utils.rb:298:in `make_temporary_user'
     /home/spoidar/workspace/ruby-activeldap/test/al-test-utils.rb:346:in `ensure_delete_user'
     /home/spoidar/workspace/ruby-activeldap/test/al-test-utils.rb:292:in `make_temporary_user'
     ./test/test_base.rb:48:in `test_modify_entry_with_attribute_with_nested_options']:
Exception raised:
Class: <ActiveLdap::LdapError::UndefinedType>
Message: <"Undefined attribute type">
---Backtrace---
/home/spoidar/workspace/ruby-activeldap/lib/active_ldap/adapter/ldap_ext.rb:102:
in `assert_error_code'
/home/spoidar/workspace/ruby-activeldap/lib/active_ldap/adapter/ldap.rb:181:in 
`execute'
/home/spoidar/workspace/ruby-activeldap/lib/active_ldap/adapter/ldap.rb:148:in 
`modify'
/home/spoidar/workspace/ruby-activeldap/lib/active_ldap/adapter/base.rb:223:in 
`modify'
/home/spoidar/workspace/ruby-activeldap/lib/active_ldap/adapter/base.rb:270:in 
`operation'
/home/spoidar/.rvm/rubies/ruby-1.8.7-p299/lib/ruby/1.8/timeout.rb:53:in 
`timeout'
/home/spoidar/workspace/ruby-activeldap/lib/active_ldap/adapter/ldap.rb:187:in 
`do_in_timeout'
/home/spoidar/workspace/ruby-activeldap/lib/active_ldap/adapter/base.rb:316:in 
`with_timeout'
/home/spoidar/workspace/ruby-activeldap/lib/active_ldap/adapter/base.rb:269:in 
`operation'
/home/spoidar/workspace/ruby-activeldap/lib/active_ldap/adapter/base.rb:221:in 
`modify'
/home/spoidar/workspace/ruby-activeldap/lib/active_ldap/adapter/ldap.rb:140:in 
`modify'
/home/spoidar/workspace/ruby-activeldap/lib/active_ldap/operations.rb:560:in 
`modify_entry'
/home/spoidar/workspace/ruby-activeldap/lib/active_ldap/base.rb:1575:in 
`update_without_callbacks'
/home/spoidar/workspace/ruby-activeldap/lib/active_ldap/base.rb:1548:in 
`prepare_data_for_saving'
/home/spoidar/workspace/ruby-activeldap/lib/active_ldap/base.rb:1573:in 
`update_without_callbacks'
/home/spoidar/.rvm/gems/ruby-1.8.7-p299/gems/activerecord-2.3.8/lib/active_recor
d/callbacks.rb:282:in `update'
/home/spoidar/workspace/ruby-activeldap/lib/active_ldap/base.rb:1532:in 
`create_or_update_without_callbacks'
/home/spoidar/.rvm/gems/ruby-1.8.7-p299/gems/activerecord-2.3.8/lib/active_recor
d/callbacks.rb:250:in `create_or_update'
/home/spoidar/workspace/ruby-activeldap/lib/active_ldap/base.rb:819:in 
`save_without_validation!'
/home/spoidar/.rvm/gems/ruby-1.8.7-p299/gems/activerecord-2.3.8/lib/active_recor
d/validations.rb:1100:in `save_without_active_ldap_support!'
/home/spoidar/workspace/ruby-activeldap/lib/active_ldap/validations.rb:57:in 
`save!'
./test/test_base.rb:53:in `test_modify_entry_with_attribute_with_nested_options'
./test/test_base.rb:52:in `test_modify_entry_with_attribute_with_nested_options'
/home/spoidar/workspace/ruby-activeldap/test/al-test-utils.rb:320:in 
`make_temporary_user'
/home/spoidar/workspace/ruby-activeldap/test/al-test-utils.rb:298:in 
`make_temporary_user'
/home/spoidar/workspace/ruby-activeldap/test/al-test-utils.rb:346:in 
`ensure_delete_user'
/home/spoidar/workspace/ruby-activeldap/test/al-test-utils.rb:292:in 
`make_temporary_user'
./test/test_base.rb:48:in `test_modify_entry_with_attribute_with_nested_options'
---------------

  3) Failure:
test_retry_limit_0_with_nonexistent_host_with_timeout(TestConnection) 
[./test/test_connection.rb:30]:
<ActiveLdap::TimeoutError> exception expected but was
Class: <ActiveLdap::ConnectionError>
Message: <"Giving up trying to reconnect to LDAP server.">
---Backtrace---
/home/spoidar/workspace/ruby-activeldap/lib/active_ldap/adapter/base.rb:596:in 
`reconnect'
/home/spoidar/workspace/ruby-activeldap/lib/active_ldap/adapter/base.rb:573:in 
`loop'
/home/spoidar/workspace/ruby-activeldap/lib/active_ldap/adapter/base.rb:573:in 
`reconnect'
/home/spoidar/workspace/ruby-activeldap/lib/active_ldap/adapter/base.rb:610:in 
`reconnect_if_need'
/home/spoidar/.rvm/rubies/ruby-1.8.7-p299/lib/ruby/1.8/timeout.rb:67:in 
`timeout'
/home/spoidar/workspace/ruby-activeldap/lib/active_ldap/adapter/ldap.rb:187:in 
`do_in_timeout'
/home/spoidar/workspace/ruby-activeldap/lib/active_ldap/adapter/base.rb:316:in 
`with_timeout'
/home/spoidar/workspace/ruby-activeldap/lib/active_ldap/adapter/base.rb:609:in 
`reconnect_if_need'
/home/spoidar/workspace/ruby-activeldap/lib/active_ldap/adapter/base.rb:267:in 
`operation'
/home/spoidar/workspace/ruby-activeldap/lib/active_ldap/adapter/base.rb:166:in 
`search'
/home/spoidar/workspace/ruby-activeldap/lib/active_ldap/adapter/ldap.rb:83:in 
`search'
/home/spoidar/workspace/ruby-activeldap/lib/active_ldap/operations.rb:66:in 
`search'
/home/spoidar/workspace/ruby-activeldap/lib/active_ldap/operations.rb:285:in 
`find_every'
/home/spoidar/workspace/ruby-activeldap/lib/active_ldap/operations.rb:258:in 
`find_initial'
/home/spoidar/workspace/ruby-activeldap/lib/active_ldap/operations.rb:223:in 
`find'
./test/test_connection.rb:31:in 
`test_retry_limit_0_with_nonexistent_host_with_timeout'
./test/test_connection.rb:30:in 
`test_retry_limit_0_with_nonexistent_host_with_timeout'
---------------

Original comment by spoidar@gmail.com on 4 Aug 2010 at 3:23

GoogleCodeExporter commented 9 years ago
Could you enable attribute option on LDAP server for the failure 1 and 2?

If you are using OpenLDAP, please add the following line to slapd.conf and 
restart slapd:

  attributeoptions lang- phonetic

We need to look into the failure 3.

Original comment by kou...@gmail.com on 4 Aug 2010 at 4:13

GoogleCodeExporter commented 9 years ago
Yeah, I knew the nested_options failures were configuration-related based on 
"Undefined attribute type", which is why I didn't post them originally.  Thanks 
for the tip (I'm using recent openldap with dynamic config, so had to modify 
cn=config and add olcAttributeOptions: lang- phonetic).

Those tests now pass.

Original comment by spoidar@gmail.com on 4 Aug 2010 at 5:18

GoogleCodeExporter commented 9 years ago
OK. We will ignore the failure 3 for now.

If you agree with the first work (migrating to fast_gettext from 
GetText-Package), could you try it? If you don't agree with it, please give me 
a suggestion.

Original comment by kou...@gmail.com on 4 Aug 2010 at 6:11

GoogleCodeExporter commented 9 years ago
I'll give it a try, will let you know if I get stuck.

Original comment by spoidar@gmail.com on 4 Aug 2010 at 6:14

GoogleCodeExporter commented 9 years ago
Well, I'm nearly done with fast_gettext, only thing I need to resolve is 
ActiveRecord errors.add() won't replace the %{fn} in the messages, even though 
it appears to be passed correctly, so I'm getting:

Failure:
test_dn_validate_on_new(TestValidation) [./test/test_validation.rb:79]:
<["distinguishedName is invalid: uid==,ou=Users,dc=activeldap is invalid 
distinguished name (DN): attribute value is missing"]> expected but was
<["distinguishedName %{fn} is invalid: uid==,ou=Users,dc=activeldap is invalid 
distinguished name (DN): attribute value is missing"]>

Will update if I can work out why...

Original comment by spoidar@gmail.com on 4 Aug 2010 at 2:17

GoogleCodeExporter commented 9 years ago
Great!!!
I'll wait for your remained work.

Original comment by kou...@gmail.com on 5 Aug 2010 at 5:32

GoogleCodeExporter commented 9 years ago
Okay - according to grosser, %{fn} is not (and will not be, in the foreseeable 
future) supported by fast_gettext.  As a result, I removed it from all the 
translations.  The alternative would be to sub it out whenever we see it, and 
if you'd prefer I can do it that way.  Code is at 
http://github.com/pdf/ruby-activeldap/commits/fast_gettext if you want to 
review it.  There are two commits - one for the initial work on support, and 
the second for removal of %{fn}.

I've started on rails3, and made good progress so far.  Currently the 
associations are causing me some issues (I think the before_save callback is 
failing to execute - I have been struggling with the inline eval).  Once I get 
that working I think we'll be pretty close.

Original comment by spoidar@gmail.com on 10 Aug 2010 at 3:50

GoogleCodeExporter commented 9 years ago
And having posted the last message I now seem to have resolved the before_save 
callback :)

So, working through the remaining dozen or so test failures/errors.

Original comment by spoidar@gmail.com on 10 Aug 2010 at 4:00

GoogleCodeExporter commented 9 years ago
Could you commit your changes to the ActiveLdap repository on code.google.com?
I've added you to the committer list in the ActiveLdap project.

Original comment by kou...@gmail.com on 12 Aug 2010 at 5:16

GoogleCodeExporter commented 9 years ago
Okay, before I merge here I'll need to make a few more changes - tweak the 
rakefile and make the example app work, do you want me to push to trunk, or to 
a branch?

Original comment by spoidar@gmail.com on 12 Aug 2010 at 2:50

GoogleCodeExporter commented 9 years ago
trunk, please!

Original comment by kou...@gmail.com on 12 Aug 2010 at 10:19

GoogleCodeExporter commented 9 years ago
Sorry for the delay - haven't had much time to work on this past couple of 
weeks.  I've committed the fast_gettext changes, hope everything made it across 
from git - I'd have to rewrite the commit history for `git svn dcommit` to work 
(url change from http -> https), which I'm not game to try just now.

Original comment by spoidar@gmail.com on 22 Aug 2010 at 9:18

GoogleCodeExporter commented 9 years ago
Thanks!
I hope that you keep your great work!

Original comment by kou...@gmail.com on 24 Aug 2010 at 11:43

GoogleCodeExporter commented 9 years ago
What else needs to be done to make this happen?

Original comment by techmi...@gmail.com on 14 Sep 2010 at 8:34

GoogleCodeExporter commented 9 years ago
Been flat out with other commitments recently, can commit current progress to 
my git mirror if you want to help out - I actually haven't solved the callback 
yet.

Original comment by spoidar@gmail.com on 15 Sep 2010 at 3:53

GoogleCodeExporter commented 9 years ago

Original comment by spoidar@gmail.com on 15 Sep 2010 at 3:54

GoogleCodeExporter commented 9 years ago
Yea, what help can be offered to get this pushed along?

Original comment by ache...@gmail.com on 30 Sep 2010 at 6:20

GoogleCodeExporter commented 9 years ago
You can check out my first pass at rails3 from:

http://github.com/pdf/ruby-activeldap/tree/rails3

Needs a fair bit of work, please fork and contribute - I'm heavily committed to 
other projects at the moment.

Original comment by spoidar@gmail.com on 1 Oct 2010 at 7:52

GoogleCodeExporter commented 9 years ago
What percentage of tests were passing for you? Just to make sure i'm starting 
from the right point...

Original comment by ache...@gmail.com on 3 Oct 2010 at 6:09

GoogleCodeExporter commented 9 years ago
With rails 3.0.1 and ruby 1.8.7-p999, I get 86.2944% passed, probably less with 
1.9.x...

Original comment by spoidar@gmail.com on 15 Oct 2010 at 8:23

GoogleCodeExporter commented 9 years ago
I am now working on Ruby 1.9 support for activeldap at this branch on GitHub:
http://github.com/mbbx6spp/ruby-activeldap/tree/rails3

I have only added a few small fixes so far in preparation for the tests to be 
able to run.  Will update this ticket when more work is committed.

Original comment by mbbx6...@gmail.com on 21 Oct 2010 at 11:31

GoogleCodeExporter commented 9 years ago
I've just cloned the git:///github.com/pdf/ruby-activeldap/tree/rails3 repo and 
tried to run tests and I get:
>rake test 
(in /home/radek/workspace/ruby-activeldap)
Couldn't read /home/radek/.rubyforge/user-config.yml. Run `rubyforge setup`.
/usr/bin/ruby1.8 -w -Ilib:bin:test:. -e 'require "rubygems"; require 
"test/unit"; require "test/test_object_class.rb"; require "test/test_bind.rb"; 
require "test/test_load.rb"; require "test/test_attributes.rb"; require 
"test/test_syntax.rb"; require "test/test_lpasswd.rb"; require 
"test/test_useradd-binary.rb"; require "test/test_callback.rb"; require 
"test/test_configuration.rb"; require "test/test_find.rb"; require 
"test/test_validation.rb"; require "test/test_schema.rb"; require 
"test/test_groupls.rb"; require "test/test_base_per_instance.rb"; require 
"test/test_userls.rb"; require "test/test_base.rb"; require 
"test/test_usermod-binary-add.rb"; require "test/test_connection.rb"; require 
"test/test_groupadd.rb"; require "test/test_usermod-binary-add-time.rb"; 
require "test/test_acts_as_tree.rb"; require "test/test_usermod.rb"; require 
"test/test_groupmod.rb"; require "test/test_groupdel.rb"; require 
"test/test_ldif.rb"; require "test/test_dn.rb"; require "test/test_userdel.rb"; 
require "test/test_usermod-binary-del.rb"; require 
"test/test_usermod-lang-add.rb"; require "test/test_connection_per_dn.rb"; 
require "test/test_reflection.rb"; require "test/test_associations.rb"; require 
"test/test_connection_per_class.rb"; require "test/test_user.rb"; require 
"test/test_user_password.rb"; require "test/test_useradd.rb"; require 
"test/test_adapter.rb"' -- 
/usr/lib/ruby/gems/1.8/gems/activesupport-2.3.8/lib/active_support/vendor.rb:32:
 warning: redefine normalize_translation_keys
/usr/lib/ruby/gems/1.8/gems/activerecord-2.3.8/lib/active_record/validations.rb:
393: warning: `*' interpreted as argument prefix
/usr/lib/ruby/gems/1.8/gems/activerecord-2.3.8/lib/active_record/validations.rb:
29: warning: method redefined; discarding old message
/usr/lib/ruby/gems/1.8/gems/activerecord-2.3.8/lib/active_record/dirty.rb:40: 
warning: `*' interpreted as argument prefix
/usr/lib/ruby/gems/1.8/gems/activerecord-2.3.8/lib/active_record/callbacks.rb:22
8: warning: `*' interpreted as argument prefix
./test/test_object_class.rb:6: undefined method `priority' for 
TestObjectClass:Class (NoMethodError)
    from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
    from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
    from -e:1
rake aborted!
Command failed with status (1): [/usr/bin/ruby1.8 -w -Ilib:bin:test:. -e 'r...]

(See full trace by running task with --trace)

I'm trying to set up the environment to help with Rails 3 support, am I missing 
something here?

Original comment by radek.an...@gmail.com on 27 Nov 2010 at 10:22

GoogleCodeExporter commented 9 years ago
@radek.antoniuk - do you have test-unit installed?  Otherwise, gem install 
test-unit-full

Original comment by spoidar@gmail.com on 29 Nov 2010 at 9:42

GoogleCodeExporter commented 9 years ago
radek@warden-laptop [03:00:56] ~/workspace/ruby-activeldap> gem list | grep test
rack-test (0.5.6)
test-unit (2.1.2)
test-unit-full (0.0.2)
test-unit-notify (0.1.0)
test-unit-runner-fox (0.0.1)
test-unit-runner-gtk2 (0.0.1)
test-unit-runner-tk (0.0.1)

Indeed, I have test-unit installed, any other hints?

Original comment by radek.an...@gmail.com on 17 Dec 2010 at 2:01

GoogleCodeExporter commented 9 years ago
Issue 58 has been merged into this issue.

Original comment by kou...@gmail.com on 18 Dec 2010 at 11:35

GoogleCodeExporter commented 9 years ago
Please use test/run-test.rb instead of 'rake test' to run ActiveLdap tests.

Original comment by kou...@gmail.com on 18 Dec 2010 at 11:37

GoogleCodeExporter commented 9 years ago
Thanks for that, now a simple question, can you point me to the place where in 
the tests Rails version is defined? I mean, I have two Rails versions installed 
and I wonder how the tests are run: are they run for each of the Rails 
installed? or only for Rails 3 for this branch. After quickly grepping the 
sources, I haven't found anything reasonable about including Rails3 :(

Original comment by radek.an...@gmail.com on 19 Dec 2010 at 12:53

GoogleCodeExporter commented 9 years ago
https://github.com/pdf/ruby-activeldap/commit/b14e67fe71e92ac7d325c2c9fec0413478
c23810

Original comment by spoidar@gmail.com on 19 Dec 2010 at 12:59

GoogleCodeExporter commented 9 years ago
You doesn't need to run tests for each of the Rails installed.

We doesn't support two or more Rails version. Rails 3 supported ActiveLdap 
doesn't support Rails 2.

Original comment by kou...@gmail.com on 19 Dec 2010 at 1:34

GoogleCodeExporter commented 9 years ago
Are you guys still working on this by any chance?

Original comment by Kenny.Ortmann on 8 Feb 2011 at 10:07

GoogleCodeExporter commented 9 years ago
Unfortunately I haven't been able to return to this project due to other 
commitments, though I would dearly like to see activeldap working with rails 3.

Original comment by spoidar@gmail.com on 8 Feb 2011 at 10:18

GoogleCodeExporter commented 9 years ago
I hope to get back to this real soon, like in March hopefully.

Original comment by radek.an...@gmail.com on 9 Feb 2011 at 7:35

GoogleCodeExporter commented 9 years ago
I needed to get working on this right away.  I forked pdf's repo to here 
https://github.com/asynchrony/ruby-activeldap

I created a gemspec file and pushed up to:
http://rubygems.org/gems/activeldap3

I haven't worked on getting the tests to pass or any of that, just worked on 
getting the gem to load correctly with rails 3.  I would be more than happy to 
give you guys the changes that I have made and remove the gem that I put up on 
rubygems.  

Is there any possibility you guys would be willing to migrate the source 
control over to github?

Original comment by Kenny.Ortmann on 10 Feb 2011 at 11:53

GoogleCodeExporter commented 9 years ago
Erm, so you pushed a broken gem to rubygems?  That seems very 
counter-productive.  If you can get the tests to pass, code will be integrated 
into the repository here and an official gem will be published once it's signed 
off.

Original comment by spoidar@gmail.com on 11 Feb 2011 at 12:00

GoogleCodeExporter commented 9 years ago
The gem works fine for everything that we need it to do.  I can't run the tests 
against our ldap server until I either a) get help from you guys or b) talk 
with our system admin and figure out what is going on.

Can you use an OU inside of the ldap base when trying to run tests?

Basically we have an ldap server that uses organizational units to separate 
which project is using what.  the OU I was given was 
ou=activeldap,dc=authdev,dc=lan

The user that I'm using has full rights to do whatever needs to be done 
anywhere on the ldap server, but when I run the tests it says it can't delete 
"OU=activeldap,DC=authdev,DC=lan".

This google issue isn't sending me emails when people reply so I'll try to 
check on it often, do you guys have a mailing list?

Original comment by Kenny.Ortmann on 11 Feb 2011 at 12:24

GoogleCodeExporter commented 9 years ago
I just a local LDAP instance to run tests against, I wouldn't recommend doing 
so against a production server.  If you want to receive replies to this issue, 
click the 'star' next to the issue title.  I'll try and lend a hand later if 
you get stuck, but I'm flat out right now.

Original comment by spoidar@gmail.com on 11 Feb 2011 at 12:54

GoogleCodeExporter commented 9 years ago
It isn't a production server, it's just a server we use for testing against.  
I'll talk to our sysadmin tomorrow and see what kinda help I can get from him 
as well.  Clicked the star finally!

Original comment by Kenny.Ortmann on 11 Feb 2011 at 1:08

GoogleCodeExporter commented 9 years ago
Our repository moves to GitHub! https://github.com/activeldap/activeldap/

Original comment by kou...@gmail.com on 11 Feb 2011 at 3:14

GoogleCodeExporter commented 9 years ago
Ok so I feel pretty dumb.  All this time I've been thinking the only kind of 
ldap server I could use to run tests against is a Microsoft LDAP server.  I did 
some digging around last night and tried to get openldap running on my ubuntu 
laptop but no luck.  

What kind of environments are you guys running against?

Original comment by Kenny.Ortmann on 11 Feb 2011 at 2:25

GoogleCodeExporter commented 9 years ago
apt-get install slapd ?

Original comment by radek.an...@gmail.com on 11 Feb 2011 at 3:21