New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

ooldap

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ooldap

Object Oriented LDAP

  • 0.1.1
  • PyPI
  • Socket score

Maintainers
1

Using the python-ldap library: http://www.python-ldap.org/

Provides the foundation for manipulating ldap taking a highly object oriented approach.

Use the provided object types, override them, or create your own.

Add the three following environmental variables:

  • LDAP_CONNECTION_URI
  • LDAP_CONNECTION_DN
  • LDAP_CONNECTION_PASSWORD

Here is an example:

import os


os.environ['LDAP_CONNECTION_URI'] = 'example.com'
os.environ['LDAP_CONNECTION_DN'] = 'CN=<username>,OU=People,DC=EXAMPLE,DC=COM'
os.environ['LDAP_CONNECTION_PASSWORD'] = '<password>'


from ooldap.foundation import LDAPObject


ldapobject = LDAPObject('CN=johndoe,OU=People,DC=EXAMPLE,DC=COM')

ldapobject.data
ldapobject.description
ldapobject.get_attribute('mail')

FAQs


Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc