From syrius.ml at no-log.org Sat Mar 6 16:06:25 2010 From: syrius.ml at no-log.org (syrius.ml at no-log.org) Date: Sat, 06 Mar 2010 22:06:25 +0100 Subject: [activeldap-discuss] ldap features Message-ID: <87zl2li30q.87y6i5i30q@87wrxpi30q.message.id> Hi there, - which ldap implementation do you recommend ? does any of them support the password change extended operation ? (ruby-ldap doesn't, that's what I'm using atm) - how to use the size limit on a request ? does it depend on the ldap implementation ? User.find(:first), User.find(:all, :limit => 10) search for ALL the entries with no size limit. Is there a way to do it a cleaner way ? -- From davide.vaghetti at gmail.com Mon Mar 8 10:10:44 2010 From: davide.vaghetti at gmail.com (Davide Vaghetti) Date: Mon, 8 Mar 2010 16:10:44 +0100 Subject: [activeldap-discuss] modify attribute Message-ID: Hi, I need to modify some multi-valued attribute, mainly adding and deleting. As for now, I'm just reading the entire attribute values array, do my modification, and replacing back the entire array (with a simple myclass.attribute = mynew_values_array). Is there a way to access to ADD/DELETE ldap modification function with activeldap, so that I can do something like myclass.attribute.addvalue(value)? thanks davide -------------- next part -------------- An HTML attachment was scrubbed... URL: From syrius.ml at no-log.org Mon Mar 8 10:31:15 2010 From: syrius.ml at no-log.org (syrius.ml at no-log.org) Date: Mon, 08 Mar 2010 16:31:15 +0100 Subject: [activeldap-discuss] modify attribute In-Reply-To: (Davide Vaghetti's message of "Mon\, 8 Mar 2010 16\:10\:44 +0100") References: Message-ID: <87iq96j0q8.87hboqj0q8@87fx4aj0q8.message.id> Davide Vaghetti writes: Hi, > I need to modify some multi-valued attribute, mainly adding and deleting. As > for now, I'm just reading the entire attribute values array, do my > modification, and replacing back the entire array (with a simple > myclass.attribute = mynew_values_array). Is there a way to access to ADD/DELETE > ldap modification function with activeldap, so that I can do something like > myclass.attribute.addvalue(value)? When i do myclass.attribute << "new value" and myclass.attribute.delete("old value") it doesn't keep the change. I have to do: tmp=myclass.attribute tmp << "something" tmp.delete("else") myclass.attribute=tmp is it the same for you ? -- From davide.vaghetti at gmail.com Tue Mar 9 07:34:30 2010 From: davide.vaghetti at gmail.com (Davide Vaghetti) Date: Tue, 9 Mar 2010 13:34:30 +0100 Subject: [activeldap-discuss] modify attribute In-Reply-To: <87iq96j0q8.87hboqj0q8@87fx4aj0q8.message.id> References: <87iq96j0q8.87hboqj0q8@87fx4aj0q8.message.id> Message-ID: On Mon, Mar 8, 2010 at 4:31 PM, wrote: > Davide Vaghetti > > writes: > > Hi, > > > I need to modify some multi-valued attribute, mainly adding and deleting. > As > > for now, I'm just reading the entire attribute values array, do my > > modification, and replacing back the entire array (with a simple > > myclass.attribute = mynew_values_array). Is there a way to access to > ADD/DELETE > > ldap modification function with activeldap, so that I can do something > like > > myclass.attribute.addvalue(value)? > > When i do myclass.attribute << "new value" and > myclass.attribute.delete("old value") it doesn't keep the change. > I have to do: > tmp=myclass.attribute > tmp << "something" > tmp.delete("else") > myclass.attribute=tmp > > is it the same for you ? > > yes, it is exactly the same. Regards davide -------------- next part -------------- An HTML attachment was scrubbed... URL: From kou at cozmixng.org Tue Mar 9 08:28:59 2010 From: kou at cozmixng.org (Kouhei Sutou) Date: Tue, 09 Mar 2010 22:28:59 +0900 (JST) Subject: [activeldap-discuss] ldap features In-Reply-To: <87zl2li30q.87y6i5i30q@87wrxpi30q.message.id> References: <87zl2li30q.87y6i5i30q@87wrxpi30q.message.id> Message-ID: <20100309.222859.246902927668095276.kou@cozmixng.org> Hi, In <87zl2li30q.87y6i5i30q at 87wrxpi30q.message.id> "[activeldap-discuss] ldap features" on Sat, 06 Mar 2010 22:06:25 +0100, syrius.ml at no-log.org wrote: > - which ldap implementation do you recommend ? I recommend Ruby/LDAP. > does any of them support the password change extended operation ? > (ruby-ldap doesn't, that's what I'm using atm) I don't know... > - how to use the size limit on a request ? does it depend on > the ldap implementation ? > User.find(:first), User.find(:all, :limit => 10) search for ALL the > entries with no size limit. Is there a way to do it a cleaner way ? I've implemented it for Ruby/LDAP and JNDI backends in trunk. It also had been implemented for Net::LDAP backend in released version. Thanks, -- kou From syrius.ml at no-log.org Tue Mar 9 19:16:44 2010 From: syrius.ml at no-log.org (syrius.ml at no-log.org) Date: Wed, 10 Mar 2010 01:16:44 +0100 Subject: [activeldap-discuss] ldap features In-Reply-To: <20100309.222859.246902927668095276.kou@cozmixng.org> (Kouhei Sutou's message of "Tue\, 09 Mar 2010 22\:28\:59 +0900 \(JST\)") References: <87zl2li30q.87y6i5i30q@87wrxpi30q.message.id> <20100309.222859.246902927668095276.kou@cozmixng.org> Message-ID: <873a09hw0l.871vfthw0l@87zl2hghg5.message.id> Kouhei Sutou writes: Hi, >> - how to use the size limit on a request ? does it depend on >> the ldap implementation ? >> User.find(:first), User.find(:all, :limit => 10) search for ALL the >> entries with no size limit. Is there a way to do it a cleaner way ? > > I've implemented it for Ruby/LDAP and JNDI backends in > trunk. It also had been implemented for Net::LDAP backend in > released version. I've just tried it with ruby-ldap. Thanks a lot ! -- From syrius.ml at no-log.org Sat Mar 20 19:26:27 2010 From: syrius.ml at no-log.org (syrius.ml at no-log.org) Date: Sun, 21 Mar 2010 00:26:27 +0100 Subject: [activeldap-discuss] ldap features In-Reply-To: <873a09hw0l.871vfthw0l@87zl2hghg5.message.id> (syrius ml's message of "Wed\, 10 Mar 2010 01\:16\:44 +0100") References: <87zl2li30q.87y6i5i30q@87wrxpi30q.message.id> <20100309.222859.246902927668095276.kou@cozmixng.org> <873a09hw0l.871vfthw0l@87zl2hghg5.message.id> Message-ID: <87r5nemvbh.87pr2ymvbh@87ociimvbh.message.id> syrius.ml at no-log.org writes: > Kouhei Sutou writes: > > Hi, > >>> - how to use the size limit on a request ? does it depend on >>> the ldap implementation ? >>> User.find(:first), User.find(:all, :limit => 10) search for ALL the >>> entries with no size limit. Is there a way to do it a cleaner way ? >> >> I've implemented it for Ruby/LDAP and JNDI backends in >> trunk. It also had been implemented for Net::LDAP backend in >> released version. > > I've just tried it with ruby-ldap. Thanks a lot ! Hi, unfortunatly, reconnection doesn't work anymore. My ldap server is configured to terminate idle connections, with trunk (from last week) it doesn't reconnect anymore. 1.2.1 is ok. -- From kou at cozmixng.org Sun Mar 21 07:40:40 2010 From: kou at cozmixng.org (Kouhei Sutou) Date: Sun, 21 Mar 2010 20:40:40 +0900 (JST) Subject: [activeldap-discuss] ldap features In-Reply-To: <87r5nemvbh.87pr2ymvbh@87ociimvbh.message.id> References: <20100309.222859.246902927668095276.kou@cozmixng.org> <873a09hw0l.871vfthw0l@87zl2hghg5.message.id> <87r5nemvbh.87pr2ymvbh@87ociimvbh.message.id> Message-ID: <20100321.204040.781004837231815576.kou@cozmixng.org> Hi, In <87r5nemvbh.87pr2ymvbh at 87ociimvbh.message.id> "Re: [activeldap-discuss] ldap features" on Sun, 21 Mar 2010 00:26:27 +0100, syrius.ml at no-log.org wrote: >>>> - how to use the size limit on a request ? does it depend on >>>> the ldap implementation ? >>>> User.find(:first), User.find(:all, :limit => 10) search for ALL the >>>> entries with no size limit. Is there a way to do it a cleaner way ? >>> >>> I've implemented it for Ruby/LDAP and JNDI backends in >>> trunk. It also had been implemented for Net::LDAP backend in >>> released version. >> >> I've just tried it with ruby-ldap. Thanks a lot ! > > unfortunatly, reconnection doesn't work anymore. > My ldap server is configured to terminate idle connections, with trunk > (from last week) it doesn't reconnect anymore. > 1.2.1 is ok. Thanks for your report. I've fixed it in trunk. Thanks, -- kou