
Security News
Nx npm Packages Compromised in Supply Chain Attack Weaponizing AI CLI Tools
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.
ambitious-activeldap
Advanced tools
h2. An Ambitious ActiveLdap Adapter
Write LDAP search filters in Ruby. Awesomeness courtesy of Chris Wanstrath's Ambition library.
You must be using ActiveLdap 0.9 or greater.
h2. Get It
@$ sudo gem install ambitious-activeldap@
require 'rubygems' require 'ambition/adapters/active_ldap'
h2. Examples
Let @User@ be a subclass of @ActiveLdap::Base@
User.select { |u| u.givenName == 'Severian' }.each do |user| puts user.name endQueries don't run until you kick them. This adapter supports only the basic kicker methods: @each@, @each_with_index@, @map@, @entries@, @to_a@.
This adapter also doesn't support the methods that require sorting, slicing, or counting, because ActiveLdap effectively doesn't support such things. ActiveLdap lets you request sorted and sliced result sets, but it does the work in Ruby, so you might as well do it yourself.
You can call @to_s@, but not @to_hash@ on a query. @to_s@ returns the LDAP search filter as a string.
>> User.select { |m| m.givenName == 'Jonas' }.to_s => "(givenName=Jonas)"h2. Issues.find(:all, :filter => "(type=bug)")
Bug me: "http://rubyforge.org/users/automatthew/":http://rubyforge.org/users/automatthew/
More information on Ambition:
FAQs
Unknown package
We found that ambitious-activeldap demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.
Security News
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.
Security News
CISA’s 2025 draft SBOM guidance adds new fields like hashes, licenses, and tool metadata to make software inventories more actionable.
Security News
A clarification on our recent research investigating 60 malicious Ruby gems.