Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
'Client library for fast+easy access and manipulation of an LDAP directory-information-tree(DIT).'
ldap_hopper
is a small Python3
package that allows you to easily navigate and manipulate an LDAP directory-information-tree(DIT).
It neatly wraps around the standard ldap
package and takes away all the nasty bits and pieces of boiler-plating, while making your code more readable.
pip install ldap_hopper
#!/usr/bin/env python3
from ldap_hopper import Config, Cursor
# define an access configuration
config = Config(
server='ldap://localhost',
dn='dc=example.dc=com',
# bind_dn='',
# bind_pw='',
# use_tls=True,
)
# creating a cursor
root = Cursor(config)
print(root.attrs)
# traversal via standard generators
[child for child in root.children]
[sub for sub in root.subtree]
# adding a child node
dn = 'ou=crew,dc=example,dc=com'
attrs = {
'objectClass': ['organizationalUnit'],
'ou': ['crew'],
}
cursor = root.add(dn, attrs)
# searching defaults to ldap.SCOPE_SUBTREE
[result for result in root.search('ou=crew')]
from ldap_hopper import Scope
[r for r in root.search('objectClass=*', Scope.onelevel)]
# manipulating attributes
cursor.attrs['description'] = 'Lorem ipsum...'
del cursor.attrs['desciption']
# deleting an entire object
cursor.delete()
git clone github.com:baccenfutter/ldap_hopper.git
cd ldap_hopper
pipenv install --dev
Source: https://github.com/baccenfutter/ldap_hopper
PyPi : https://pypi.python.org/pypi/ldap_hopper/
FAQs
'Client library for fast+easy access and manipulation of an LDAP directory-information-tree(DIT).'
We found that ldap-hopper demonstrated a healthy version release cadence and project activity because the last version was released less than 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.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.