google-code-export / ruby-activeldap

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

Working with Windows Active Directory users #59

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I defined my Users class like this:

    ldap_mapping :prefix => '', :classes => ["top", "person", "organizationalPerson", "user"], :scope => :sub, :dn_attribute => 'samaccountname'

which works pretty well, except that it also grabs computer accounts.  The 
classes for computer accounts are like this: ["top", "person", 
"organizationalPerson", "user", "computer"].  It's the same as users plus an 
additional "computer" objectclass.  It would be nice to maybe be able to define 
a :filter in the ldap_mapping or be able to make :classes only match the exact 
class and not match supersets of the defined classes.

Original issue reported on code.google.com by jdin...@gmail.com on 20 Mar 2012 at 6:11