[Ruby-activeldap-discuss] How do I list the values of all attributes?

Matt Mencel MR-Mencel at wiu.edu
Fri Nov 30 12:46:13 EST 2007


OK...

Well I must have some other issue then because there are no values in the User object, just 'uid' and 'objectclass' which are defined in the ldap_mapping.  The bind to LDAP is happening because I can see it in the LDAP logs, but I guess the search is not happening?

Thanks,
Matt


----- Original Message -----
From: "Kouhei Sutou" <kou at cozmixng.org>
To: ruby-activeldap-discuss at rubyforge.org
Sent: Friday, November 30, 2007 7:55:10 AM (GMT-0600) America/Chicago
Subject: Re: [Ruby-activeldap-discuss] How do I list the values of all attributes?

Hi,

In <1659960306.3126681196364695982.JavaMail.root at zcs5.wiu.edu>
  "[Ruby-activeldap-discuss] How do I list the values of all attributes?" on Thu, 29 Nov 2007 13:31:35 -0600 (CST),
  Matt Mencel <MR-Mencel at wiu.edu> wrote:


> How do I get a list of all the attributes WITH their values?

There are no convenience way. You need to like the
following:

  user.attribute_names.each do |name|
    puts "#{name}: #{user[name, true].join(', ')}"
  end

Should #attributes return all available attributes not just
set attributes?


Thanks,
--
kou
_______________________________________________
Ruby-activeldap-discuss mailing list
Ruby-activeldap-discuss at rubyforge.org
http://rubyforge.org/mailman/listinfo/ruby-activeldap-discuss



More information about the Ruby-activeldap-discuss mailing list