
Research
/Security News
Toptal’s GitHub Organization Hijacked: 10 Malicious Packages Published
Threat actors hijacked Toptal’s GitHub org, publishing npm packages with malicious payloads that steal tokens and attempt to wipe victim systems.
= Active Directory
Ruby Integration with Microsoft's Active Directory system based on original code by Justin Mecham and James Hunt at http://rubyforge.org/projects/activedirectory
See documentation on ActiveDirectory::Base for more information.
Caching: Queries for membership and group membership are based on the distinguished name of objects. Doing a lot of queries, especially for a Rails app, is a sizable slowdown. To alleviate the problem, I've implemented a very basic cache for queries which search by :distinguishedname. This is disabled by default. All other queries are unaffected.
A code example is worth a thousand words:
require 'rubygems' require 'active_directory' # Uses the same settings as net/ldap settings = { :host => 'domain-controller.example.local', :base => 'dc=example,dc=local', :port => 636, :encryption => :simple_tls, :auth => { :method => :simple, :username => "username", :password => "password" } } # Basic usage ActiveDirectory::Base.setup(settings) ActiveDirectory::User.find(:all) ActiveDirectory::User.find(:first, :userprincipalname => "john.smith@domain.com") ActiveDirectory::Group.find(:all) #Caching is disabled by default, to enable: ActiveDirectory::Base.enable_cache ActiveDirectory::Base.disable_cache ActiveDirectory::Base.cache?
FAQs
Unknown package
We found that active_directory demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
/Security News
Threat actors hijacked Toptal’s GitHub org, publishing npm packages with malicious payloads that steal tokens and attempt to wipe victim systems.
Research
/Security News
Socket researchers investigate 4 malicious npm and PyPI packages with 56,000+ downloads that install surveillance malware.
Security News
The ongoing npm phishing campaign escalates as attackers hijack the popular 'is' package, embedding malware in multiple versions.