google-code-export / ruby-activeldap

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

has_many and french accent #51

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

when i try to list the memeber sof a group

LdapGroup.find(group).members

not return member how have a name with accent like (Hervé)

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?

Please provide any additional information below.

Original issue reported on code.google.com by helmi.fa...@gmail.com on 23 Aug 2010 at 1:24

GoogleCodeExporter commented 9 years ago
We can't reproduce it without test data...

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

GoogleCodeExporter commented 9 years ago
class LdapGroup < ActiveLdap::Base
  ldap_mapping :dn_attribute => 'cn' ,
    :prefix =>"",
    :classes => ['group'],
    :excluded_classes => ['computer','user']
  has_many :members, :class_name => "LdapUser", :wrap => "member",
    :primary_key => "dn", :foreign_key => "dn"  
end

class LdapUser < ActiveLdap::Base

  ldap_mapping :dn_attribute => 'sAMAccountName' ,
    :prefix =>"",
    :classes => ['user'],
    :excluded_classes => ['computer']
  belongs_to :security_groups, :class_name => "LdapGroup", :many => "member",
    :primary_key => "dn"
end

>> LdapGroup.find("mygroup").members
this return all members except emembers which has name with accent (é, like 
Hervé , Valérie,..)

>> LdapUser.all
return all users without except

activeldap 1.2.1
LDAP : ActiveDirectory

Original comment by helmi.fa...@gmail.com on 24 Aug 2010 at 1:20

GoogleCodeExporter commented 9 years ago
Did you need something else ?

Original comment by helmi.fa...@gmail.com on 31 Aug 2010 at 7:11

GoogleCodeExporter commented 9 years ago
Sorry but could you give us more time?
We had RubyKaigi 2010 at the last weekend. So we didn't have a time to look 
into the problem...

If you write a patch for the problem before we look into it, please attach it.

Original comment by kou...@gmail.com on 31 Aug 2010 at 12:00