ISC-DHCP LDAP Schema manipulation helper
Project description
# pydhcp-ldap-schema
## By example:
import ldap import pydhcp_ldap_schema as schema
con = ldap.initialize(’ldap://localhost’) con.bind_s(‘user’, ‘pass’)
results = con.search_s(‘dc=domain,dc=com’, ldap.SCOPE_ONELEVEL, ‘(objectClass=dhcpService)’) service = schema.DHCPService.build_from_resultset(results[0])
service.attributes[‘dhcpPrimaryDN’] = [‘cn=New CN,dc=example,dc=com’] dn, old_entry = results[0] modlist = service.getModifyModlist(old_entry)
con.modify_s(dn, modlist) con.unbind_s()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file pydhcp-ldap-schema-0.1alpha.tar.gz
.
File metadata
- Download URL: pydhcp-ldap-schema-0.1alpha.tar.gz
- Upload date:
- Size: 6.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 225e5ab221c16fe56d56c260f292102d27587724cf143e0447b149117d183d96 |
|
MD5 | d830119466cdd657e0ebc1de6ab4df0c |
|
BLAKE2b-256 | c9f23b20f25f50c75f4dc82c63ff9347230f9a01555bb4c84569d2290fcc0320 |