From pedz at easesoftware.com Tue Aug 7 13:39:16 2007 From: pedz at easesoftware.com (Perry Smith) Date: Tue, 7 Aug 2007 12:39:16 -0500 Subject: [Ruby-activeldap-discuss] Questions abound Message-ID: <56B7D7DB-3516-413C-9816-5A359896BEF3@easesoftware.com> Hi, I've been struggling with ActiveLdap. Mostly I don't know LDAP which causes me much grief. I don't have control of the LDAP server I'm trying to talk to. The base, really, is just a simple o=foo.com. The people are in ou=parea and the groups are in ou=garea. This gives ou=parea,o=foo.com which is the base I use right now for my LdapUser class (which is a subclass of ActiveLdap::Base). But a dn has four parts: uid=xxx,c=yy,ou=area,o=foo.com The c is a country code like us for United States. I assume that uid by itself is not unique across the entire LDAP. Currently to represent this I have: class LdapUser < ActiveLdap::Base ldap_mapping :classes => ['person'], :prefix => '', :dn_attribute => 'uid' belongs_to :manager, :class => 'LdapUser', :foreign_key => 'manager', :primary_key => 'dn' end In my ldap.yml file (this is with Rails), I have base: ou=parea,o=foo.com In the data that I get back for a person, one field is "manager". Its value is the full dn key. I am not sure if that is normal LDAP or not -- seems like it would be. I've tried a lot of different things for the belongs_to hash but I can not get it to work. The code that I have wants to prepend the manager field with "something=" -- and that causes the find to fail. So, I did a hack and changed BelongsTo:find_target to this: def find_target value = @owner[@options[:foreign_key_name]] # puts "BelongsTo.find_target: value=#{value}" raise EntryNotFound if value.nil? # puts "BelongsTo.find_target: primary_key=#{primary_key}" if primary_key == "dn" # puts "BelongsTo.find_target: find_by_value for #{value}" result = foreign_class.find(value) raise EntryNotFound if result.nil? result else filter = {primary_key => value} # puts "BelongsTo.find_target: foreign_class=# {foreign_class.to_s}" result = foreign_class.find(:all, :filter => filter, :limit => 1) raise EntryNotFound if result.empty? result.first end end The logic (if you want to call it that) is that if "dn" is specified as the primary key, that means that the "manager" field in this case, has a full dn and it does not need to be mucked with -- just pass it through to find. But it just seems like I am not in new territory here. This seems fairly common so I am still assuming that I am doing something wrong. Can anyone help me out? (I'm using the gem.) Thank you, Perry Smith ( pedz at easesoftware.com ) Ease Software, Inc. ( http://www.easesoftware.com ) Low cost SATA Disk Systems for IBMs p5, pSeries, and RS/6000 AIX systems -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/ruby-activeldap-discuss/attachments/20070807/9aeed070/attachment.html From kou at cozmixng.org Wed Aug 8 08:19:51 2007 From: kou at cozmixng.org (Kouhei Sutou) Date: Wed, 08 Aug 2007 21:19:51 +0900 (JST) Subject: [Ruby-activeldap-discuss] Questions abound In-Reply-To: <56B7D7DB-3516-413C-9816-5A359896BEF3@easesoftware.com> References: <56B7D7DB-3516-413C-9816-5A359896BEF3@easesoftware.com> Message-ID: <20070808.211951.258454071.kou@cozmixng.org> Hi, In <56B7D7DB-3516-413C-9816-5A359896BEF3 at easesoftware.com> "[Ruby-activeldap-discuss] Questions abound" on Tue, 7 Aug 2007 12:39:16 -0500, Perry Smith wrote: > class LdapUser < ActiveLdap::Base > ??ldap_mapping :classes => ['person'], :prefix => '', :dn_attribute => 'uid' > ??belongs_to :manager, :class => 'LdapUser', :foreign_key => 'manager', > :primary_key => 'dn' > end Could you show us 'manager' field values of your LDAP entry? Thanks, -- kou From pedz at easesoftware.com Wed Aug 8 08:30:41 2007 From: pedz at easesoftware.com (Perry Smith) Date: Wed, 8 Aug 2007 07:30:41 -0500 Subject: [Ruby-activeldap-discuss] Questions abound In-Reply-To: <20070808.211951.258454071.kou@cozmixng.org> References: <56B7D7DB-3516-413C-9816-5A359896BEF3@easesoftware.com> <20070808.211951.258454071.kou@cozmixng.org> Message-ID: <9F6EE923-DD95-4C0F-ACDD-F6A7590D9A14@easesoftware.com> On Aug 8, 2007, at 7:19 AM, Kouhei Sutou wrote: > Hi, > > In <56B7D7DB-3516-413C-9816-5A359896BEF3 at easesoftware.com> > "[Ruby-activeldap-discuss] Questions abound" on Tue, 7 Aug 2007 > 12:39:16 -0500, > Perry Smith wrote: > >> class LdapUser < ActiveLdap::Base >> ldap_mapping :classes => ['person'], :prefix => >> '', :dn_attribute => 'uid' >> belongs_to :manager, :class => 'LdapUser', :foreign_key => >> 'manager', >> :primary_key => 'dn' >> end > > Could you show us 'manager' field values of your LDAP entry? They are the same format as "dn" (fictitious example) uid=123457856,c=us,ou=parea,o=foo.com Thanks! Perry Smith ( pedz at easesoftware.com ) Ease Software, Inc. ( http://www.easesoftware.com ) Low cost SATA Disk Systems for IBMs p5, pSeries, and RS/6000 AIX systems From kou at cozmixng.org Wed Aug 8 09:22:20 2007 From: kou at cozmixng.org (Kouhei Sutou) Date: Wed, 08 Aug 2007 22:22:20 +0900 (JST) Subject: [Ruby-activeldap-discuss] Questions abound In-Reply-To: <9F6EE923-DD95-4C0F-ACDD-F6A7590D9A14@easesoftware.com> References: <56B7D7DB-3516-413C-9816-5A359896BEF3@easesoftware.com> <20070808.211951.258454071.kou@cozmixng.org> <9F6EE923-DD95-4C0F-ACDD-F6A7590D9A14@easesoftware.com> Message-ID: <20070808.222220.257124961.kou@cozmixng.org> Hi, In <9F6EE923-DD95-4C0F-ACDD-F6A7590D9A14 at easesoftware.com> "Re: [Ruby-activeldap-discuss] Questions abound" on Wed, 8 Aug 2007 07:30:41 -0500, Perry Smith wrote: > >> class LdapUser < ActiveLdap::Base > >> ldap_mapping :classes => ['person'], :prefix => > >> '', :dn_attribute => 'uid' > >> belongs_to :manager, :class => 'LdapUser', :foreign_key => > >> 'manager', > >> :primary_key => 'dn' > >> end > > > > Could you show us 'manager' field values of your LDAP entry? > > They are the same format as "dn" (fictitious example) > > uid=123457856,c=us,ou=parea,o=foo.com Thanks. Could you try trunk again? I've merged your patch's concept. -- kou From pedz at easesoftware.com Wed Aug 8 14:21:13 2007 From: pedz at easesoftware.com (Perry Smith) Date: Wed, 8 Aug 2007 13:21:13 -0500 Subject: [Ruby-activeldap-discuss] Questions abound In-Reply-To: <20070808.222220.257124961.kou@cozmixng.org> References: <56B7D7DB-3516-413C-9816-5A359896BEF3@easesoftware.com> <20070808.211951.258454071.kou@cozmixng.org> <9F6EE923-DD95-4C0F-ACDD-F6A7590D9A14@easesoftware.com> <20070808.222220.257124961.kou@cozmixng.org> Message-ID: <055D1921-B29E-4E1D-8DC9-6808BC681374@easesoftware.com> On Aug 8, 2007, at 8:22 AM, Kouhei Sutou wrote: > Hi, > > In <9F6EE923-DD95-4C0F-ACDD-F6A7590D9A14 at easesoftware.com> > "Re: [Ruby-activeldap-discuss] Questions abound" on Wed, 8 Aug > 2007 07:30:41 -0500, > Perry Smith wrote: > >>>> class LdapUser < ActiveLdap::Base >>>> ldap_mapping :classes => ['person'], :prefix => >>>> '', :dn_attribute => 'uid' >>>> belongs_to :manager, :class => 'LdapUser', :foreign_key => >>>> 'manager', >>>> :primary_key => 'dn' >>>> end >>> >>> Could you show us 'manager' field values of your LDAP entry? >> >> They are the same format as "dn" (fictitious example) >> >> uid=123457856,c=us,ou=parea,o=foo.com > > Thanks. > > Could you try trunk again? > I've merged your patch's concept. This issue is resolved. For any Rails / piston users, this sequence seems to work: piston import http://ruby-activeldap.googlecode.com/svn/trunk/lib/ active_ldap lib/active_ldap piston import http://ruby-activeldap.googlecode.com/svn/trunk/lib/ active_ldap.rb lib/active_ldap.rb piston import http://ruby-activeldap.googlecode.com/svn/trunk/rails/ plugin/active_ldap vendor/plugins/active_ldap It puts trunk into the proper places. There are lots of other ways to do it too. I have another problem which I had forgotten about. Around line 99 of adapter/base.rb, there is this sequence: key = 'subschemaSubentry' base ||= root_dse([key], options)[0][key][0] base ||= 'cn=schema' My silly LDAP server replies back with a key of 'subschemasubentry' (not mixed case). So the indexing dies off. I didn't know exactly how to deal with this but I did this for now and that seems to get me past the issue. key = 'subschemaSubentry' # base ||= root_dse([key], options)[0][key][0] if base.nil? if (b = root_dse([key], options)) && b[0] && b[0][key] base = b[0][key][0] end end base ||= 'cn=schema' From kou at cozmixng.org Thu Aug 9 08:39:44 2007 From: kou at cozmixng.org (Kouhei Sutou) Date: Thu, 09 Aug 2007 21:39:44 +0900 (JST) Subject: [Ruby-activeldap-discuss] Questions abound In-Reply-To: <055D1921-B29E-4E1D-8DC9-6808BC681374@easesoftware.com> References: <9F6EE923-DD95-4C0F-ACDD-F6A7590D9A14@easesoftware.com> <20070808.222220.257124961.kou@cozmixng.org> <055D1921-B29E-4E1D-8DC9-6808BC681374@easesoftware.com> Message-ID: <20070809.213944.40510919.kou@cozmixng.org> Hi, > I have another problem which I had forgotten about. > > Around line 99 of adapter/base.rb, there is this sequence: > > key = 'subschemaSubentry' > base ||= root_dse([key], options)[0][key][0] > base ||= 'cn=schema' > > My silly LDAP server replies back with a key of > 'subschemasubentry' (not mixed case). So the indexing dies off. I > didn't know exactly how to deal with this but I did this for now and > that seems to get me past the issue. > > key = 'subschemaSubentry' > # base ||= root_dse([key], options)[0][key][0] > if base.nil? > if (b = root_dse([key], options)) && b[0] && b[0][key] > base = b[0][key][0] > end > end > base ||= 'cn=schema' OK. I've committed codes for that. Could you try again? Thanks, -- kou From kou at cozmixng.org Sat Aug 11 06:06:31 2007 From: kou at cozmixng.org (Kouhei Sutou) Date: Sat, 11 Aug 2007 19:06:31 +0900 (JST) Subject: [Ruby-activeldap-discuss] connection per DN Message-ID: <20070811.190631.150002710.kou@cozmixng.org> Hi, I've committed 'connection per DN' feature but this implementation is still experimental. Usage: user = LdapUser.find('uid=xxx,...') user.establish_connection(:bind_dn => user.dn, :password => '...', ...) # This will be called when 'login'. ... user.find(...) # uses established connection above user.groups # uses established connection above and # each group use the same connection ... user2 = LdapUser.find('uid=xxx,...') user2.find(...) # uses established connection above # because user2's DN is the same as user. user2.groups # ditto. ... user.remove_connection # removes connection for 'uid=xxx,...'. # This should be called when 'logout'. Any comments for API are welcome. Thanks, -- kou From pedz at easesoftware.com Wed Aug 15 16:08:30 2007 From: pedz at easesoftware.com (Perry Smith) Date: Wed, 15 Aug 2007 15:08:30 -0500 Subject: [Ruby-activeldap-discuss] Edge Rails and latest activeldap error Message-ID: <1B3CF752-0AD8-40CB-B152-67DD655024A7@easesoftware.com> I am running edge rails and the latest active ldap. I just updated from r213 to r238 and now I get this: ./script/console Loading development environment. /Users/pedz/rails-projects/raptor/vendor/rails/activerecord/lib/../../ activesupport/lib/active_support/dependencies.rb:477:in `const_missing':NameError: uninitialized constant ActiveLdap::Error::GetTextSupport Thank you, Perry From pedz at easesoftware.com Wed Aug 15 16:16:16 2007 From: pedz at easesoftware.com (Perry Smith) Date: Wed, 15 Aug 2007 15:16:16 -0500 Subject: [Ruby-activeldap-discuss] Questions abound In-Reply-To: <20070809.213944.40510919.kou@cozmixng.org> References: <9F6EE923-DD95-4C0F-ACDD-F6A7590D9A14@easesoftware.com> <20070808.222220.257124961.kou@cozmixng.org> <055D1921-B29E-4E1D-8DC9-6808BC681374@easesoftware.com> <20070809.213944.40510919.kou@cozmixng.org> Message-ID: <0E967F5C-2213-40A7-AF19-CE8A051406FB@easesoftware.com> On Aug 9, 2007, at 7:39 AM, Kouhei Sutou wrote: > Hi, > >> I have another problem which I had forgotten about. >> >> Around line 99 of adapter/base.rb, there is this sequence: >> >> key = 'subschemaSubentry' >> base ||= root_dse([key], options)[0][key][0] >> base ||= 'cn=schema' >> >> My silly LDAP server replies back with a key of >> 'subschemasubentry' (not mixed case). So the indexing dies off. I >> didn't know exactly how to deal with this but I did this for now and >> that seems to get me past the issue. >> >> key = 'subschemaSubentry' >> # base ||= root_dse([key], options)[0][key][0] >> if base.nil? >> if (b = root_dse([key], options)) && b[0] && b[0][key] >> base = b[0][key][0] >> end >> end >> base ||= 'cn=schema' > > OK. I've committed codes for that. Could you try again? Just now got time to try this. It works fine. Thank you! Perry From kou at cozmixng.org Thu Aug 16 06:45:47 2007 From: kou at cozmixng.org (Kouhei Sutou) Date: Thu, 16 Aug 2007 19:45:47 +0900 (JST) Subject: [Ruby-activeldap-discuss] Edge Rails and latest activeldap error In-Reply-To: <1B3CF752-0AD8-40CB-B152-67DD655024A7@easesoftware.com> References: <1B3CF752-0AD8-40CB-B152-67DD655024A7@easesoftware.com> Message-ID: <20070816.194547.19129796.kou@cozmixng.org> Hi, In <1B3CF752-0AD8-40CB-B152-67DD655024A7 at easesoftware.com> "[Ruby-activeldap-discuss] Edge Rails and latest activeldap error" on Wed, 15 Aug 2007 15:08:30 -0500, Perry Smith wrote: > I am running edge rails and the latest active ldap. I just updated > from r213 to r238 and now I get this: > > ./script/console > Loading development environment. > /Users/pedz/rails-projects/raptor/vendor/rails/activerecord/lib/../../ > activesupport/lib/active_support/dependencies.rb:477:in > `const_missing':NameError: uninitialized constant > ActiveLdap::Error::GetTextSupport Uhm... What about r239? Thanks, -- kou From pedz at easesoftware.com Thu Aug 16 14:15:50 2007 From: pedz at easesoftware.com (Perry Smith) Date: Thu, 16 Aug 2007 13:15:50 -0500 Subject: [Ruby-activeldap-discuss] Edge Rails and latest activeldap error In-Reply-To: <20070816.194547.19129796.kou@cozmixng.org> References: <1B3CF752-0AD8-40CB-B152-67DD655024A7@easesoftware.com> <20070816.194547.19129796.kou@cozmixng.org> Message-ID: <5284084D-3601-4209-8A30-81855E83C4DC@easesoftware.com> On Aug 16, 2007, at 5:45 AM, Kouhei Sutou wrote: > Hi, > > In <1B3CF752-0AD8-40CB-B152-67DD655024A7 at easesoftware.com> > "[Ruby-activeldap-discuss] Edge Rails and latest activeldap > error" on Wed, 15 Aug 2007 15:08:30 -0500, > Perry Smith wrote: > >> I am running edge rails and the latest active ldap. I just updated >> from r213 to r238 and now I get this: >> >> ./script/console >> Loading development environment. >> /Users/pedz/rails-projects/raptor/vendor/rails/activerecord/ >> lib/../../ >> activesupport/lib/active_support/dependencies.rb:477:in >> `const_missing':NameError: uninitialized constant >> ActiveLdap::Error::GetTextSupport > > Uhm... What about r239? r239 and r245 both give: ./script/console Loading development environment. /Users/pedz/rails-projects/raptor/vendor/rails/activerecord/lib/../../ activesupport/lib/active_support/dependencies.rb:404:in `to_constant_name':ArgumentError: Anonymous modules have no name to be referenced by Hope this helps, Perry Smith ( pedz at easesoftware.com ) Ease Software, Inc. ( http://www.easesoftware.com ) Low cost SATA Disk Systems for IBMs p5, pSeries, and RS/6000 AIX systems From kou at cozmixng.org Thu Aug 16 19:16:10 2007 From: kou at cozmixng.org (Kouhei Sutou) Date: Fri, 17 Aug 2007 08:16:10 +0900 Subject: [Ruby-activeldap-discuss] Edge Rails and latest activeldap error In-Reply-To: <5284084D-3601-4209-8A30-81855E83C4DC@easesoftware.com> References: <1B3CF752-0AD8-40CB-B152-67DD655024A7@easesoftware.com> <20070816.194547.19129796.kou@cozmixng.org> <5284084D-3601-4209-8A30-81855E83C4DC@easesoftware.com> Message-ID: Hi, 2007/8/17, Perry Smith : > On Aug 16, 2007, at 5:45 AM, Kouhei Sutou wrote: > r239 and r245 both give: > > ./script/console > Loading development environment. > /Users/pedz/rails-projects/raptor/vendor/rails/activerecord/lib/../../ > activesupport/lib/active_support/dependencies.rb:404:in > `to_constant_name':ArgumentError: Anonymous modules have no name to > be referenced by Could you show us your full backtraces? Thanks, -- kou From pedz at easesoftware.com Thu Aug 16 23:39:41 2007 From: pedz at easesoftware.com (Perry Smith) Date: Thu, 16 Aug 2007 22:39:41 -0500 Subject: [Ruby-activeldap-discuss] Edge Rails and latest activeldap error In-Reply-To: References: <1B3CF752-0AD8-40CB-B152-67DD655024A7@easesoftware.com> <20070816.194547.19129796.kou@cozmixng.org> <5284084D-3601-4209-8A30-81855E83C4DC@easesoftware.com> <383F6796-9A38-4412-9E70-29D53F092375@easesoftware.com> <5741A05D-0D0D-4AAA-B3FE-807831586A9F@easesoftware.com> Message-ID: <86B20C95-1216-4D69-B00B-BEBCCCC96DD7@easesoftware.com> On Aug 16, 2007, at 7:27 PM, Kouhei Sutou wrote: > 2007/8/17, Perry Smith : > >> when Module >> if desc.name.blank? >> puts caller >> raise ArgumentError, "Anonymous modules have no name >> to be referenced by" >> end >> desc.name >> >> Here is the output: > > Did you update your lib/active_ldap.rb? That was the problem. Sorry for the confusion. Somehow piston is not updating it. Thank you for your help, Perry From pedz at easesoftware.com Fri Aug 17 16:55:58 2007 From: pedz at easesoftware.com (Perry Smith) Date: Fri, 17 Aug 2007 15:55:58 -0500 Subject: [Ruby-activeldap-discuss] More issues with latest trunk Message-ID: I now get: undefined method `passwordIsStruckOut=' for # My stack trace back is: lib/active_ldap/base.rb:660:in `method_missing' lib/active_ldap/base.rb:714:in `send' lib/active_ldap/base.rb:714:in `attributes=' lib/active_ldap/base.rb:713:in `each' lib/active_ldap/base.rb:713:in `attributes=' lib/active_ldap/base.rb:834:in `initialize_by_ldap_data' lib/active_ldap/base.rb:429:in `instantiate_without_callbacks' lib/active_ldap/base.rb:428:in `instance_eval' lib/active_ldap/base.rb:428:in `instantiate_without_callbacks' lib/active_ldap/operations.rb:214:in `find_every' lib/active_ldap/operations.rb:213:in `collect' lib/active_ldap/operations.rb:213:in `find_every' lib/active_ldap/operations.rb:193:in `find_initial' lib/active_ldap/operations.rb:182:in `find' app/models/ldap_user.rb:11:in `authenticate_from_email' app/controllers/application.rb:24:in `authenticate' app/controllers/application.rb:23:in `authenticate' This is from rails. I have not started investigating yet. I did verify by pulling down a fresh copy that all parts of the version I am using are up to date. Perry Smith ( pedz at easesoftware.com ) Ease Software, Inc. ( http://www.easesoftware.com ) Low cost SATA Disk Systems for IBMs p5, pSeries, and RS/6000 AIX systems -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/ruby-activeldap-discuss/attachments/20070817/7473c11a/attachment-0001.html From kou at cozmixng.org Fri Aug 17 19:43:55 2007 From: kou at cozmixng.org (Kouhei Sutou) Date: Sat, 18 Aug 2007 08:43:55 +0900 (JST) Subject: [Ruby-activeldap-discuss] More issues with latest trunk In-Reply-To: References: Message-ID: <20070818.084355.90966145.kou@cozmixng.org> Hi, In "[Ruby-activeldap-discuss] More issues with latest trunk" on Fri, 17 Aug 2007 15:55:58 -0500, Perry Smith wrote: > I now get: > > undefined method `passwordIsStruckOut=' for # To debug this problem, your information is too less. Could you give us your LdapUser.new.attribute_names, LdapUser definition and schema (pp ActiveLdap::Base.schema) (if possible)? Thanks, -- kou From kou at cozmixng.org Fri Aug 17 21:59:10 2007 From: kou at cozmixng.org (Kouhei Sutou) Date: Sat, 18 Aug 2007 10:59:10 +0900 (JST) Subject: [Ruby-activeldap-discuss] More issues with latest trunk In-Reply-To: <20070818.084355.90966145.kou@cozmixng.org> References: <20070818.084355.90966145.kou@cozmixng.org> Message-ID: <20070818.105910.04040581.kou@cozmixng.org> Hi, > > I now get: > > > > undefined method `passwordIsStruckOut=' for # > > To debug this problem, your information is too less. > > Could you give us your LdapUser.new.attribute_names, > LdapUser definition and schema (pp ActiveLdap::Base.schema) > (if possible)? The current trunk may solve your problem or need more loose processing. Thanks, -- kou From lists at suares.an Sat Aug 18 19:29:42 2007 From: lists at suares.an (Ace Suares) Date: Sat, 18 Aug 2007 19:29:42 -0400 Subject: [Ruby-activeldap-discuss] Installing activeldap Message-ID: <200708181929.42149.lists@suares.an> Dear list memebers, How to install ruby-activeldap ? If I install with 'gem install ruby-activeldap' I get version 0.8.2 but I believe it's outdated. I'd like to install from 'trunk'. But on rubyforge, the cvs is deprecated and points me to http://ruby-activeldap.googlecode.com/svn/ How to get activeldap ? Cheers, ace From lists at suares.an Sat Aug 18 21:20:39 2007 From: lists at suares.an (Ace Suares) Date: Sat, 18 Aug 2007 21:20:39 -0400 Subject: [Ruby-activeldap-discuss] can't convert Fixnum into String (TypeError) when password is all numeric Message-ID: <200708182120.39668.lists@suares.an> Hi, I got this error when I specified an all numeric password in ldap.yml: /usr/local/lib/ruby/gems/1.8/gems/ruby-activeldap-0.8.2/lib/active_ldap/adapter/ldap.rb:140:in `bind': can't convert Fixnum into String (TypeError) It went away after I quoted the password. Before: password: 123 After: password: "123" Ace From pedz at easesoftware.com Sat Aug 18 21:42:03 2007 From: pedz at easesoftware.com (Perry Smith) Date: Sat, 18 Aug 2007 20:42:03 -0500 Subject: [Ruby-activeldap-discuss] Installing activeldap In-Reply-To: <200708181929.42149.lists@suares.an> References: <200708181929.42149.lists@suares.an> Message-ID: <7E0A0FF0-6217-45FF-B124-5CA9284A5323@easesoftware.com> On Aug 18, 2007, at 6:29 PM, Ace Suares wrote: > > How to install ruby-activeldap ? > > If I install with 'gem install ruby-activeldap' I get version 0.8.2 > but I > believe it's outdated. I'd like to install from 'trunk'. But on > rubyforge, the cvs is deprecated and points me to > http://ruby-activeldap.googlecode.com/svn/ > > How to get activeldap ? To pull down the trunk via svn you need svn on your machine. If you have it on your machine, then just do: svn co http://ruby-activeldap.googlecode.com/svn/trunk latest When that completes, in latest will be the whole trunk. To get it installed into your path is another question. In latest/lib you will find active_ldap (directory) and active_ldap.rb. If your ruby path includes directory foo, then move those two files into foo. To get the list of paths that your ruby looks in, get into irb, then type: puts $: That will list out the list of paths Ruby searches looking for a library. Move latest/lib/active_ldap and latest/lib/active_ldap.rb into one of those directories and you should be all set. There may be a way to "install" it via rake. Hopefully, if that is true, someone else will pitch in. Hope this helps Perry Smith ( pedz at easesoftware.com ) Ease Software, Inc. ( http://www.easesoftware.com ) Low cost SATA Disk Systems for IBMs p5, pSeries, and RS/6000 AIX systems From kou at cozmixng.org Sun Aug 19 03:59:52 2007 From: kou at cozmixng.org (Kouhei Sutou) Date: Sun, 19 Aug 2007 16:59:52 +0900 (JST) Subject: [Ruby-activeldap-discuss] can't convert Fixnum into String (TypeError) when password is all numeric In-Reply-To: <200708182120.39668.lists@suares.an> References: <200708182120.39668.lists@suares.an> Message-ID: <20070819.165952.215319619.kou@cozmixng.org> Hi, In <200708182120.39668.lists at suares.an> "[Ruby-activeldap-discuss] can't convert Fixnum into String (TypeError) when password is all numeric" on Sat, 18 Aug 2007 21:20:39 -0400, Ace Suares wrote: > > Hi, > > I got this error when I specified an all numeric password in ldap.yml: > > /usr/local/lib/ruby/gems/1.8/gems/ruby-activeldap-0.8.2/lib/active_ldap/adapter/ldap.rb:140:in > `bind': can't convert Fixnum into String (TypeError) > > > It went away after I quoted the password. > > Before: > > password: 123 > > After: > > password: "123" Thanks for reporting. I made a Wiki page and add this problem: http://code.google.com/p/ruby-activeldap/wiki/TroubleShooting Thanks, -- kou From kou at cozmixng.org Sun Aug 19 06:08:52 2007 From: kou at cozmixng.org (Kouhei Sutou) Date: Sun, 19 Aug 2007 19:08:52 +0900 (JST) Subject: [Ruby-activeldap-discuss] 0.8.3? Message-ID: <20070819.190852.202450939.kou@cozmixng.org> Hi Will, I supported Ruby-GetText-Package. So it's a good time to release new version. Will, what do you think about this? Since 0.8.2, I improved schema handling, Rails support (I added a sample Rails with ActiveLdap application into examples/al-admin/. This also includes login example. I'll setup demo site.), speed-up(*) and many bug fixes reported by some people in this ML (Thanks!!!). (*) The followings are result of benchmark/bench-al.rb from log message: r222: user system total real AL 0.770000 0.040000 0.810000 ( 1.131281) AL(No Obj) 0.070000 0.000000 0.070000 ( 0.174508) LDAP 0.010000 0.000000 0.010000 ( 0.023868) r223: user system total real AL 0.760000 0.040000 0.800000 ( 0.989990) AL(No Obj) 0.020000 0.000000 0.020000 ( 0.140160) LDAP 0.010000 0.000000 0.010000 ( 0.005545) r268: user system total real AL 0.480000 0.010000 0.490000 ( 0.687489) AL(No Obj) 0.040000 0.000000 0.040000 ( 0.178829) LDAP 0.000000 0.000000 0.000000 ( 0.005477) current(r285) (I run now): user system total real 1x: AL 0.480000 0.020000 0.500000 ( 0.681990) 1x: AL(No Obj) 0.040000 0.000000 0.040000 ( 0.154788) 1x: LDAP 0.000000 0.010000 0.010000 ( 0.006777) 1x: Net::LDAP 0.080000 0.000000 0.080000 ( 0.232679) After 0.8.3, I'll implement acts_as_tree feature. Thanks, -- kou From lists at suares.an Sun Aug 19 07:40:20 2007 From: lists at suares.an (Ace Suares) Date: Sun, 19 Aug 2007 07:40:20 -0400 Subject: [Ruby-activeldap-discuss] www.activeldap.com Message-ID: <200708190740.20369.lists@suares.an> Hi, I am trying to put up a page with insrtallation instructions (like I promised a year ago). You can see it at http://www.activeldap.com I would like you to comment on it so I can make it better. Information about activeldap is scattered trough the internet. We can make a central place to have the latest info. It can just be a page with some instructions and that links to other things like the wiki. Ace From lists at suares.an Sun Aug 19 14:33:57 2007 From: lists at suares.an (Ace Suares) Date: Sun, 19 Aug 2007 14:33:57 -0400 Subject: [Ruby-activeldap-discuss] Old version on Google, newer on Rubuforge Message-ID: <200708191433.57229.lists@suares.an> Hi, On Google, the newest version in 0.8.1 (2007-01-28) http://code.google.com/p/ruby-activeldap/downloads/list On Rubyforge, the newest version is 0.8.2 (20070515) http://rubyforge.org/projects/ruby-activeldap Can I assist in making sure there is only ONE latest version :-) Also, I tried ti checkout the newest from google (trunk) but I't doesn't work. Kou can you make a tarball available ? $ svn co http://ruby-activeldap.googlecode.com/svn/trunk/ svn: REPORT request failed on '/svn/!svn/vcc/default' svn: REPORT of '/svn/!svn/vcc/default': 400 Bad Request (http://ruby-activeldap.googlecode.com) $ damn! -bash: damn!: command not found Cheers, Ace From pedz at easesoftware.com Sun Aug 19 15:04:06 2007 From: pedz at easesoftware.com (Perry Smith) Date: Sun, 19 Aug 2007 14:04:06 -0500 Subject: [Ruby-activeldap-discuss] Old version on Google, newer on Rubuforge In-Reply-To: <200708191433.57229.lists@suares.an> References: <200708191433.57229.lists@suares.an> Message-ID: On Aug 19, 2007, at 1:33 PM, Ace Suares wrote: > Hi, > > On Google, the newest version in 0.8.1 (2007-01-28) > http://code.google.com/p/ruby-activeldap/downloads/list > > On Rubyforge, the newest version is 0.8.2 (20070515) > http://rubyforge.org/projects/ruby-activeldap > > Can I assist in making sure there is only ONE latest version :-) > > Also, I tried ti checkout the newest from google (trunk) but I't > doesn't > work. Kou can you make a tarball available ? > > $ svn co http://ruby-activeldap.googlecode.com/svn/trunk/ > svn: REPORT request failed on '/svn/!svn/vcc/default' > svn: REPORT of '/svn/!svn/vcc/default': 400 Bad Request > (http://ruby-activeldap.googlecode.com) > $ damn! > -bash: damn!: command not found I just now check this out with: svn co http://ruby-activeldap.googlecode.com/svn/trunk /tmp/active_ldap But, I'm not using this version. I had to go back a few levels. It may be because my ldap server is weird. Anyhow, try and figure out why your svn is not working. Meanwhile, here is a tarball. (sans tarball to the list) HTH Perry Smith ( pedz at easesoftware.com ) Ease Software, Inc. ( http://www.easesoftware.com ) Low cost SATA Disk Systems for IBMs p5, pSeries, and RS/6000 AIX systems From lists at suares.an Sun Aug 19 19:16:36 2007 From: lists at suares.an (Ace Suares) Date: Sun, 19 Aug 2007 19:16:36 -0400 Subject: [Ruby-activeldap-discuss] 0.8.3? In-Reply-To: <20070819.190852.202450939.kou@cozmixng.org> References: <20070819.190852.202450939.kou@cozmixng.org> Message-ID: <200708191916.36223.lists@suares.an> On Sunday 19 August 2007, Kouhei Sutou wrote: > Hi Will, > > I supported Ruby-GetText-Package. So it's a good time to > release new version. Will, what do you think about this? Please find attached a first go at translation for Dutch (Nederlands, code nl). Ace -------------- next part -------------- A non-text attachment was scrubbed... Name: al-admin.po Type: application/x-gettext Size: 3483 bytes Desc: not available Url : http://rubyforge.org/pipermail/ruby-activeldap-discuss/attachments/20070819/b89fe964/attachment-0001.bin From lists at suares.an Sun Aug 19 19:18:59 2007 From: lists at suares.an (Ace Suares) Date: Sun, 19 Aug 2007 19:18:59 -0400 Subject: [Ruby-activeldap-discuss] 0.8.3? In-Reply-To: <20070819.190852.202450939.kou@cozmixng.org> References: <20070819.190852.202450939.kou@cozmixng.org> Message-ID: <200708191918.59292.lists@suares.an> Kou, > >(I added a sample Rails with ActiveLdap application into > examples/al-admin/. This also includes login example. Could you also include a sample ldif while that works with you admin example ? Thx, ace From kou at cozmixng.org Sun Aug 19 19:43:05 2007 From: kou at cozmixng.org (Kouhei Sutou) Date: Mon, 20 Aug 2007 08:43:05 +0900 Subject: [Ruby-activeldap-discuss] 0.8.3? In-Reply-To: <200708191916.36223.lists@suares.an> References: <20070819.190852.202450939.kou@cozmixng.org> <200708191916.36223.lists@suares.an> Message-ID: Hi, 2007/8/20, Ace Suares : > On Sunday 19 August 2007, Kouhei Sutou wrote: > > Hi Will, > > > > I supported Ruby-GetText-Package. So it's a good time to > > release new version. Will, what do you think about this? > > Please find attached a first go at translation for Dutch (Nederlands, code > nl). Great!!! I removed my name from copyright holder and added it into the repository. Thanks, -- kou From kou at cozmixng.org Sun Aug 19 19:48:26 2007 From: kou at cozmixng.org (Kouhei Sutou) Date: Mon, 20 Aug 2007 08:48:26 +0900 Subject: [Ruby-activeldap-discuss] Old version on Google, newer on Rubuforge In-Reply-To: <200708191433.57229.lists@suares.an> References: <200708191433.57229.lists@suares.an> Message-ID: Hi, > On Google, the newest version in 0.8.1 (2007-01-28) > http://code.google.com/p/ruby-activeldap/downloads/list > > On Rubyforge, the newest version is 0.8.2 (20070515) > http://rubyforge.org/projects/ruby-activeldap > > Can I assist in making sure there is only ONE latest version :-) It was just a workaround that we used Google. In that time, Rubyforge was down. I removed 0.8.1 from downloads list. Thanks for reporting. > Also, I tried ti checkout the newest from google (trunk) but I't doesn't > work. Kou can you make a tarball available ? > > $ svn co http://ruby-activeldap.googlecode.com/svn/trunk/ > svn: REPORT request failed on '/svn/!svn/vcc/default' > svn: REPORT of '/svn/!svn/vcc/default': 400 Bad Request > (http://ruby-activeldap.googlecode.com) Hmm. I can checkout now. Could you try again? # Your ISP may block HTTP REPORT method. Thanks, -- kou From kou at cozmixng.org Sun Aug 19 19:55:42 2007 From: kou at cozmixng.org (Kouhei Sutou) Date: Mon, 20 Aug 2007 08:55:42 +0900 Subject: [Ruby-activeldap-discuss] www.activeldap.com In-Reply-To: <200708190740.20369.lists@suares.an> References: <200708190740.20369.lists@suares.an> Message-ID: Hi, 2007/8/19, Ace Suares : > I am trying to put up a page with insrtallation instructions (like I > promised a year ago). > > You can see it at http://www.activeldap.com Great!!! > I would like you to comment on it so I can make it better. I think libldap-ruby1.8 is included in universe. It seems that it'sf easy to install to use universe. > Information about activeldap is scattered trough the internet. We can make > a central place to have the latest info. It can just be a page with some > instructions and that links to other things like the wiki. Very thanks!!! -- kou From lists at suares.an Sun Aug 19 20:22:03 2007 From: lists at suares.an (Ace Suares) Date: Sun, 19 Aug 2007 20:22:03 -0400 Subject: [Ruby-activeldap-discuss] Old version on Google, newer on Rubuforge In-Reply-To: References: <200708191433.57229.lists@suares.an> Message-ID: <200708192022.03232.lists@suares.an> On Sunday 19 August 2007, Kouhei Sutou wrote: > Hmm. I can checkout now. Could you try again? > # Your ISP may block HTTP REPORT method. Hi, and thanks, it was pointed out by Perry too. In my firewall I discovered: squid[6399]: parseHttpRequest: Unsupported method 'REPORT' I was trying to checkout via https, but I needed a login (I couldn't access it with my google account). Can you make me part of the team, so I can contribute to the wiki too ? I don't need write access to svn (rather not, so that I won't make mistakes). If I can not get readonly access to svn, then I will just circumvent my squid proxy, that's easy to do. Cheers, ace > > Thanks, > -- > kou > _______________________________________________ > Ruby-activeldap-discuss mailing list > Ruby-activeldap-discuss at rubyforge.org > http://rubyforge.org/mailman/listinfo/ruby-activeldap-discuss From lists at suares.an Sun Aug 19 20:30:20 2007 From: lists at suares.an (Ace Suares) Date: Sun, 19 Aug 2007 20:30:20 -0400 Subject: [Ruby-activeldap-discuss] www.activeldap.com In-Reply-To: References: <200708190740.20369.lists@suares.an> Message-ID: <200708192030.20237.lists@suares.an> On Sunday 19 August 2007, Kouhei Sutou wrote: > Hi, > > 2007/8/19, Ace Suares : > > I am trying to put up a page with insrtallation instructions (like I > > promised a year ago). > > > > You can see it at http://www.activeldap.com > > Great!!! > > > I would like you to comment on it so I can make it better. > > I think libldap-ruby1.8 is included in universe. > It seems that it'sf easy to install to use universe. Hmmm... I have *not* installed libldap-ruby1.8 ! I tried but it didn't work. I will test the setup from scratch and see if I did something wrong. Ace > > > Information about activeldap is scattered trough the internet. We can > > make a central place to have the latest info. It can just be a page > > with some instructions and that links to other things like the wiki. > > Very thanks!!! > -- > kou > _______________________________________________ > Ruby-activeldap-discuss mailing list > Ruby-activeldap-discuss at rubyforge.org > http://rubyforge.org/mailman/listinfo/ruby-activeldap-discuss From lists at suares.an Sun Aug 19 20:33:23 2007 From: lists at suares.an (Ace Suares) Date: Sun, 19 Aug 2007 20:33:23 -0400 Subject: [Ruby-activeldap-discuss] www.activeldap.com In-Reply-To: References: <200708190740.20369.lists@suares.an> Message-ID: <200708192033.23418.lists@suares.an> > > I think libldap-ruby1.8 is included in universe. > It seems that it'sf easy to install to use universe. Hmmm... in Feisty there is now libactiveldap-ruby1.8 too ! ace > > > Information about activeldap is scattered trough the internet. We can > > make a central place to have the latest info. It can just be a page > > with some instructions and that links to other things like the wiki. > > Very thanks!!! > -- > kou > _______________________________________________ > Ruby-activeldap-discuss mailing list > Ruby-activeldap-discuss at rubyforge.org > http://rubyforge.org/mailman/listinfo/ruby-activeldap-discuss From kou at cozmixng.org Mon Aug 20 06:53:00 2007 From: kou at cozmixng.org (Kouhei Sutou) Date: Mon, 20 Aug 2007 19:53:00 +0900 (JST) Subject: [Ruby-activeldap-discuss] Old version on Google, newer on Rubuforge In-Reply-To: <200708192022.03232.lists@suares.an> References: <200708191433.57229.lists@suares.an> <200708192022.03232.lists@suares.an> Message-ID: <20070820.195300.155601441.kou@cozmixng.org> Hi, > I was trying to checkout via https, but I needed a login (I couldn't > access it with my google account). Can you make me part of the team, so I > can contribute to the wiki too ? > > I don't need write access to svn (rather not, so that I won't make > mistakes). It seems that we can't permit you https without svn access on Google Code. If you tell us your Google account, I'll add you this project for giving you a write access to the Wiki. But you will also get a write access to the repository. (The Wiki on Google Code synchronizes Wiki contents and the repository. See http://ruby-activeldap.googlecode.com/svn/wiki/) I think it's good that you have a write access to the repository because you may update .po for nl. ;-) Thanks, -- kou From lists at suares.an Mon Aug 20 08:00:03 2007 From: lists at suares.an (Ace Suares) Date: Mon, 20 Aug 2007 08:00:03 -0400 Subject: [Ruby-activeldap-discuss] Gem or plugin ? Message-ID: <200708200800.03634.lists@suares.an> Hi, i noticed that there is a plugin for activeldap. When I install it, I think it's missing the entire activeldap software, in other words, I need to install the gem to use the plugin. What is ths use of the plugin if there is already the gem ? Sorry, I am still quite new to Ruby. Cheers, Ace From pedz at easesoftware.com Mon Aug 20 08:41:47 2007 From: pedz at easesoftware.com (Perry Smith) Date: Mon, 20 Aug 2007 07:41:47 -0500 Subject: [Ruby-activeldap-discuss] Gem or plugin ? In-Reply-To: <200708200800.03634.lists@suares.an> References: <200708200800.03634.lists@suares.an> Message-ID: On Aug 20, 2007, at 7:00 AM, Ace Suares wrote: > > Hi, > > > i noticed that there is a plugin for activeldap. When I install it, I > think it's missing the entire activeldap software, in other words, > I need > to install the gem to use the plugin. > > What is ths use of the plugin if there is already the gem ? > > Sorry, I am still quite new to Ruby. The plugin is for Rails. I assume you know that already. If you now type "./script/generate" it will now show you a "scaffold_al". If you generate that, it creates a config/ldap.yml file. By the way, I can not do "./script/generate" right now because active_ldap errors out when it tries to connect to the server. Seems like for just a simple load, that it should get through the require stage. Here is my stack if you are interested. ./script/generate /Users/pedz/rails-projects/raptor/lib/active_ldap/adapter/ldap_ext.rb: 66:in `assert_error_code': Can't contact LDAP server (ActiveLdap::LdapError) from /Users/pedz/rails-projects/raptor/lib/active_ldap/adapter/ ldap.rb:142:in `execute' from /Users/pedz/rails-projects/raptor/lib/active_ldap/adapter/ ldap.rb:58:in `bind_as_anonymous' from /Users/pedz/rails-projects/raptor/lib/active_ldap/adapter/ base.rb:74:in `bind_as_anonymous' from /Users/pedz/rails-projects/raptor/lib/active_ldap/adapter/ base.rb:201:in `operation' from /Users/pedz/rails-projects/raptor/lib/active_ldap/ timeout_stub.rb:6:in `call' from /Users/pedz/rails-projects/raptor/lib/active_ldap/ timeout_stub.rb:6:in `alarm' from /Users/pedz/rails-projects/raptor/lib/active_ldap/adapter/ base.rb:236:in `with_timeout' from /Users/pedz/rails-projects/raptor/lib/active_ldap/adapter/ ldap.rb:149:in `with_timeout' ... 23 levels... from /Users/pedz/rails-projects/raptor/vendor/rails/railties/lib/ commands/generate.rb:1:in `require' from /Users/pedz/rails-projects/raptor/vendor/rails/railties/lib/ commands/generate.rb:1 from ./script/generate:3:in `require' from ./script/generate:3 HTH, Perry From kou at cozmixng.org Mon Aug 20 09:36:02 2007 From: kou at cozmixng.org (Kouhei Sutou) Date: Mon, 20 Aug 2007 22:36:02 +0900 (JST) Subject: [Ruby-activeldap-discuss] Gem or plugin ? In-Reply-To: References: <200708200800.03634.lists@suares.an> Message-ID: <20070820.223602.154884516.kou@cozmixng.org> Hi, > > i noticed that there is a plugin for activeldap. When I install it, I > > think it's missing the entire activeldap software, in other words, > > I need > > to install the gem to use the plugin. > > > > What is ths use of the plugin if there is already the gem ? > > The plugin is for Rails. I assume you know that already. If you now > type "./script/generate" it will now show you a "scaffold_al". If > you generate that, it creates a config/ldap.yml file. And the plugin reads config/ldap.yml and setups LDAP server connection. (ActiveLdap::Base.establish_connection) > By the way, I can not do "./script/generate" right now because > active_ldap errors out when it tries to connect to the server. Seems > like for just a simple load, that it should get through the require > stage. > > Here is my stack if you are interested. > > ./script/generate > /Users/pedz/rails-projects/raptor/lib/active_ldap/adapter/ldap_ext.rb: > 66:in `assert_error_code': Can't contact LDAP server > (ActiveLdap::LdapError) > from /Users/pedz/rails-projects/raptor/lib/active_ldap/adapter/ > ldap.rb:142:in `execute' > from /Users/pedz/rails-projects/raptor/lib/active_ldap/adapter/ > ldap.rb:58:in `bind_as_anonymous' > from /Users/pedz/rails-projects/raptor/lib/active_ldap/adapter/ > base.rb:74:in `bind_as_anonymous' > from /Users/pedz/rails-projects/raptor/lib/active_ldap/adapter/ It seems that your LDAP server doesn't accept anonymous connection. (Your authentication information in your config/ldap.yml may be wrong.) Thanks, -- kou From lists at suares.an Mon Aug 20 10:44:22 2007 From: lists at suares.an (Ace Suares) Date: Mon, 20 Aug 2007 10:44:22 -0400 Subject: [Ruby-activeldap-discuss] Gem or plugin ? In-Reply-To: References: <200708200800.03634.lists@suares.an> Message-ID: <200708201044.22727.lists@suares.an> On Monday 20 August 2007, Perry Smith wrote: > On Aug 20, 2007, at 7:00 AM, Ace Suares wrote: > > Hi, > > > > > > i noticed that there is a plugin for activeldap. When I install it, > > I think it's missing the entire activeldap software, in other words, > > I need > > to install the gem to use the plugin. > > > > What is ths use of the plugin if there is already the gem ? > > > > Sorry, I am still quite new to Ruby. > > The plugin is for Rails. I assume you know that already. If you now > type "./script/generate" it will now show you a "scaffold_al". If > you generate that, it creates a config/ldap.yml file. Hi Perry, Glad to hear from you again, you've been very helpful...! My question is: will the plugin work without the gem. I assume not, but I'd like confirmation. Then, if you don't use the plugin for rails, you can still "require 'activeldap' " in your application.rb or init.rb or somewhere, and have the same functionality, is that true ?? Ace From lists at suares.an Mon Aug 20 11:00:11 2007 From: lists at suares.an (Ace Suares) Date: Mon, 20 Aug 2007 11:00:11 -0400 Subject: [Ruby-activeldap-discuss] naming Message-ID: <200708201100.11660.lists@suares.an> Hi, whis is the gem called 'ruby-activeldap' and why is it that if you want to require it, you need 'active_ldap' ? What's the official name of the project? ActiveLDAP ? activeldap ? ActiveLdap ? I prefer the first but I think it was decided already. I'd like to be sure to put the correct version on the website and the wiki... And why not call the gem 'activeldap' ? Okay I see that there is other libraries too, with similar name, maybe this is some naming convention, please enlighten me. Last, why require 'active_ldap' instead of 'activeldap' ? Cheers ace Sorry. Documentation means lots of d.u.m.b. questions. From kou at cozmixng.org Tue Aug 21 08:04:33 2007 From: kou at cozmixng.org (Kouhei Sutou) Date: Tue, 21 Aug 2007 21:04:33 +0900 (JST) Subject: [Ruby-activeldap-discuss] Gem or plugin ? In-Reply-To: References: <20070820.223602.154884516.kou@cozmixng.org> Message-ID: <20070821.210433.125497674.kou@cozmixng.org> Hi, In "Re: [Ruby-activeldap-discuss] Gem or plugin ?" on Mon, 20 Aug 2007 10:11:48 -0500, Perry Smith wrote: > On Aug 20, 2007, at 8:36 AM, Kouhei Sutou wrote: > >> > >> ./script/generate > >> /Users/pedz/rails-projects/raptor/lib/active_ldap/adapter/ldap_ext.rb: > >> 66:in `assert_error_code': Can't contact LDAP server > >> (ActiveLdap::LdapError) > >> from /Users/pedz/rails-projects/raptor/lib/active_ldap/adapter/ > >> ldap.rb:142:in `execute' > >> from /Users/pedz/rails-projects/raptor/lib/active_ldap/adapter/ > >> ldap.rb:58:in `bind_as_anonymous' > >> from /Users/pedz/rails-projects/raptor/lib/active_ldap/adapter/ > >> base.rb:74:in `bind_as_anonymous' > >> from /Users/pedz/rails-projects/raptor/lib/active_ldap/adapter/ > > > > It seems that your LDAP server doesn't accept anonymous > > connection. (Your authentication information in your > > config/ldap.yml may be wrong.) > > > > At the time, I could not connect (because I was not at work). But I was just trying to do "./script/generate" which seems to load active_ldap. Is it possible to postpone when it connects to when the connection is first used rather than at load time? The plugin doesn't establish connection when you don't have config/ldap.yml. (This is only time when you need to use script/generate scaffold_al) I think that you already have config/ldap.yml. Could you confirm that? Thanks, -- kou From kou at cozmixng.org Tue Aug 21 08:19:54 2007 From: kou at cozmixng.org (Kouhei Sutou) Date: Tue, 21 Aug 2007 21:19:54 +0900 (JST) Subject: [Ruby-activeldap-discuss] naming In-Reply-To: <200708201100.11660.lists@suares.an> References: <200708201100.11660.lists@suares.an> Message-ID: <20070821.211954.78761584.kou@cozmixng.org> Hi, Will, I want to hear your opinion. > whis is the gem called 'ruby-activeldap' and why is it that if you want to > require it, you need 'active_ldap' ? > > What's the official name of the project? > > ActiveLDAP ? > activeldap ? > ActiveLdap ? I want to use the following names: For the project name: Ruby/ActiveLdap For the library name: ActiveLdap For the rubygems name: activeldap (ruby-activeldap for now but I want to change) For the require name: active_ldap > Last, why require 'active_ldap' instead of 'activeldap' ? Because of general Ruby's naming convention: CamelCase for constant name -> camel_case/camel-case/camelcase for file name Rails uses camel_case convention. We decided to support Rails, so we use camel_case for file name. Thanks, -- kou From lists at suares.an Tue Aug 21 09:04:09 2007 From: lists at suares.an (Ace Suares) Date: Tue, 21 Aug 2007 09:04:09 -0400 Subject: [Ruby-activeldap-discuss] Gem or plugin ? In-Reply-To: <20070821.210433.125497674.kou@cozmixng.org> References: <20070821.210433.125497674.kou@cozmixng.org> Message-ID: <200708210904.09911.lists@suares.an> On Tuesday 21 August 2007, Kouhei Sutou wrote: > Hi, > > In > "Re: [Ruby-activeldap-discuss] Gem or plugin ?" on Mon, 20 Aug 2007 > 10:11:48 -0500, > > Perry Smith wrote: > > On Aug 20, 2007, at 8:36 AM, Kouhei Sutou wrote: > > >> ./script/generate > > >> /Users/pedz/rails-projects/raptor/lib/active_ldap/adapter/ldap_ext > > >>.rb: 66:in `assert_error_code': Can't contact LDAP server > > >> (ActiveLdap::LdapError) > > >> from /Users/pedz/rails-projects/raptor/lib/active_ldap/adapter/ > > >> ldap.rb:142:in `execute' > > >> from /Users/pedz/rails-projects/raptor/lib/active_ldap/adapter/ > > >> ldap.rb:58:in `bind_as_anonymous' > > >> from /Users/pedz/rails-projects/raptor/lib/active_ldap/adapter/ > > >> base.rb:74:in `bind_as_anonymous' > > >> from /Users/pedz/rails-projects/raptor/lib/active_ldap/adapter/ > > > > > > It seems that your LDAP server doesn't accept anonymous > > > connection. (Your authentication information in your > > > config/ldap.yml may be wrong.) > > > > At the time, I could not connect (because I was not at work). But I > > was just trying to do "./script/generate" which seems to load > > active_ldap. Is it possible to postpone when it connects to when the > > connection is first used rather than at load time? > > The plugin doesn't establish connection when you don't have > config/ldap.yml. (This is only time when you need to use > script/generate scaffold_al) I think that you already have > config/ldap.yml. > > Could you confirm that? > > > Thanks, > -- > kou Hi, Correct me if I am wrong (I am new to this), but I think the connection is made here: vendor/plugins/active_ldap/init.rb in line 7: ActiveLdap::Base.establish_connection This line is only executed if there is a configuration file (ldap.yml). So, you could rename the configuration file, do your things without connecting to an ldap server, then later rename your config file back to ldap.yml Hope this helps (and hope this is correct). Ace > > _______________________________________________ > Ruby-activeldap-discuss mailing list > Ruby-activeldap-discuss at rubyforge.org > http://rubyforge.org/mailman/listinfo/ruby-activeldap-discuss From lists at suares.an Tue Aug 21 09:09:07 2007 From: lists at suares.an (Ace Suares) Date: Tue, 21 Aug 2007 09:09:07 -0400 Subject: [Ruby-activeldap-discuss] naming In-Reply-To: <20070821.211954.78761584.kou@cozmixng.org> References: <200708201100.11660.lists@suares.an> <20070821.211954.78761584.kou@cozmixng.org> Message-ID: <200708210909.07320.lists@suares.an> On Tuesday 21 August 2007, Kouhei Sutou wrote: > Hi, > > Will, I want to hear your opinion. > > > whis is the gem called 'ruby-activeldap' and why is it that if you > > want to require it, you need 'active_ldap' ? > > > > What's the official name of the project? > > > > ActiveLDAP ? > > activeldap ? > > ActiveLdap ? > > I want to use the following names: > > For the project name: > > Ruby/ActiveLdap > > For the library name: > > ActiveLdap http://wiki.rubyonrails.org/rails/pages/ActiveLDAP '2007-05-10 parasew: changed the wording from ?ActiveLDAP? to ?ActiveLdap?, since it was changed by the ActiveLdap Developers' I also see someone edited the Project Homepage at rubyforge, and removed one old link. Great !! > > For the rubygems name: > > activeldap (ruby-activeldap for now but I want to change) > > For the require name: > > active_ldap > > > Last, why require 'active_ldap' instead of 'activeldap' ? > > Because of general Ruby's naming convention: > CamelCase for constant name > -> > camel_case/camel-case/camelcase for file name > > Rails uses camel_case convention. We decided to support > Rails, so we use camel_case for file name. Thanks for the explanation. Ace > > > Thanks, > -- > kou > _______________________________________________ > Ruby-activeldap-discuss mailing list > Ruby-activeldap-discuss at rubyforge.org > http://rubyforge.org/mailman/listinfo/ruby-activeldap-discuss From pedz at easesoftware.com Tue Aug 21 11:52:30 2007 From: pedz at easesoftware.com (Perry Smith) Date: Tue, 21 Aug 2007 10:52:30 -0500 Subject: [Ruby-activeldap-discuss] Gem or plugin ? In-Reply-To: <20070821.210433.125497674.kou@cozmixng.org> References: <20070820.223602.154884516.kou@cozmixng.org> <20070821.210433.125497674.kou@cozmixng.org> Message-ID: <46BB7236-8CAC-4709-B517-AF3D19D97ABF@easesoftware.com> On Aug 21, 2007, at 7:04 AM, Kouhei Sutou wrote: > Hi, > > In > "Re: [Ruby-activeldap-discuss] Gem or plugin ?" on Mon, 20 Aug > 2007 10:11:48 -0500, > Perry Smith wrote: > >> On Aug 20, 2007, at 8:36 AM, Kouhei Sutou wrote: >>>> >>>> ./script/generate >>>> /Users/pedz/rails-projects/raptor/lib/active_ldap/adapter/ >>>> ldap_ext.rb: >>>> 66:in `assert_error_code': Can't contact LDAP server >>>> (ActiveLdap::LdapError) >>>> from /Users/pedz/rails-projects/raptor/lib/active_ldap/adapter/ >>>> ldap.rb:142:in `execute' >>>> from /Users/pedz/rails-projects/raptor/lib/active_ldap/adapter/ >>>> ldap.rb:58:in `bind_as_anonymous' >>>> from /Users/pedz/rails-projects/raptor/lib/active_ldap/adapter/ >>>> base.rb:74:in `bind_as_anonymous' >>>> from /Users/pedz/rails-projects/raptor/lib/active_ldap/adapter/ >>> >>> It seems that your LDAP server doesn't accept anonymous >>> connection. (Your authentication information in your >>> config/ldap.yml may be wrong.) >>> >> >> At the time, I could not connect (because I was not at work). But >> I was just trying to do "./script/generate" which seems to load >> active_ldap. Is it possible to postpone when it connects to when >> the connection is first used rather than at load time? > > The plugin doesn't establish connection when you don't have > config/ldap.yml. (This is only time when you need to use > script/generate scaffold_al) I think that you already have > config/ldap.yml. > > Could you confirm that? I did not do "./script/generate scaffold_al" -- I just did "./script/ generate" which just displays the help. It should not need to connect to the ldap server. Perry Smith ( pedz at easesoftware.com ) Ease Software, Inc. ( http://www.easesoftware.com ) Low cost SATA Disk Systems for IBMs p5, pSeries, and RS/6000 AIX systems From kou at cozmixng.org Wed Aug 22 08:03:48 2007 From: kou at cozmixng.org (Kouhei Sutou) Date: Wed, 22 Aug 2007 21:03:48 +0900 (JST) Subject: [Ruby-activeldap-discuss] Gem or plugin ? In-Reply-To: <46BB7236-8CAC-4709-B517-AF3D19D97ABF@easesoftware.com> References: <20070821.210433.125497674.kou@cozmixng.org> <46BB7236-8CAC-4709-B517-AF3D19D97ABF@easesoftware.com> Message-ID: <20070822.210348.207466973.kou@cozmixng.org> Hi, > I did not do "./script/generate scaffold_al" -- I just did "./script/generate" which just displays the help. It should not need to connect to the ldap server. Yes. I know. But ActiveRecord also calls establish_connection even if you type just script/generate. I think the current ActiveLdap plugin's behavior isn't so strange. And there is a workaround: Rename your config/ldap.yml temporarily. Thanks, -- kou From kou at cozmixng.org Wed Aug 22 08:04:31 2007 From: kou at cozmixng.org (Kouhei Sutou) Date: Wed, 22 Aug 2007 21:04:31 +0900 (JST) Subject: [Ruby-activeldap-discuss] 0.8.3? In-Reply-To: References: <20070819.190852.202450939.kou@cozmixng.org> Message-ID: <20070822.210431.159561618.kou@cozmixng.org> Hi, > > I supported Ruby-GetText-Package. So it's a good time to > > release new version. Will, what do you think about this? > > The changes look great! I'll try to roll a new release this week! Thanks! I'll wait for your work. -- kou From kou at cozmixng.org Fri Aug 24 10:17:00 2007 From: kou at cozmixng.org (Kouhei Sutou) Date: Fri, 24 Aug 2007 23:17:00 +0900 (JST) Subject: [Ruby-activeldap-discuss] 0.8.3? In-Reply-To: <200708191918.59292.lists@suares.an> References: <20070819.190852.202450939.kou@cozmixng.org> <200708191918.59292.lists@suares.an> Message-ID: <20070824.231700.41280396.kou@cozmixng.org> Hi, In <200708191918.59292.lists at suares.an> "Re: [Ruby-activeldap-discuss] 0.8.3?" on Sun, 19 Aug 2007 19:18:59 -0400, Ace Suares wrote: > >(I added a sample Rails with ActiveLdap application into > > examples/al-admin/. This also includes login example. > > Could you also include a sample ldif while that works with you admin > example ? I added 'populate feature' not initialize LDIF. And I setup the sample Rails application: http://pub.cozmixng.org/al-admin/ This doesn't have a good look but I think this is a good example for Rails user. Thanks, -- kou From lists at suares.an Sat Aug 25 07:49:52 2007 From: lists at suares.an (Ace Suares) Date: Sat, 25 Aug 2007 07:49:52 -0400 Subject: [Ruby-activeldap-discuss] 0.8.3? In-Reply-To: <20070824.231700.41280396.kou@cozmixng.org> References: <20070819.190852.202450939.kou@cozmixng.org> <200708191918.59292.lists@suares.an> <20070824.231700.41280396.kou@cozmixng.org> Message-ID: <200708250749.52257.lists@suares.an> On Friday 24 August 2007, Kouhei Sutou wrote: > Hi, > > In <200708191918.59292.lists at suares.an> > "Re: [Ruby-activeldap-discuss] 0.8.3?" on Sun, 19 Aug 2007 19:18:59 > -0400, > > Ace Suares wrote: > > >(I added a sample Rails with ActiveLdap application into > > > examples/al-admin/. This also includes login example. > > > > Could you also include a sample ldif while that works with you admin > > example ? > > I added 'populate feature' not initialize LDIF. And I setup > the sample Rails application: > http://pub.cozmixng.org/al-admin/ > > This doesn't have a good look but I think this is a good > example for Rails user. > Great work Kou, but after login something went wrong... ace > > Thanks, > -- > kou > _______________________________________________ > Ruby-activeldap-discuss mailing list > Ruby-activeldap-discuss at rubyforge.org > http://rubyforge.org/mailman/listinfo/ruby-activeldap-discuss From kou at cozmixng.org Sat Aug 25 08:14:22 2007 From: kou at cozmixng.org (Kouhei Sutou) Date: Sat, 25 Aug 2007 21:14:22 +0900 (JST) Subject: [Ruby-activeldap-discuss] 0.8.3? In-Reply-To: <200708250749.52257.lists@suares.an> References: <200708191918.59292.lists@suares.an> <20070824.231700.41280396.kou@cozmixng.org> <200708250749.52257.lists@suares.an> Message-ID: <20070825.211422.199788605.kou@cozmixng.org> Hi, In <200708250749.52257.lists at suares.an> "Re: [Ruby-activeldap-discuss] 0.8.3?" on Sat, 25 Aug 2007 07:49:52 -0400, Ace Suares wrote: > > I added 'populate feature' not initialize LDIF. And I setup > > the sample Rails application: > > http://pub.cozmixng.org/al-admin/ > > > > This doesn't have a good look but I think this is a good > > example for Rails user. > > > > Great work Kou, but after login something went wrong... Could you tell us details? Thanks, -- kou From lists at suares.an Sat Aug 25 08:58:42 2007 From: lists at suares.an (Ace Suares) Date: Sat, 25 Aug 2007 08:58:42 -0400 Subject: [Ruby-activeldap-discuss] 0.8.3? In-Reply-To: <20070825.211422.199788605.kou@cozmixng.org> References: <200708191918.59292.lists@suares.an> <200708250749.52257.lists@suares.an> <20070825.211422.199788605.kou@cozmixng.org> Message-ID: <200708250858.42811.lists@suares.an> On Saturday 25 August 2007, Kouhei Sutou wrote: > Hi, > > In <200708250749.52257.lists at suares.an> > "Re: [Ruby-activeldap-discuss] 0.8.3?" on Sat, 25 Aug 2007 07:49:52 > -0400, > > Ace Suares wrote: > > > I added 'populate feature' not initialize LDIF. And I setup > > > the sample Rails application: > > > http://pub.cozmixng.org/al-admin/ > > > > > > This doesn't have a good look but I think this is a good > > > example for Rails user. > > > > Great work Kou, but after login something went wrong... > > Could you tell us details? > Hmmm... in Firefox, it works fine ! In Konquerer, after login, the page with We're sorry, but something went wrong. We've been notified about this issue and we'll take a look at it shortly. appears. You should be able to see it in your logs. _ace From lists at suares.an Sat Aug 25 18:10:54 2007 From: lists at suares.an (Ace Suares) Date: Sat, 25 Aug 2007 18:10:54 -0400 Subject: [Ruby-activeldap-discuss] 0.8.3? In-Reply-To: <20070825.211422.199788605.kou@cozmixng.org> References: <200708191918.59292.lists@suares.an> <200708250749.52257.lists@suares.an> <20070825.211422.199788605.kou@cozmixng.org> Message-ID: <200708251810.54501.lists@suares.an> On Saturday 25 August 2007, Kouhei Sutou wrote: > > > > I added 'populate feature' not initialize LDIF. And I setup Kou, how does this work ? I tested with the newest plugin (but did not upgrade the rest of ruby-activeldap. Now If I go to irb, irb> require 'active_ldap' class User < ActiveLdap::Base ldap_mapping end User.connected? => false ActiveLdap::Base.establish_connection => true User.connected? -> true Should I update the gem too ? This can pose some problems since for a new rails app is use trunk to get the plugin.... _ace > > Thanks, > -- > kou > _______________________________________________ > Ruby-activeldap-discuss mailing list > Ruby-activeldap-discuss at rubyforge.org > http://rubyforge.org/mailman/listinfo/ruby-activeldap-discuss From kou at cozmixng.org Sat Aug 25 20:48:57 2007 From: kou at cozmixng.org (Kouhei Sutou) Date: Sun, 26 Aug 2007 09:48:57 +0900 (JST) Subject: [Ruby-activeldap-discuss] 0.8.3? In-Reply-To: <200708251810.54501.lists@suares.an> References: <200708250749.52257.lists@suares.an> <20070825.211422.199788605.kou@cozmixng.org> <200708251810.54501.lists@suares.an> Message-ID: <20070826.094857.38631691.kou@cozmixng.org> Hi, In <200708251810.54501.lists at suares.an> "Re: [Ruby-activeldap-discuss] 0.8.3?" on Sat, 25 Aug 2007 18:10:54 -0400, Ace Suares wrote: > > > > I added 'populate feature' not initialize LDIF. And I setup > > Kou, how does this work ? I didn't add the feature to al-admin, the sample Rails application, not the Rails plugin. > Should I update the gem too ? This can pose some problems since for a new > rails app is use trunk to get the plugin.... The Rails plugin user will not have any problems. If they want to use the feature, they need to use trunk and consult al-admin's code. The trunk will be released soon. So they will be able to use 0.8.3 not trunk. Thanks, -- kou From kou at cozmixng.org Sat Aug 25 20:51:02 2007 From: kou at cozmixng.org (Kouhei Sutou) Date: Sun, 26 Aug 2007 09:51:02 +0900 (JST) Subject: [Ruby-activeldap-discuss] 0.8.3? In-Reply-To: <200708250858.42811.lists@suares.an> References: <200708250749.52257.lists@suares.an> <20070825.211422.199788605.kou@cozmixng.org> <200708250858.42811.lists@suares.an> Message-ID: <20070826.095102.156322104.kou@cozmixng.org> Hi, In <200708250858.42811.lists at suares.an> "Re: [Ruby-activeldap-discuss] 0.8.3?" on Sat, 25 Aug 2007 08:58:42 -0400, Ace Suares wrote: > > > > I added 'populate feature' not initialize LDIF. And I setup > > > > the sample Rails application: > > > > http://pub.cozmixng.org/al-admin/ > > > > > > > > This doesn't have a good look but I think this is a good > > > > example for Rails user. > > > > > > Great work Kou, but after login something went wrong... > > > > Could you tell us details? > > > > Hmmm... in Firefox, it works fine ! > > In Konquerer, after login, the page with > > We're sorry, but something went wrong. > We've been notified about this issue and we'll take a look at it shortly. > > appears. You should be able to see it in your logs. OK. I could reconfirm this with Konquerer. I think this is related my proxy settings. I'll check this. Thanks, -- kou From lists at suares.an Sat Aug 25 22:45:21 2007 From: lists at suares.an (Ace Suares) Date: Sat, 25 Aug 2007 22:45:21 -0400 Subject: [Ruby-activeldap-discuss] 0.8.3? In-Reply-To: <20070826.094857.38631691.kou@cozmixng.org> References: <200708250749.52257.lists@suares.an> <200708251810.54501.lists@suares.an> <20070826.094857.38631691.kou@cozmixng.org> Message-ID: <200708252245.21216.lists@suares.an> On Saturday 25 August 2007, Kouhei Sutou wrote: > Hi, > > In <200708251810.54501.lists at suares.an> > "Re: [Ruby-activeldap-discuss] 0.8.3?" on Sat, 25 Aug 2007 18:10:54 > -0400, > > Ace Suares wrote: > > > > > I added 'populate feature' not initialize LDIF. And I setup > > > > Kou, how does this work ? > > I didn't add the feature to al-admin, the sample Rails > application, not the Rails plugin. > > > Should I update the gem too ? This can pose some problems since for a > > new rails app is use trunk to get the plugin.... > > The Rails plugin user will not have any problems. If they > want to use the feature, they need to use trunk and consult > al-admin's code. The trunk will be released soon. So they > will be able to use 0.8.3 not trunk. Sorry. I realized that irb has nothing to do with the plugin. Please check www.activeldap.com/sample-application (work in progress). I'll get to your sample application soon. It's a lot of work writing docs and trying to understand how it all works. But I think that many people are confused by activeldap as it is. I hope my efforts will help people. I didn't understand that a class automatically searches for ou=class-plural unless you use :prefix. Now I do. Thanks to the docs :-) I also ask you to send output of slapcat to me to see how you set up DIT. One more question: If I want to change rdoc docs, I need to edit source, thus use svn, right ? I think some rdoc is missing and some is outdated, right ? Keep up the good work. Ace > > > Thanks, > -- > kou > _______________________________________________ > Ruby-activeldap-discuss mailing list > Ruby-activeldap-discuss at rubyforge.org > http://rubyforge.org/mailman/listinfo/ruby-activeldap-discuss From kou at cozmixng.org Sat Aug 25 23:31:10 2007 From: kou at cozmixng.org (Kouhei Sutou) Date: Sun, 26 Aug 2007 12:31:10 +0900 (JST) Subject: [Ruby-activeldap-discuss] 0.8.3? In-Reply-To: <20070826.095102.156322104.kou@cozmixng.org> References: <20070825.211422.199788605.kou@cozmixng.org> <200708250858.42811.lists@suares.an> <20070826.095102.156322104.kou@cozmixng.org> Message-ID: <20070826.123110.255006369.kou@cozmixng.org> Hi, In <20070826.095102.156322104.kou at cozmixng.org> "Re: [Ruby-activeldap-discuss] 0.8.3?" on Sun, 26 Aug 2007 09:51:02 +0900 (JST), Kouhei Sutou wrote: > > > > > I added 'populate feature' not initialize LDIF. And I setup > > > > > the sample Rails application: > > > > > http://pub.cozmixng.org/al-admin/ > > > > > > > > > > This doesn't have a good look but I think this is a good > > > > > example for Rails user. > > > > > > > > Great work Kou, but after login something went wrong... > > > > > > Could you tell us details? > > > > > > > Hmmm... in Firefox, it works fine ! > > > > In Konquerer, after login, the page with > > > > We're sorry, but something went wrong. > > We've been notified about this issue and we'll take a look at it shortly. > > > > appears. You should be able to see it in your logs. > > OK. I could reconfirm this with Konquerer. > I think this is related my proxy settings. I'll check this. I found this is a bug of Ruby-GetText Package 0.10. And I confirmed that this is fixed in HEAD. In the demo site, I've fixed this problem. Thanks, -- kou From kou at cozmixng.org Sat Aug 25 23:50:56 2007 From: kou at cozmixng.org (Kouhei Sutou) Date: Sun, 26 Aug 2007 12:50:56 +0900 (JST) Subject: [Ruby-activeldap-discuss] 0.8.3? In-Reply-To: <200708252245.21216.lists@suares.an> References: <200708251810.54501.lists@suares.an> <20070826.094857.38631691.kou@cozmixng.org> <200708252245.21216.lists@suares.an> Message-ID: <20070826.125056.57124164.kou@cozmixng.org> Hi, In <200708252245.21216.lists at suares.an> "Re: [Ruby-activeldap-discuss] 0.8.3?" on Sat, 25 Aug 2007 22:45:21 -0400, Ace Suares wrote: > I'll get to your sample application soon. It's a lot of work writing docs > and trying to understand how it all works. But I think that many people > are confused by activeldap as it is. I hope my efforts will help people. Great! > I didn't understand that a class automatically searches for > ou=class-plural unless you use :prefix. Now I do. Thanks to the docs :-) They are Will's works. > I also ask you to send output of slapcat to me to see how you set up DIT. DIT of the demo site? You can see the tree from the demo site. Follow "Directory" link in the top page. I constructed the tree with the sample application's populate feature. I didn't write any LDIF for constructing the tree. I just made an administrator user and configured access controls for slapd. (You can use ActiveLdap::UserPassword.ssha("secret") to generate SSHA hashed administrator's password (rootpw) instead of slappasswd) > One more question: If I want to change rdoc docs, I need to edit source, > thus use svn, right ? I think some rdoc is missing and some is outdated, > right ? Yes. Both of them are right. Thanks, -- kou From lists at suares.an Sun Aug 26 01:22:32 2007 From: lists at suares.an (Ace Suares) Date: Sun, 26 Aug 2007 01:22:32 -0400 Subject: [Ruby-activeldap-discuss] 0.8.3? In-Reply-To: <20070826.123110.255006369.kou@cozmixng.org> References: <20070825.211422.199788605.kou@cozmixng.org> <20070826.095102.156322104.kou@cozmixng.org> <20070826.123110.255006369.kou@cozmixng.org> Message-ID: <200708260122.32605.lists@suares.an> On Saturday 25 August 2007, Kouhei Sutou wrote: > Hi, > > In <20070826.095102.156322104.kou at cozmixng.org> > "Re: [Ruby-activeldap-discuss] 0.8.3?" on Sun, 26 Aug 2007 09:51:02 > +0900 (JST), > > Kouhei Sutou wrote: > > > > > > I added 'populate feature' not initialize LDIF. And I setup > > > > > > the sample Rails application: > > > > > > http://pub.cozmixng.org/al-admin/ > > > > > > > > > > > > This doesn't have a good look but I think this is a good > > > > > > example for Rails user. > > > > > > > > > > Great work Kou, but after login something went wrong... > > > > > > > > Could you tell us details? > > > > > > Hmmm... in Firefox, it works fine ! > > > > > > In Konquerer, after login, the page with > > > > > > We're sorry, but something went wrong. > > > We've been notified about this issue and we'll take a look at it > > > shortly. > > > > > > appears. You should be able to see it in your logs. > > > > OK. I could reconfirm this with Konquerer. > > I think this is related my proxy settings. I'll check this. > > I found this is a bug of Ruby-GetText Package 0.10. And I > confirmed that this is fixed in HEAD. In the demo site, I've > fixed this problem. > It works now! How do I switch to dutch language to see my feeble attempts at translation ? ace > > Thanks, > -- > kou > _______________________________________________ > Ruby-activeldap-discuss mailing list > Ruby-activeldap-discuss at rubyforge.org > http://rubyforge.org/mailman/listinfo/ruby-activeldap-discuss From kou at cozmixng.org Sun Aug 26 01:44:17 2007 From: kou at cozmixng.org (Kouhei Sutou) Date: Sun, 26 Aug 2007 14:44:17 +0900 (JST) Subject: [Ruby-activeldap-discuss] 0.8.3? In-Reply-To: <200708260122.32605.lists@suares.an> References: <20070826.095102.156322104.kou@cozmixng.org> <20070826.123110.255006369.kou@cozmixng.org> <200708260122.32605.lists@suares.an> Message-ID: <20070826.144417.70413934.kou@cozmixng.org> Hi, In <200708260122.32605.lists at suares.an> "Re: [Ruby-activeldap-discuss] 0.8.3?" on Sun, 26 Aug 2007 01:22:32 -0400, Ace Suares wrote: > > I found this is a bug of Ruby-GetText Package 0.10. And I > > confirmed that this is fixed in HEAD. In the demo site, I've > > fixed this problem. > > > > It works now! > > How do I switch to dutch language to see my feeble attempts at > translation ? Change your browser's prefer language configuration and increase dutch language (nl) priority rather than English (en). Or add '?lang=nl' to the URL. e.g.: http://pub.cozmixng.org/al-admin/?lang=nl Thanks, -- kou From lists at suares.an Sun Aug 26 11:40:37 2007 From: lists at suares.an (Ace Suares) Date: Sun, 26 Aug 2007 11:40:37 -0400 Subject: [Ruby-activeldap-discuss] 0.8.3? In-Reply-To: <20070826.144417.70413934.kou@cozmixng.org> References: <20070826.095102.156322104.kou@cozmixng.org> <200708260122.32605.lists@suares.an> <20070826.144417.70413934.kou@cozmixng.org> Message-ID: <200708261140.38026.lists@suares.an> On Sunday 26 August 2007, Kouhei Sutou wrote: > Hi, > {snip} > > How do I switch to dutch language to see my feeble attempts at > > translation ? > > Change your browser's prefer language configuration and > increase dutch language (nl) priority rather than English > (en). Or add '?lang=nl' to the URL. e.g.: > http://pub.cozmixng.org/al-admin/?lang=nl > Hi all, Changing the browser language works fine; adding the query to the URL does not. The query gets lost, for instance: http://pub.cozmixng.org/al-admin/account/sign_up/?lang=nl On that page, enter something that generates an error (two different passwords), and press submit. You'll be redirected to http://pub.cozmixng.org/al-admin/account/sign_up (without the ?lang=nl). Other issue: I think the first submit_tag needs to be removed, since when you fill in the user/pass/pass2 and press submit, it will complain about 'sn' missing. Other issue: if you enter nothing at all into the signup form, you get a 'SSWW'-page (Sorry, Something Went Wrong). Ace > > Thanks, > -- > kou > _______________________________________________ > Ruby-activeldap-discuss mailing list > Ruby-activeldap-discuss at rubyforge.org > http://rubyforge.org/mailman/listinfo/ruby-activeldap-discuss From pedz at easesoftware.com Sun Aug 26 11:45:05 2007 From: pedz at easesoftware.com (Perry Smith) Date: Sun, 26 Aug 2007 10:45:05 -0500 Subject: [Ruby-activeldap-discuss] 0.8.3? In-Reply-To: <200708261140.38026.lists@suares.an> References: <20070826.095102.156322104.kou@cozmixng.org> <200708260122.32605.lists@suares.an> <20070826.144417.70413934.kou@cozmixng.org> <200708261140.38026.lists@suares.an> Message-ID: <73154A3E-A9D7-4C54-9396-995E5C43ED8A@easesoftware.com> Try taking out the slash at the end: http://pub.cozmixng.org/al-admin/account/sign_up?lang=nl works for me (well, it does something) On Aug 26, 2007, at 10:40 AM, Ace Suares wrote: > http://pub.cozmixng.org/al-admin/account/sign_up/?lang=nl -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/ruby-activeldap-discuss/attachments/20070826/548c179f/attachment.html From lists at suares.an Sun Aug 26 19:19:40 2007 From: lists at suares.an (Ace Suares) Date: Sun, 26 Aug 2007 19:19:40 -0400 Subject: [Ruby-activeldap-discuss] 0.8.3? In-Reply-To: <73154A3E-A9D7-4C54-9396-995E5C43ED8A@easesoftware.com> References: <20070826.095102.156322104.kou@cozmixng.org> <200708261140.38026.lists@suares.an> <73154A3E-A9D7-4C54-9396-995E5C43ED8A@easesoftware.com> Message-ID: <200708261919.40304.lists@suares.an> On Sunday 26 August 2007, Perry Smith wrote: > Try taking out the slash at the end: > > http://pub.cozmixng.org/al-admin/account/sign_up?lang=nl > > works for me (well, it does something) > > On Aug 26, 2007, at 10:40 AM, Ace Suares wrote: > > http://pub.cozmixng.org/al-admin/account/sign_up/?lang=nl No... http://pub.cozmixng.org/al-admin/?lang=nl Check the link on the buttons, the don't transport the lang setting, or do they ? Is it stored in a cookie ? _ace From lists at suares.an Sun Aug 26 19:24:19 2007 From: lists at suares.an (Ace Suares) Date: Sun, 26 Aug 2007 19:24:19 -0400 Subject: [Ruby-activeldap-discuss] 0.8.3? In-Reply-To: References: <20070826.095102.156322104.kou@cozmixng.org> Message-ID: <200708261924.19985.lists@suares.an> On Sunday 26 August 2007, Will Drewry? wrote: > After poking around, I've gone ahead and tagged and released 0.8.3. > The gems and tarballs are live on RubyForge. Please let me know if > they seem alright! If so, I'll make a news items and update relevant > sites with the new version! > When i try gem update I get: Updating installed gems... Attempting remote update of ruby-activeldap Successfully installed ruby-activeldap-0.8.3 Installing ri documentation for ruby-activeldap-0.8.3... File not found: lib Cheers, ace > Thanks!! > will > > On 8/26/07, Will Drewry? wrote: > > Hi all - > > > > Is everything pretty settled/stable with trunk right now? (Bugs > > sorted, et al) If so, I'll roll the release today. > > > > Thanks!! > > will > > > > On 8/26/07, Perry Smith wrote: > > > Try taking out the slash at the end: > > > http://pub.cozmixng.org/al-admin/account/sign_up?lang=nl > > > > > > works for me (well, it does something) > > > > > > On Aug 26, 2007, at 10:40 AM, Ace Suares wrote: > > > > > > http://pub.cozmixng.org/al-admin/account/sign_up/?lang=nl > > > > > > > > > > > > _______________________________________________ > > > Ruby-activeldap-discuss mailing list > > > Ruby-activeldap-discuss at rubyforge.org > > > http://rubyforge.org/mailman/listinfo/ruby-activeldap-discuss From kou at cozmixng.org Mon Aug 27 06:59:36 2007 From: kou at cozmixng.org (Kouhei Sutou) Date: Mon, 27 Aug 2007 19:59:36 +0900 (JST) Subject: [Ruby-activeldap-discuss] 0.8.3? In-Reply-To: References: <73154A3E-A9D7-4C54-9396-995E5C43ED8A@easesoftware.com> Message-ID: <20070827.195936.250784039.kou@cozmixng.org> Hi, In "Re: [Ruby-activeldap-discuss] 0.8.3?" on Sun, 26 Aug 2007 11:45:39 -0700, "Will Drewry?" wrote: > After poking around, I've gone ahead and tagged and released 0.8.3. The gems > and tarballs are live on RubyForge. Please let me know if they seem alright! > If so, I'll make a news items and update relevant sites with the new version! Thanks! But it seems that the gem is broken. The gem's spec file only lists test/* files. There aren't any lib/* and other files. Could you recreate gem file? I changed Rakefile to generate Manifest.txt automatically. It may cause some problems. (On my environment, there are no problem...) -- kou From kou at cozmixng.org Mon Aug 27 07:43:06 2007 From: kou at cozmixng.org (Kouhei Sutou) Date: Mon, 27 Aug 2007 20:43:06 +0900 (JST) Subject: [Ruby-activeldap-discuss] 0.8.3? In-Reply-To: <200708261140.38026.lists@suares.an> References: <200708260122.32605.lists@suares.an> <20070826.144417.70413934.kou@cozmixng.org> <200708261140.38026.lists@suares.an> Message-ID: <20070827.204306.88549472.kou@cozmixng.org> Hi, In <200708261140.38026.lists at suares.an> "Re: [Ruby-activeldap-discuss] 0.8.3?" on Sun, 26 Aug 2007 11:40:37 -0400, Ace Suares wrote: > > Change your browser's prefer language configuration and > > increase dutch language (nl) priority rather than English > > (en). Or add '?lang=nl' to the URL. e.g.: > > http://pub.cozmixng.org/al-admin/?lang=nl > > > > Changing the browser language works fine; adding the query to the URL does > not. The query gets lost, for instance: > > http://pub.cozmixng.org/al-admin/account/sign_up/?lang=nl > > On that page, enter something that generates an error (two different > passwords), and press submit. > > You'll be redirected to http://pub.cozmixng.org/al-admin/account/sign_up > (without the ?lang=nl). I supported lang parameter in URL. e.g.: http://pub.cozmixng.org/al-admin/nl/ Now, you don't need to add ?lang=nl to each request. > Other issue: I think the first submit_tag needs to be removed, since when > you fill in the user/pass/pass2 and press submit, it will complain > about 'sn' missing. > > Other issue: if you enter nothing at all into the signup form, you get > a 'SSWW'-page (Sorry, Something Went Wrong). Next, I'll fix it. Thanks, -- kou From kou at cozmixng.org Mon Aug 27 08:05:43 2007 From: kou at cozmixng.org (Kouhei Sutou) Date: Mon, 27 Aug 2007 21:05:43 +0900 (JST) Subject: [Ruby-activeldap-discuss] 0.8.3? In-Reply-To: <20070827.204306.88549472.kou@cozmixng.org> References: <20070826.144417.70413934.kou@cozmixng.org> <200708261140.38026.lists@suares.an> <20070827.204306.88549472.kou@cozmixng.org> Message-ID: <20070827.210543.39456900.kou@cozmixng.org> Hi, In <20070827.204306.88549472.kou at cozmixng.org> "Re: [Ruby-activeldap-discuss] 0.8.3?" on Mon, 27 Aug 2007 20:43:06 +0900 (JST), Kouhei Sutou wrote: > > Other issue: I think the first submit_tag needs to be removed, since when > > you fill in the user/pass/pass2 and press submit, it will complain > > about 'sn' missing. Uhmm... I thought this is a good example that ActiveLdap can validate required attribute... > > Other issue: if you enter nothing at all into the signup form, you get > > a 'SSWW'-page (Sorry, Something Went Wrong). > > Next, I'll fix it. I've fixed this. And there is a problem. If we specify no-DN value to seeAlso, AL-Admin shows error page. We need to improve ActiveLdap's validation codes. Thanks, -- kou From kou at cozmixng.org Tue Aug 28 20:17:46 2007 From: kou at cozmixng.org (Kouhei Sutou) Date: Wed, 29 Aug 2007 09:17:46 +0900 Subject: [Ruby-activeldap-discuss] 0.8.3? In-Reply-To: References: <20070826.144417.70413934.kou@cozmixng.org> <200708261140.38026.lists@suares.an> <20070827.204306.88549472.kou@cozmixng.org> <20070827.210543.39456900.kou@cozmixng.org> Message-ID: Hi, 2007/8/29, Will Drewry? : > In order to fix them gem, I was going to tag a new release (0.8.3p1). Is it > safe to tag trunk as it is, or should I branch from the 0.8.3 tag and patch > in the Manifest.txt changes and anything else? Please use trunk. I've fixed some bugs since you made a gem. If you cannot generate Manifest.txt correctly, please tell us. Thanks, -- kou From lists at suares.an Wed Aug 29 20:33:52 2007 From: lists at suares.an (Ace Suares) Date: Wed, 29 Aug 2007 20:33:52 -0400 Subject: [Ruby-activeldap-discuss] 0.8.3? In-Reply-To: References: <20070826.144417.70413934.kou@cozmixng.org> Message-ID: <200708292033.52885.lists@suares.an> Hi, Will uploaded 0.8.3.1 I tried 'gem update' and this time it worked. Manifest.txt seems to be missing tough. I updated www.activeldap.com accordingly. Ace On Tuesday 28 August 2007, Kouhei Sutou wrote: > Hi, > > 2007/8/29, Will Drewry? : > > In order to fix them gem, I was going to tag a new release (0.8.3p1). > > Is it safe to tag trunk as it is, or should I branch from the 0.8.3 > > tag and patch in the Manifest.txt changes and anything else? > > Please use trunk. I've fixed some bugs since you made a gem. > If you cannot generate Manifest.txt correctly, please tell us. > > > Thanks, > -- > kou > _______________________________________________ > Ruby-activeldap-discuss mailing list > Ruby-activeldap-discuss at rubyforge.org > http://rubyforge.org/mailman/listinfo/ruby-activeldap-discuss From kou at cozmixng.org Thu Aug 30 06:30:55 2007 From: kou at cozmixng.org (Kouhei Sutou) Date: Thu, 30 Aug 2007 19:30:55 +0900 (JST) Subject: [Ruby-activeldap-discuss] 0.8.3? In-Reply-To: References: Message-ID: <20070830.193055.234411763.kou@cozmixng.org> Hi, In "Re: [Ruby-activeldap-discuss] 0.8.3?" on Wed, 29 Aug 2007 09:20:51 -0700, "Will Drewry?" wrote: > It looks like the Find.find() needed a trailing slash on the base_dir. That > appears to have fixed it and I've posted 0.8.3.1. Please let me know how this > one looks! It looks good. But I don't know why we need to add "/"... Anyway, thanks for releasing! -- kou From kou at cozmixng.org Thu Aug 30 06:32:14 2007 From: kou at cozmixng.org (Kouhei Sutou) Date: Thu, 30 Aug 2007 19:32:14 +0900 (JST) Subject: [Ruby-activeldap-discuss] 0.8.3? In-Reply-To: <200708292033.52885.lists@suares.an> References: <200708292033.52885.lists@suares.an> Message-ID: <20070830.193214.45206805.kou@cozmixng.org> Hi, > Manifest.txt seems to be missing tough. I rejects Manifest.txt from .gem explicitly because Manifest.txt is just only for hoe. Thanks, -- kou From kou at cozmixng.org Thu Aug 30 08:32:13 2007 From: kou at cozmixng.org (Kouhei Sutou) Date: Thu, 30 Aug 2007 21:32:13 +0900 (JST) Subject: [Ruby-activeldap-discuss] 0.8.3? In-Reply-To: <20070827.210543.39456900.kou@cozmixng.org> References: <200708261140.38026.lists@suares.an> <20070827.204306.88549472.kou@cozmixng.org> <20070827.210543.39456900.kou@cozmixng.org> Message-ID: <20070830.213213.10939954.kou@cozmixng.org> Hi, In <20070827.210543.39456900.kou at cozmixng.org> "Re: [Ruby-activeldap-discuss] 0.8.3?" on Mon, 27 Aug 2007 21:05:43 +0900 (JST), Kouhei Sutou wrote: > And there is a problem. If we specify no-DN value to > seeAlso, AL-Admin shows error page. We need to improve > ActiveLdap's validation codes. I've fixed this too. Thanks, -- kou From lists at suares.an Thu Aug 30 19:08:37 2007 From: lists at suares.an (Ace Suares) Date: Thu, 30 Aug 2007 19:08:37 -0400 Subject: [Ruby-activeldap-discuss] ./script/generate in 0.8.3.1 still needs ldapserver Message-ID: <200708301908.37684.lists@suares.an> Hi, When using 0.8.3.1 and trying to do ./script/generate model User while the ldapserver is down, results in the following error. Kou, I tought you had fixed that? Please advise. /usr/local/lib/ruby/gems/1.8/gems/ruby-activeldap-0.8.3.1/lib/active_ldap/adapter/base.rb:462:in `reconnect': Giving up trying to reconnect to LDAP server. (ActiveLdap::ConnectionError) from /usr/local/lib/ruby/gems/1.8/gems/ruby-activeldap-0.8.3.1/lib/active_ldap/adapter/base.rb:460:in `loop' from /usr/local/lib/ruby/gems/1.8/gems/ruby-activeldap-0.8.3.1/lib/active_ldap/adapter/base.rb:460:in `reconnect' from /usr/local/lib/ruby/gems/1.8/gems/ruby-activeldap-0.8.3.1/lib/active_ldap/adapter/ldap.rb:154:in `with_timeout' from /usr/local/lib/ruby/gems/1.8/gems/ruby-activeldap-0.8.3.1/lib/active_ldap/adapter/base.rb:204:in `operation' from /usr/local/lib/ruby/gems/1.8/gems/ruby-activeldap-0.8.3.1/lib/active_ldap/adapter/base.rb:281:in `simple_bind' from /usr/local/lib/ruby/gems/1.8/gems/ruby-activeldap-0.8.3.1/lib/active_ldap/adapter/ldap.rb:205:in `simple_bind' from /usr/local/lib/ruby/gems/1.8/gems/ruby-activeldap-0.8.3.1/lib/active_ldap/adapter/base.rb:61:in `bind' from /usr/local/lib/ruby/gems/1.8/gems/ruby-activeldap-0.8.3.1/lib/active_ldap/adapter/ldap.rb:51:in `bind' ... 16 levels... from /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/commands/generate.rb:1 from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require' from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require' from ./script/generate:3 _ace From lists at suares.an Fri Aug 31 06:50:48 2007 From: lists at suares.an (Ace Suares) Date: Fri, 31 Aug 2007 06:50:48 -0400 Subject: [Ruby-activeldap-discuss] ./script/generate in 0.8.3.1 still needs ldapserver In-Reply-To: <200708301908.37684.lists@suares.an> References: <200708301908.37684.lists@suares.an> Message-ID: <200708310650.48995.lists@suares.an> Hi, Even worse, this happens already at ./script generate scaffold_al So, now it's broken. I don't get it: init.rb says to look for the config file before establishing a connection. Still, it's clearly making a connection (or trying to, but for lack of server, username or passwords it'll fail). This was what I did: rails testapp cd testapp ./script/plugin install \ http://ruby-activeldap.googlecode.com/svn/trunk/rails/plugin/active_ldap/ ./script/generate scaffold_al _Ace On Thursday 30 August 2007, Ace Suares wrote: > Hi, > > When using 0.8.3.1 and trying to do > > ./script/generate model User > > while the ldapserver is down, results in the following error. Kou, I > tought you had fixed that? Please advise. > > > /usr/local/lib/ruby/gems/1.8/gems/ruby-activeldap-0.8.3.1/lib/active_ld >ap/adapter/base.rb:462:in `reconnect': Giving up trying to reconnect to > LDAP server. > (ActiveLdap::ConnectionError) > > from > /usr/local/lib/ruby/gems/1.8/gems/ruby-activeldap-0.8.3.1/lib/active_ld >ap/adapter/base.rb:460:in `loop' > > from > /usr/local/lib/ruby/gems/1.8/gems/ruby-activeldap-0.8.3.1/lib/active_ld >ap/adapter/base.rb:460:in `reconnect' > > from > /usr/local/lib/ruby/gems/1.8/gems/ruby-activeldap-0.8.3.1/lib/active_ld >ap/adapter/ldap.rb:154:in `with_timeout' > > from > /usr/local/lib/ruby/gems/1.8/gems/ruby-activeldap-0.8.3.1/lib/active_ld >ap/adapter/base.rb:204:in `operation' > > from > /usr/local/lib/ruby/gems/1.8/gems/ruby-activeldap-0.8.3.1/lib/active_ld >ap/adapter/base.rb:281:in `simple_bind' > > from > /usr/local/lib/ruby/gems/1.8/gems/ruby-activeldap-0.8.3.1/lib/active_ld >ap/adapter/ldap.rb:205:in `simple_bind' > > from > /usr/local/lib/ruby/gems/1.8/gems/ruby-activeldap-0.8.3.1/lib/active_ld >ap/adapter/base.rb:61:in `bind' > > from > /usr/local/lib/ruby/gems/1.8/gems/ruby-activeldap-0.8.3.1/lib/active_ld >ap/adapter/ldap.rb:51:in `bind' > ... 16 levels... > > from > /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/commands/generate.rb: >1 from > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > `gem_original_require' > from > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > `require' > from ./script/generate:3 > > > _ace > _______________________________________________ > Ruby-activeldap-discuss mailing list > Ruby-activeldap-discuss at rubyforge.org > http://rubyforge.org/mailman/listinfo/ruby-activeldap-discuss From lists at suares.an Fri Aug 31 07:48:34 2007 From: lists at suares.an (Ace Suares) Date: Fri, 31 Aug 2007 07:48:34 -0400 Subject: [Ruby-activeldap-discuss] SOLVED ./script/generate in 0.8.3.1 still needs ldapserver In-Reply-To: <200708310650.48995.lists@suares.an> References: <200708301908.37684.lists@suares.an> <200708310650.48995.lists@suares.an> Message-ID: <200708310748.34408.lists@suares.an> Hi I am very sorry. I had the gem not updated, still using 0.8.2 Since I update the plugin from trunk with every app install, sometimes I get confused. Is it possible to build in something like warning in plugin, working with version.... ace On Friday 31 August 2007, Ace Suares wrote: > Hi, > > Even worse, this happens already at > > ./script generate scaffold_al > > So, now it's broken. > > I don't get it: init.rb says to look for the config file before > establishing a connection. Still, it's clearly making a connection (or > trying to, but for lack of server, username or passwords it'll fail). > > This was what I did: > > > rails testapp > cd testapp > ./script/plugin install \ > > http://ruby-activeldap.googlecode.com/svn/trunk/rails/plugin/active_lda >p/ ./script/generate scaffold_al > > _Ace > > On Thursday 30 August 2007, Ace Suares wrote: > > Hi, > > > > When using 0.8.3.1 and trying to do > > > > ./script/generate model User > > > > while the ldapserver is down, results in the following error. Kou, I > > tought you had fixed that? Please advise. > > > > > > /usr/local/lib/ruby/gems/1.8/gems/ruby-activeldap-0.8.3.1/lib/active_ > >ld ap/adapter/base.rb:462:in `reconnect': Giving up trying to > > reconnect to LDAP server. > > (ActiveLdap::ConnectionError) > > > > from > > /usr/local/lib/ruby/gems/1.8/gems/ruby-activeldap-0.8.3.1/lib/active_ > >ld ap/adapter/base.rb:460:in `loop' > > > > from > > /usr/local/lib/ruby/gems/1.8/gems/ruby-activeldap-0.8.3.1/lib/active_ > >ld ap/adapter/base.rb:460:in `reconnect' > > > > from > > /usr/local/lib/ruby/gems/1.8/gems/ruby-activeldap-0.8.3.1/lib/active_ > >ld ap/adapter/ldap.rb:154:in `with_timeout' > > > > from > > /usr/local/lib/ruby/gems/1.8/gems/ruby-activeldap-0.8.3.1/lib/active_ > >ld ap/adapter/base.rb:204:in `operation' > > > > from > > /usr/local/lib/ruby/gems/1.8/gems/ruby-activeldap-0.8.3.1/lib/active_ > >ld ap/adapter/base.rb:281:in `simple_bind' > > > > from > > /usr/local/lib/ruby/gems/1.8/gems/ruby-activeldap-0.8.3.1/lib/active_ > >ld ap/adapter/ldap.rb:205:in `simple_bind' > > > > from > > /usr/local/lib/ruby/gems/1.8/gems/ruby-activeldap-0.8.3.1/lib/active_ > >ld ap/adapter/base.rb:61:in `bind' > > > > from > > /usr/local/lib/ruby/gems/1.8/gems/ruby-activeldap-0.8.3.1/lib/active_ > >ld ap/adapter/ldap.rb:51:in `bind' > > ... 16 levels... > > > > from > > /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/commands/generate.r > >b: 1 from > > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > > `gem_original_require' > > from > > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > > `require' > > from ./script/generate:3 > > > > > > _ace > > _______________________________________________ > > Ruby-activeldap-discuss mailing list > > Ruby-activeldap-discuss at rubyforge.org > > http://rubyforge.org/mailman/listinfo/ruby-activeldap-discuss > > _______________________________________________ > Ruby-activeldap-discuss mailing list > Ruby-activeldap-discuss at rubyforge.org > http://rubyforge.org/mailman/listinfo/ruby-activeldap-discuss From kou at cozmixng.org Fri Aug 31 08:56:32 2007 From: kou at cozmixng.org (Kouhei Sutou) Date: Fri, 31 Aug 2007 21:56:32 +0900 (JST) Subject: [Ruby-activeldap-discuss] SOLVED ./script/generate in 0.8.3.1 still needs ldapserver In-Reply-To: <200708310748.34408.lists@suares.an> References: <200708301908.37684.lists@suares.an> <200708310650.48995.lists@suares.an> <200708310748.34408.lists@suares.an> Message-ID: <20070831.215632.64182688.kou@cozmixng.org> Hi, > Since I update the plugin from trunk with every app install, sometimes I > get confused. Is it possible to build in something like warning in > plugin, working with version.... OK. I added version check codes to the Rails plugin. Thanks, -- kou From lists at suares.an Fri Aug 31 11:07:03 2007 From: lists at suares.an (Ace Suares) Date: Fri, 31 Aug 2007 11:07:03 -0400 Subject: [Ruby-activeldap-discuss] SOLVED ./script/generate in 0.8.3.1 still needs ldapserver In-Reply-To: <20070831.215632.64182688.kou@cozmixng.org> References: <200708301908.37684.lists@suares.an> <200708310748.34408.lists@suares.an> <20070831.215632.64182688.kou@cozmixng.org> Message-ID: <200708311107.03700.lists@suares.an> On Friday 31 August 2007, Kouhei Sutou wrote: > Hi, > > > Since I update the plugin from trunk with every app install, > > sometimes I get confused. Is it possible to build in something like > > warning in plugin, working with version.... > > OK. I added version check codes to the Rails plugin. cool. ace > > > Thanks, > -- > kou > _______________________________________________ > Ruby-activeldap-discuss mailing list > Ruby-activeldap-discuss at rubyforge.org > http://rubyforge.org/mailman/listinfo/ruby-activeldap-discuss From lists at suares.an Fri Aug 31 23:23:25 2007 From: lists at suares.an (Ace Suares) Date: Fri, 31 Aug 2007 23:23:25 -0400 Subject: [Ruby-activeldap-discuss] scaffold_al is now called scaffold_activeldap Message-ID: <200708312323.25856.lists@suares.an> Hi, Due to possible name clashes, all generators will now be postfixed by _activeldap instead of _al So, to generate config/ldap.yml you should use: ./script/generate scaffold_activeldap The old generator is still in the plugin, but will be removed as soon as all docs are updated. Cheers, ace From lists at suares.an Fri Aug 31 23:24:53 2007 From: lists at suares.an (Ace Suares) Date: Fri, 31 Aug 2007 23:24:53 -0400 Subject: [Ruby-activeldap-discuss] model_activeldap generator Message-ID: <200708312324.54138.lists@suares.an> Hi, There is a generator for activeldap models now, called model_activeldap To generate a 'user' model, you can invoke it as ./script/generate model_activeldap user Cheers ace From lists at suares.an Fri Aug 31 23:26:30 2007 From: lists at suares.an (Ace Suares) Date: Fri, 31 Aug 2007 23:26:30 -0400 Subject: [Ruby-activeldap-discuss] MAYBE NOT SOLVED ./script/generate in 0.8.3.1 still needs ldapserver In-Reply-To: <200708311107.03700.lists@suares.an> References: <200708301908.37684.lists@suares.an> <20070831.215632.64182688.kou@cozmixng.org> <200708311107.03700.lists@suares.an> Message-ID: <200708312326.30609.lists@suares.an> Hi, While tryng out the new model_activeldap generator, I still get the same error if the ldapserver is down. Now, I *am* using 0.8.3.1 Please advise. Ace On Friday 31 August 2007, Ace Suares wrote: > On Friday 31 August 2007, Kouhei Sutou wrote: > > Hi, > > > > > Since I update the plugin from trunk with every app install, > > > sometimes I get confused. Is it possible to build in something like > > > warning in plugin, working with version.... > > > > OK. I added version check codes to the Rails plugin. > > cool. > > ace > > > Thanks, > > -- > > kou > > _______________________________________________ > > Ruby-activeldap-discuss mailing list > > Ruby-activeldap-discuss at rubyforge.org > > http://rubyforge.org/mailman/listinfo/ruby-activeldap-discuss > > _______________________________________________ > Ruby-activeldap-discuss mailing list > Ruby-activeldap-discuss at rubyforge.org > http://rubyforge.org/mailman/listinfo/ruby-activeldap-discuss From lists at suares.an Fri Aug 31 23:32:08 2007 From: lists at suares.an (Ace Suares) Date: Fri, 31 Aug 2007 23:32:08 -0400 Subject: [Ruby-activeldap-discuss] 'User.find' or just 'find' ? Message-ID: <200708312332.08820.lists@suares.an> Hi, Please take a look at http://www.activeldap.com/sample-application Near the end, you'll find a method called index. I thought, that it was possible to say: @users = find(:all) But that doesn't work for me. I have to use @users = User.find(:all) What did I do wrong ?? _ace From kou at cozmixng.org Fri Aug 31 23:32:15 2007 From: kou at cozmixng.org (Kouhei Sutou) Date: Sat, 01 Sep 2007 12:32:15 +0900 (JST) Subject: [Ruby-activeldap-discuss] scaffold_al is now called scaffold_activeldap In-Reply-To: <200708312323.25856.lists@suares.an> References: <200708312323.25856.lists@suares.an> Message-ID: <20070901.123215.57785869.kou@cozmixng.org> Hi, > Due to possible name clashes, all generators will now be postfixed by > _activeldap instead of _al > > So, to generate config/ldap.yml you should use: > > ./script/generate scaffold_activeldap I changed my previous thought. I think _active_ldap is better rather _activeldap. I'll change. > The old generator is still in the plugin, but will be removed as soon as > all docs are updated. I'll keep to try backward compatibility. Thanks, -- kou