René's URL Explorer Experiment


Title: RFE: Support for add and delete operations in ldif.LDIFParser.parse_change_records() · Issue #567 · python-ldap/python-ldap · GitHub

Open Graph Title: RFE: Support for add and delete operations in ldif.LDIFParser.parse_change_records() · Issue #567 · python-ldap/python-ldap

X Title: RFE: Support for add and delete operations in ldif.LDIFParser.parse_change_records() · Issue #567 · python-ldap/python-ldap

Description: Issue description: LDIF files with multiple operations are not fully processed by ldif.LDIFParser.parse_change_records(). Operations of the change type "modify" are processed via handle_modify() but operations of the change type "add" or...

Open Graph Description: Issue description: LDIF files with multiple operations are not fully processed by ldif.LDIFParser.parse_change_records(). Operations of the change type "modify" are processed via handle_modify() bu...

X Description: Issue description: LDIF files with multiple operations are not fully processed by ldif.LDIFParser.parse_change_records(). Operations of the change type "modify" are processed via handle_m...

Opengraph URL: https://github.com/python-ldap/python-ldap/issues/567

X: @github

direct link

Domain: patch-diff.githubusercontent.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"RFE: Support for add and delete operations in ldif.LDIFParser.parse_change_records()","articleBody":"# Issue description:\r\n\r\nLDIF files with multiple operations are not fully processed by ldif.LDIFParser.parse_change_records().\r\n\r\nOperations of the change type \"modify\" are processed via handle_modify() but operations of the change type \"add\" or \"delete\" are counted but otherwise simply ignored.\r\n\r\nExample of such an LDIF file:\r\n\r\n```\r\nversion: 1\r\n\r\ndn: cn=demo1,ou=groups,dc=example,dc=com\r\nchangetype: add\r\nobjectClass: groupOfNames\r\nobjectClass: nsMemberOf\r\nobjectClass: posixGroup\r\nobjectClass: top\r\ncn: demo1\r\ngidNumber: 99997\r\n\r\n\r\ndn: cn=demo2,ou=groups,dc=example,dc=com\r\nchangetype: add\r\nobjectClass: groupOfNames\r\nobjectClass: nsMemberOf\r\nobjectClass: posixGroup\r\nobjectClass: top\r\ncn: demo2\r\ngidNumber: 99996\r\n\r\n\r\ndn: cn=demo2,ou=groups,dc=example,dc=com\r\nchangetype: modify\r\nadd: description\r\ndescription: Eine zweite Testgruppe\r\n\r\n\r\ndn: cn=demo1,ou=groups,dc=example,dc=com\r\nchangetype: delete\r\n\r\n\r\n```\r\n\r\n\r\n# Steps to reproduce: \r\n\r\nCreate your own LDIF parser and an import for the test file shown:\r\n\r\n```\r\nfrom pathlib import Path\r\nfrom ldif import LDIFParser\r\n\r\nclass MyLDIFParser(LDIFParser):\r\n    \r\n    def __init__(self, input_file, ignored_attr_types=None, max_entries=0, process_url_schemes=None, line_sep='\\n'):\r\n        super().__init__(input_file, ignored_attr_types, max_entries, process_url_schemes, line_sep)\r\n\r\n    def handle(self, dn, entry):\r\n        print(f\"MyLDIFParser::handle({dn})\")\r\n    \r\n    def handle_modify(self, dn, modops, controls=None):\r\n        print(f\"MyLDIFParser::handle_modify({dn})\")\r\n\r\ndef main():\r\n    p_change = Path(\"test_change.ldif\")\r\n    ldifparser_change = MyLDIFParser(open(p_change), \"r\")\r\n    ldifparser_change.parse_change_records()\r\n    print(f\"Changetype counter: {ldifparser_change.changetype_counter}\")\r\n    \r\n    \r\n\r\nif __name__ == '__main__':\r\n    main()\r\n```\r\n\r\nStart this test:\r\n\r\n```\r\n$ ./demo.py \r\nMyLDIFParser::handle_modify(cn=demo2,ou=groups,dc=example,dc=com)\r\nChangetype counter: {'add': 2, 'delete': 1, 'modify': 1, 'modrdn': 0}\r\n```\r\n\r\nOperating system: \r\nFedora 39\r\n\r\nPython version: \r\n- Python 3.6\r\n- Python 3.12\r\n\r\npython-ldap version: \r\n3.4.4","author":{"url":"https://github.com/fager","@type":"Person","name":"fager"},"datePublished":"2024-05-15T19:23:37.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/567/python-ldap/issues/567"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:48f21f75-0b6e-9fa0-c1f4-4dd752153cd8
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idED28:4DECD:6246AD7:7EB2999:6975A4DA
html-safe-nonce7fd7bc300ba61ad98f08e67cf10a13e8ff7bf0863d6f7477ea4cdb4487679ddb
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFRDI4OjRERUNEOjYyNDZBRDc6N0VCMjk5OTo2OTc1QTREQSIsInZpc2l0b3JfaWQiOiI0MzE2OTE3MDIwMTkzMzAxNzIyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac98fed1291ff68738130c9ca022e51a80104244b8a48f93d00752a214b4cd6040
hovercard-subject-tagissue:2298677898
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python-ldap/python-ldap/567/issue_layout
twitter:imagehttps://opengraph.githubassets.com/f8bb8b5e9213e50dc1b193ffa1cd09f00e98062c04ee301d086f0acd46a3db77/python-ldap/python-ldap/issues/567
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/f8bb8b5e9213e50dc1b193ffa1cd09f00e98062c04ee301d086f0acd46a3db77/python-ldap/python-ldap/issues/567
og:image:altIssue description: LDIF files with multiple operations are not fully processed by ldif.LDIFParser.parse_change_records(). Operations of the change type "modify" are processed via handle_modify() bu...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamefager
hostnamegithub.com
expected-hostnamegithub.com
None4a4bf5f4e28041a9d2e5c107d7d20b78b4294ba261cab243b28167c16a623a1f
turbo-cache-controlno-preview
go-importgithub.com/python-ldap/python-ldap git https://github.com/python-ldap/python-ldap.git
octolytics-dimension-user_id33895877
octolytics-dimension-user_loginpython-ldap
octolytics-dimension-repository_id111794776
octolytics-dimension-repository_nwopython-ldap/python-ldap
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id111794776
octolytics-dimension-repository_network_root_nwopython-ldap/python-ldap
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release488b30e96dfd057fbbe44c6665ccbc030b729dde
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/python-ldap/python-ldap/issues/567#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython-ldap%2Fpython-ldap%2Fissues%2F567
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython-ldap%2Fpython-ldap%2Fissues%2F567
Sign up https://patch-diff.githubusercontent.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=python-ldap%2Fpython-ldap
Reloadhttps://patch-diff.githubusercontent.com/python-ldap/python-ldap/issues/567
Reloadhttps://patch-diff.githubusercontent.com/python-ldap/python-ldap/issues/567
Reloadhttps://patch-diff.githubusercontent.com/python-ldap/python-ldap/issues/567
python-ldap https://patch-diff.githubusercontent.com/python-ldap
python-ldaphttps://patch-diff.githubusercontent.com/python-ldap/python-ldap
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2Fpython-ldap%2Fpython-ldap
Fork 137 https://patch-diff.githubusercontent.com/login?return_to=%2Fpython-ldap%2Fpython-ldap
Star 436 https://patch-diff.githubusercontent.com/login?return_to=%2Fpython-ldap%2Fpython-ldap
Code https://patch-diff.githubusercontent.com/python-ldap/python-ldap
Issues 83 https://patch-diff.githubusercontent.com/python-ldap/python-ldap/issues
Pull requests 19 https://patch-diff.githubusercontent.com/python-ldap/python-ldap/pulls
Actions https://patch-diff.githubusercontent.com/python-ldap/python-ldap/actions
Projects 0 https://patch-diff.githubusercontent.com/python-ldap/python-ldap/projects
Security 3 https://patch-diff.githubusercontent.com/python-ldap/python-ldap/security
Insights https://patch-diff.githubusercontent.com/python-ldap/python-ldap/pulse
Code https://patch-diff.githubusercontent.com/python-ldap/python-ldap
Issues https://patch-diff.githubusercontent.com/python-ldap/python-ldap/issues
Pull requests https://patch-diff.githubusercontent.com/python-ldap/python-ldap/pulls
Actions https://patch-diff.githubusercontent.com/python-ldap/python-ldap/actions
Projects https://patch-diff.githubusercontent.com/python-ldap/python-ldap/projects
Security https://patch-diff.githubusercontent.com/python-ldap/python-ldap/security
Insights https://patch-diff.githubusercontent.com/python-ldap/python-ldap/pulse
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/python-ldap/python-ldap/issues/567
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/python-ldap/python-ldap/issues/567
RFE: Support for add and delete operations in ldif.LDIFParser.parse_change_records()https://patch-diff.githubusercontent.com/python-ldap/python-ldap/issues/567#top
https://github.com/fager
https://github.com/fager
fagerhttps://github.com/fager
on May 15, 2024https://github.com/python-ldap/python-ldap/issues/567#issue-2298677898
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.