active_directory icon indicating copy to clipboard operation
active_directory copied to clipboard

Native Ruby Access to Microsoft Active Directory

Results 11 active_directory issues
Sort by recently updated
recently updated
newest added

ruby 2.7.4 irb(main):031:0> require 'net/ldap/dn' => true irb(main):032:0> ActiveDirectory::User.find(:all) Traceback (most recent call last): 7: from /usr/bin/irb:25:in `' 6: from /usr/bin/irb:25:in `load' 5: from /usr/share/gems/gems/irb-1.2.6/exe/irb:11:in `' 4: from (irb):32 3:...

This is caused by this line: https://github.com/Mazwak/active_directory/blob/master/lib/active_directory/base.rb#L444 it is clearly a undesired behavior. However I am currently unsure why this line even exists. It was added here: https://github.com/Mazwak/active_directory/commit/5d7949a827ea8c46c8828851468be52a877b8b19

This line ``` ruby options[:filter].delete(:in) ``` (https://github.com/Mazwak/active_directory/blob/master/lib/active_directory/base.rb#L269) causes `undefined method 'delete' for Net::LDAP::Filter` if I delete this.. it seems to work (not sure what it was trying to do in...

It is not evident from the docs how this would be accomplished, but this is a great gem! currently Its really clear how to do string matching queries, but if...

I am populating select fields in html forms with users from active directory. The problem is that all I need is the dn, username and/or cn while the search method...

I am getting the following error when calling methods like disabled? and locked? on certain users: ArgumentError: method name must be a Symbol but String is given The fix seems...

net-ldap now provides fairly easy support for moving objects, e.g.: ``` ruby def self.move_object(old_dn, cn, new_ou) @@ldap.rename( olddn: old_dn, newrdn: "CN=#{cn}", delete_attributes: true, new_superior: "#{new_ou}" ) end ``` I'm not...

Is there a better way than self["memberof"].map(&:dn) ?

Add the ability to return group members as an array with out doing an ldap lookup

This pull request should fix 2 problems with large active directory installations. - Changing the base after the base class has been created which can help with speed of find...