René's URL Explorer Experiment


Title: ldap.initialize(fileno=fileno) does take ownership of the fileno · Issue #575 · python-ldap/python-ldap · GitHub

Open Graph Title: ldap.initialize(fileno=fileno) does take ownership of the fileno · Issue #575 · python-ldap/python-ldap

X Title: ldap.initialize(fileno=fileno) does take ownership of the fileno · Issue #575 · python-ldap/python-ldap

Description: Issue description: The ldap.initialize() documents say If fileno parameter is given then the file descriptor will be used to connect to an LDAP server. The fileno must either be a socket file descriptor as int or a file-like object with ...

Open Graph Description: Issue description: The ldap.initialize() documents say If fileno parameter is given then the file descriptor will be used to connect to an LDAP server. The fileno must either be a socket file descr...

X Description: Issue description: The ldap.initialize() documents say If fileno parameter is given then the file descriptor will be used to connect to an LDAP server. The fileno must either be a socket file descr...

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

X: @github

direct link

Domain: patch-diff.githubusercontent.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"ldap.initialize(fileno=fileno) does take ownership of the fileno","articleBody":"Issue description:\r\n\r\nThe [ldap.initialize() documents](https://github.com/python-ldap/python-ldap/blob/a58282adbc6b1f5f9755458227e6bb8667b72f6b/Doc/reference/ldap.rst?plain=1#L43) say\r\n\u003e If fileno parameter is given then the file descriptor will be used to connect to an LDAP server. The fileno must either be a socket file descriptor as [int](https://docs.python.org/3/library/functions.html#int) or a file-like object with a fileno() method that returns a socket file descriptor. The socket file descriptor must already be connected. [LDAPObject](https://www.python-ldap.org/en/python-ldap-3.4.3/reference/ldap.html#ldap.ldap.ldapobject.LDAPObject) **does not take ownership of the file descriptor**. It must be kept open during operations and explicitly closed after the [LDAPObject](https://www.python-ldap.org/en/python-ldap-3.4.3/reference/ldap.html#ldap.ldap.ldapobject.LDAPObject) is unbound.\r\n\r\nHowever it seemingly is the case that it *does* take ownership\r\n\r\nhttps://github.com/python-ldap/python-ldap/commit/1490e999e10960f0fdf974f6da804a2fc55e4b05, https://github.com/python-ldap/python-ldap/issues/460, https://github.com/python-ldap/python-ldap/pull/543 are likely due to this confusion as well.\r\n\r\nFollowing the code shows it goes like this.\r\n\r\n`ldap.initalize(*args, fileno=fd)` will result in `ldap_init_fd()` being called which executes [code](https://github.com/openldap/openldap/blob/c9ab732ec18e32c58643e44a45233a6ed87830b6/libraries/libldap/open.c#L329) that essentially creates a new ldap connection object that is then bound to the passed in fileno it then based on the protocol passed (LDAP_PROTO_TCP, LDAP_PROTO_UDP, LDAP_PROTO_IPC, LDAP_PROTO_EXT) will assign the protocols respective sockbuf_IO(s) set of {setup, ctrl, read, write, close} functions (except for LDAP_PROTO_EXT which the user specifies a custom struct elsewhere). These functions dictate how to interact with the underlying communication mechanism. Most relevant to this issue is the “close” functions\r\n\r\nFor TCP/UDP sockbuf_IO it calls “tcp_close()” which is system dependent macro but for Linux is likely  the [below](https://github.com/openldap/openldap/blob/c9ab732ec18e32c58643e44a45233a6ed87830b6/include/ac/socket.h#L142)\r\n\u003e define tcp_close( s )\t(shutdown( s, SHUT_RDWR ), close( s ))\r\n\r\nFor IPC it uses ber_sockbuf_io_fd (where sb_fd_close()  is just close(2)\r\n\r\nIn all cases except LDAP_PROTO_EXT(where it’s user dependent), when a connection is freed some form of close() is called on the fd.\r\n\r\nI’m not sure why the documentation thinks it doesn’t “take ownership”, but maybe it’s because of this section in ldap_init_fd()\r\n```\r\n\r\n\t/* Attach the passed socket as the LDAP's connection */\r\n\tconn = ldap_new_connection( ld, NULL, 1, 0, NULL, 0, 0 );\r\n\tif( conn == NULL ) {\r\n\t\tLDAP_MUTEX_UNLOCK( \u0026ld-\u003eld_conn_mutex );\r\n\t\tldap_unbind_ext( ld, NULL, NULL );\r\n\t\treturn( LDAP_NO_MEMORY );\r\n\t}\r\n\tif( url )\r\n\t\tconn-\u003elconn_server = ldap_url_dup( ld-\u003eld_options.ldo_defludp );\r\n\tber_sockbuf_ctrl( conn-\u003elconn_sb, LBER_SB_OPT_SET_FD, \u0026fd );\r\n\tld-\u003eld_defconn = conn;\r\n\t++ld-\u003eld_defconn-\u003elconn_refcnt;\t/* so it never gets closed/freed */\r\n```\r\n\r\nHowever this just means the connection won’t be reclaimed while LDAP object is in use, but that doesn’t stop it from being cleaned up on free.\r\n\r\nIf I’m following things correctly:\r\n`ldap.initialize(*args, fileno=fileno)` will create a ldap object with an ldap connection from the connected socket fd we pass in. \r\n\r\nBut on ldap_unbind_ext() which ldap_destroy(), ldap_unbind(), [`dealloc(LDAPObject *self)`](https://github.com/python-ldap/python-ldap/blob/a58282adbc6b1f5f9755458227e6bb8667b72f6b/Modules/LDAPObject.c#L33) etc, eventually call. `ldap_unbind_ext()` will call [`ldap_ld_free`](https://github.com/openldap/openldap/blob/c9ab732ec18e32c58643e44a45233a6ed87830b6/libraries/libldap/unbind.c#L74) which if the ref count for the ldap object is \u003c 2, it will perform\r\n```\r\n\t/* free and unbind from all open connections */\r\n\twhile ( ld-\u003eld_conns != NULL ) {\r\n\t\tldap_free_connection( ld, ld-\u003eld_conns, /*force=*/1, /*unbind=*/close);\r\n\t}\r\n```\r\n\r\nWell ldap_free_connection() when force=1, [will ignore the connection refcount](https://github.com/openldap/openldap/blob/c9ab732ec18e32c58643e44a45233a6ed87830b6/libraries/libldap/request.c#L752) and free the ldap connection anyway.\r\n\r\nSpecifically it frees/closes the fd by calling either of these functions\r\n\r\n```\r\nif ( lc-\u003elconn_sb != ld-\u003eld_sb ) {\r\n\t\t\tber_sockbuf_free( lc-\u003elconn_sb );\r\n\t\t} else {\r\n\t\t\tber_int_sb_close( lc-\u003elconn_sb );\r\n\t\t}\r\n```\r\n\r\nWhere `_sockbuf_free()` also calls [`ber_int_sb_close()`](https://github.com/openldap/openldap/blob/master/libraries/liblber/sockbuf.c#L375)\r\n\r\nAnd that function is \r\n```\r\nSockbuf_IO_Desc\t\t*p;\r\n\r\n\tassert( sb != NULL);\r\n   \r\n\tp = sb-\u003esb_iod;\r\n\twhile ( p ) {\r\n\t\tif ( p-\u003esbiod_io-\u003esbi_close \u0026\u0026 p-\u003esbiod_io-\u003esbi_close( p ) \u003c 0 ) {\r\n\t\t\treturn -1;\r\n\t\t}\r\n\t\tp = p-\u003esbiod_next;\r\n\t}\r\n   \r\n\tsb-\u003esb_fd = AC_SOCKET_INVALID;\r\n   \r\n\treturn 0;\r\n```\r\n\r\nGoing way back to the Sockbuf_IO functions that were bound during the initalize discussed above. \r\n\r\nWhich means for all the supported protocols in `python-ldap` (TCP, UDP, IPC) at minimum `close(fd)` is called.\r\n\r\nLDAPObject’s deconstructor will call `ldap_unbind_ext()` which as described above means it will always lead to closing the FD passed in to `ldap.initalize(*args, fileno=fileno)`\r\n\r\n[`ldap_unbind_ext(3)`](https://man7.org/linux/man-pages/man3/ldap.3.html) is defined as\r\n\u003e ldap_unbind_ext(3)\r\n              synchronously unbind from the LDAP server and close the\r\n              connection\r\nSo it seems like this is somewhat expected.\r\n\r\nWhy do the Docs believe libopenldap does not take ownership?\r\n\r\nSteps to reproduce: \r\nThe simplest repro is \r\n\r\n```\r\nimport ldap\r\nimport socket\r\n# set openldap debugging levels\r\nldap.set_option(ldap.OPT_DEBUG_LEVEL, 255)\r\n# monkey patch __del__ method to see when it is called\r\nldap.ldapobject.LDAPObject.__del__ = lambda self: print(f\"calling __del__ of {self}\")\r\n\r\ndef simple_repro():\r\n    # Connect to an \"LDAP server\" (that doesn't exist)\r\n    client, server = socket.socketpair(family=socket.AF_UNIX, type=socket.SOCK_STREAM)\r\n    print(f\"client={client.fileno()}, server={server.fileno()}\")\r\n    l = ldap.initialize('ldap://localhost:1389', trace_level=1, fileno=client.fileno())\r\n    print(f\"l's fileno={l.fileno()}\")\r\n    del l # force l's deconstruction\r\n    server.close()\r\n    # this will fail due to l's deconstruction resulting in close(client.fileno())\r\n    client.close()\r\n\r\nsimple_repro()\r\n```\r\n\r\nWhich outputs\r\n```\r\nclient=3, server=4\r\nldap_url_parse_ext(ldap://localhost:1389)\r\nldap_create\r\nldap_url_parse_ext(ldap://localhost:1389)\r\nldap_new_connection 1 0 0\r\n*** \u003cldap.ldapobject.SimpleLDAPObject object at 0x7fbcde13f3d0\u003e ldap://localhost:1389 - SimpleLDAPObject.set_option\r\n((17, 3), {})\r\n*** \u003cldap.ldapobject.SimpleLDAPObject object at 0x7fbcde13f3d0\u003e ldap://localhost:1389 - SimpleLDAPObject.get_option\r\n((1,), {})\r\nl's fileno=3\r\ncalling __del__ of \u003cldap.ldapobject.SimpleLDAPObject object at 0x7fbcde13f3d0\u003e\r\nldap_free_connection 1 1\r\nldap_send_unbind\r\nldap_free_connection: actually freed\r\nTraceback (most recent call last):\r\n  File \"examples/repro.py\", line 19, in \u003cmodule\u003e\r\n    simple_repro()\r\n  File \"examples/repro.py\", line 17, in simple_repro\r\n    client.close()\r\n  File \"/opt/python/python-3.11/lib64/python3.11/socket.py\", line 503, in close\r\n    self._real_close()\r\n  File \"/opt/python/python-3.11/lib64/python3.11/socket.py\", line 497, in _real_close\r\n    _ss.close(self)\r\nOSError: [Errno 9] Bad file descriptor\r\n```\r\nIf you run `strace` on it the relevant evidence is\r\n```\r\nsocketpair(AF_UNIX, SOCK_STREAM|SOCK_CLOEXEC, 0, [3, 4]) = 0\r\ngetsockname(3, {sa_family=AF_UNIX}, [128 =\u003e 2]) = 0\r\ngetsockname(4, {sa_family=AF_UNIX}, [128 =\u003e 2]) = 0\r\nwrite(1, \"client=3, server=4\\n\", 19)    = 19\r\nwrite(2, \"ldap_url_parse_ext(ldap://localh\"..., 42) = 42\r\nwrite(2, \"ldap_create\\n\", 12)           = 12\r\nwrite(2, \"ldap_url_parse_ext(ldap://localh\"..., 42) = 42\r\nwrite(2, \"ldap_new_connection 1 0 0\\n\", 26) = 26\r\nwrite(1, \"*** \u003cldap.ldapobject.SimpleLDAPO\"..., 130) = 130\r\nwrite(1, \"*** \u003cldap.ldapobject.SimpleLDAPO\"..., 127) = 127\r\nwrite(1, \"l's fileno=3\\n\", 13)          = 13\r\nwrite(1, \"calling __del__ of \u003cldap.ldapobj\"..., 79) = 79\r\nwrite(2, \"ldap_free_connection 1 1\\n\", 25) = 25\r\nwrite(2, \"ldap_send_unbind\\n\", 17)      = 17\r\nwrite(3, \"0\\5\\2\\1\\1B\\0\", 7)             = 7\r\nshutdown(3, SHUT_RDWR)                  = 0\r\nclose(3)                                = 0\r\nwrite(2, \"ldap_free_connection: actually f\"..., 37) = 37\r\nclose(4)                                = 0\r\nclose(3)                                = -1 EBADF (Bad file descriptor)\r\n```\r\n\r\nOperating system: \r\nLinux\r\nPython version: \r\nPython 3.11.8\r\npython-ldap version: \r\n3.4.0","author":{"url":"https://github.com/ClydeByrdIII","@type":"Person","name":"ClydeByrdIII"},"datePublished":"2024-08-30T20:47:06.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/575/python-ldap/issues/575"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:33397307-8bb6-5f2f-3d10-799e28b0c396
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idB1D8:1B6BE9:87581D4:AF07727:6975DD94
html-safe-nonce2e80d751c42bc618718c472014f9d800d8d2f75e10d9744b5d28a771a9df218f
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMUQ4OjFCNkJFOTo4NzU4MUQ0OkFGMDc3Mjc6Njk3NUREOTQiLCJ2aXNpdG9yX2lkIjoiNDQ3OTEwNjE4NjU2NDk4NDIxMiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacbf78b8648c2c7721fb1cd6f91e553229f233098ee2feb7ea1ecdb0bf007eda3e
hovercard-subject-tagissue:2498151925
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/575/issue_layout
twitter:imagehttps://opengraph.githubassets.com/6a42ee1250035cafc1b9797cc9a962bf3450775fe358fcb22c959011c6f5e70a/python-ldap/python-ldap/issues/575
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/6a42ee1250035cafc1b9797cc9a962bf3450775fe358fcb22c959011c6f5e70a/python-ldap/python-ldap/issues/575
og:image:altIssue description: The ldap.initialize() documents say If fileno parameter is given then the file descriptor will be used to connect to an LDAP server. The fileno must either be a socket file descr...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameClydeByrdIII
hostnamegithub.com
expected-hostnamegithub.com
None2bce766e7450b03e00b2fc5badd417927ce33a860e78cda3e4ecb9bbd1374cc6
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
releasefcca2b8ef702b5f7f91427a6e920fa44446fe312
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/python-ldap/python-ldap/issues/575#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%2F575
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%2F575
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/575
Reloadhttps://patch-diff.githubusercontent.com/python-ldap/python-ldap/issues/575
Reloadhttps://patch-diff.githubusercontent.com/python-ldap/python-ldap/issues/575
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/575
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/python-ldap/python-ldap/issues/575
ldap.initialize(fileno=fileno) does take ownership of the filenohttps://patch-diff.githubusercontent.com/python-ldap/python-ldap/issues/575#top
https://github.com/ClydeByrdIII
https://github.com/ClydeByrdIII
ClydeByrdIIIhttps://github.com/ClydeByrdIII
on Aug 30, 2024https://github.com/python-ldap/python-ldap/issues/575#issue-2498151925
ldap.initialize() documentshttps://github.com/python-ldap/python-ldap/blob/a58282adbc6b1f5f9755458227e6bb8667b72f6b/Doc/reference/ldap.rst?plain=1#L43
inthttps://docs.python.org/3/library/functions.html#int
LDAPObjecthttps://www.python-ldap.org/en/python-ldap-3.4.3/reference/ldap.html#ldap.ldap.ldapobject.LDAPObject
LDAPObjecthttps://www.python-ldap.org/en/python-ldap-3.4.3/reference/ldap.html#ldap.ldap.ldapobject.LDAPObject
1490e99https://github.com/python-ldap/python-ldap/commit/1490e999e10960f0fdf974f6da804a2fc55e4b05
#460https://github.com/python-ldap/python-ldap/issues/460
#543https://github.com/python-ldap/python-ldap/pull/543
codehttps://github.com/openldap/openldap/blob/c9ab732ec18e32c58643e44a45233a6ed87830b6/libraries/libldap/open.c#L329
belowhttps://github.com/openldap/openldap/blob/c9ab732ec18e32c58643e44a45233a6ed87830b6/include/ac/socket.h#L142
dealloc(LDAPObject *self)https://github.com/python-ldap/python-ldap/blob/a58282adbc6b1f5f9755458227e6bb8667b72f6b/Modules/LDAPObject.c#L33
ldap_ld_freehttps://github.com/openldap/openldap/blob/c9ab732ec18e32c58643e44a45233a6ed87830b6/libraries/libldap/unbind.c#L74
will ignore the connection refcounthttps://github.com/openldap/openldap/blob/c9ab732ec18e32c58643e44a45233a6ed87830b6/libraries/libldap/request.c#L752
ber_int_sb_close()https://github.com/openldap/openldap/blob/master/libraries/liblber/sockbuf.c#L375
ldap_unbind_ext(3)https://man7.org/linux/man-pages/man3/ldap.3.html
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.