{ "info": { "author": "Dariusz G\u00f3recki", "author_email": "darek.krk@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "Intended Audience :: System Administrators", "License :: OSI Approved :: GNU Lesser General Public License v3 or later (LGPLv3+)", "Operating System :: OS Independent", "Programming Language :: Python", "Topic :: Internet", "Topic :: Software Development :: Libraries", "Topic :: Software Development :: Libraries :: Python Modules", "Topic :: System :: Systems Administration :: Authentication/Directory :: LDAP" ], "description": "pydhcp-ldap-schema\n==================\n\nHelper class that can simplyfy most of the tasks when managing ISC-DHCP\nconfiguration stored in a LDAP tree.\n\nModifying existing configuration\n--------------------------------\n\nExample::\n\n import ldap\n from pydhcp_ldap_schema import DHCPEntry\n\n con = ldap.initialize('ldap://localhost')\n con.bind_s('user', 'pass')\n\n subNet = DHCPEntry.ldap_load(con, 'cn=192.168.1.0,cn=DHCP Config,dc=example,dc=com')\n print subNet['dhcpNetMask'] # prints ['24']\n subNet['dhcpNetMask'] = ['25'] # set new value\n\n subNet.ldap_modify(con) # automatic change detection and commit if nessesery\n\n con.unbind_s()\n\nCreating new nodes\n------------------\n\nAdd fresh configuration::\n\n import ldap\n from pydhcp_ldap_schema import DHCPEntry\n\n con = ldap.initialize('ldap://localhost')\n con.bind_s('user', 'pass')\n\n service = DHCPEntry(['top', 'dhcpService'], cn=['DHCP Config'])\n service.ldap_add(con, 'cn=DHCP Config,dc=example,dc=com') # create base entry\n\n dhcpServer = DHCPEntry(['top', 'dhcpServer'], cn=['dhcp.local'])\n dhcpServer['dhcpServiceDN'] = [service.dn]\n\n service.subobjects.insert_entry(dhcpServer) # DN will be calculated\n\n dhcpServer.ldap_add(con)\n\n # and most important subnet declaration\n\n subnet = DHCPEntry(['top', 'dhcpSubnet'], cn=['192.168.1.0'])\n subnet['dhcpNetMask'] = ['24']\n\n service.subobjects.insert_entry(subnet)\n\n subnet.ldap_add(con)\n\n # Now you can start DHCPd server\n\n con.unbind_s()\n", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/canni/pydhcp-ldap-schema", "keywords": "dhcp,ldap,schema", "license": "UNKNOWN", "maintainer": null, "maintainer_email": null, "name": "pydhcp-ldap-schema", "package_url": "https://pypi.org/project/pydhcp-ldap-schema/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/pydhcp-ldap-schema/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/canni/pydhcp-ldap-schema" }, "release_url": "https://pypi.org/project/pydhcp-ldap-schema/0.1beta/", "requires_dist": null, "requires_python": null, "summary": "ISC-DHCP LDAP Schema manipulation helper", "version": "0.1beta" }, "last_serial": 733043, "releases": { "0.1alpha": [ { "comment_text": "", "digests": { "md5": "d830119466cdd657e0ebc1de6ab4df0c", "sha256": "225e5ab221c16fe56d56c260f292102d27587724cf143e0447b149117d183d96" }, "downloads": -1, "filename": "pydhcp-ldap-schema-0.1alpha.tar.gz", "has_sig": false, "md5_digest": "d830119466cdd657e0ebc1de6ab4df0c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6207, "upload_time": "2012-10-04T14:19:22", "url": "https://files.pythonhosted.org/packages/c9/f2/3b20f25f50c75f4dc82c63ff9347230f9a01555bb4c84569d2290fcc0320/pydhcp-ldap-schema-0.1alpha.tar.gz" } ], "0.1beta": [ { "comment_text": "", "digests": { "md5": "e8cef12a64cdeaccdc56aadba87276ab", "sha256": "5968a137b7be33c7e052d49965cf3f29d602960ed66a3bfa0aff32656adadbc2" }, "downloads": -1, "filename": "pydhcp-ldap-schema-0.1beta.tar.gz", "has_sig": false, "md5_digest": "e8cef12a64cdeaccdc56aadba87276ab", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6462, "upload_time": "2012-10-06T00:46:47", "url": "https://files.pythonhosted.org/packages/15/cb/716c36081b9ae822bd6e382ef9a0ebe41441174e882cb8b6ccaf5875507d/pydhcp-ldap-schema-0.1beta.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "e8cef12a64cdeaccdc56aadba87276ab", "sha256": "5968a137b7be33c7e052d49965cf3f29d602960ed66a3bfa0aff32656adadbc2" }, "downloads": -1, "filename": "pydhcp-ldap-schema-0.1beta.tar.gz", "has_sig": false, "md5_digest": "e8cef12a64cdeaccdc56aadba87276ab", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6462, "upload_time": "2012-10-06T00:46:47", "url": "https://files.pythonhosted.org/packages/15/cb/716c36081b9ae822bd6e382ef9a0ebe41441174e882cb8b6ccaf5875507d/pydhcp-ldap-schema-0.1beta.tar.gz" } ] }