Title: Can't use ReconnectLDAPObject to bind because of TypeError · Issue #448 · python-ldap/python-ldap · GitHub
Open Graph Title: Can't use ReconnectLDAPObject to bind because of TypeError · Issue #448 · python-ldap/python-ldap
X Title: Can't use ReconnectLDAPObject to bind because of TypeError · Issue #448 · python-ldap/python-ldap
Description: Issue description: Using ReconnectLDAPObject results in an error: TypeError: _store_last_bind() got multiple values for argument 'method' Steps to reproduce: connection = ldap.ldapobject.ReconnectLDAPObject(uri=uri, bytes_mode=False) con...
Open Graph Description: Issue description: Using ReconnectLDAPObject results in an error: TypeError: _store_last_bind() got multiple values for argument 'method' Steps to reproduce: connection = ldap.ldapobject.ReconnectL...
X Description: Issue description: Using ReconnectLDAPObject results in an error: TypeError: _store_last_bind() got multiple values for argument 'method' Steps to reproduce: connection = ldap.ldapobject.Re...
Opengraph URL: https://github.com/python-ldap/python-ldap/issues/448
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Can't use ReconnectLDAPObject to bind because of TypeError","articleBody":"Issue description:\r\nUsing `ReconnectLDAPObject` results in an error:\r\n`TypeError: _store_last_bind() got multiple values for argument 'method'`\r\n\r\nSteps to reproduce: \r\n\r\n```\r\nconnection = ldap.ldapobject.ReconnectLDAPObject(uri=uri, bytes_mode=False)\r\nconnection.bind_s(bind_dn, password, method=ldap.AUTH_SIMPLE)\r\n```\r\n\r\n`bind_s` invokes `self._store_last_bind`\r\n\r\n```\r\nself._store_last_bind(method=SimpleLDAPObject.bind_s,*('username', 'password'),**{'method': 128})\r\n```\r\nWhich has 2 parameters called method and hence the exception.\r\n\r\nIn my case, I can omit the `method=ldap.AUTH_SIMPLE` but if I needed a different auth method then it would not work.\r\n\r\nOperating system: \r\nLinux\r\n\r\nPython version: \r\n3.8.11\r\n\r\npython-ldap version: \r\npython-ldap==3.3.1\r\n","author":{"url":"https://github.com/jnewbigin","@type":"Person","name":"jnewbigin"},"datePublished":"2021-12-10T10:55:54.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/448/python-ldap/issues/448"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:bf6ca565-a038-ef25-fcb3-90c655d72dd4 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | ACEA:1BD7A5:7E9608A:A3FA67E:6975C7F6 |
| html-safe-nonce | e6519a467b20bd6431863d2ff8eac920de03d5dda950daf85e050ebf43689a81 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQ0VBOjFCRDdBNTo3RTk2MDhBOkEzRkE2N0U6Njk3NUM3RjYiLCJ2aXNpdG9yX2lkIjoiOTA1MTM5MTQ1MDYyNDE0OTQ5NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 8a54baa00100f9a08745a43ed03facfde95e7bf7f5f4818e5607c8ffc7dddbba |
| hovercard-subject-tag | issue:1076716003 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python-ldap/python-ldap/448/issue_layout |
| twitter:image | https://opengraph.githubassets.com/7852d887eb9ef5669b1c6d208d51b16648d49c37814bef8cabcf25300bbdeb6c/python-ldap/python-ldap/issues/448 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/7852d887eb9ef5669b1c6d208d51b16648d49c37814bef8cabcf25300bbdeb6c/python-ldap/python-ldap/issues/448 |
| og:image:alt | Issue description: Using ReconnectLDAPObject results in an error: TypeError: _store_last_bind() got multiple values for argument 'method' Steps to reproduce: connection = ldap.ldapobject.ReconnectL... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | jnewbigin |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4a4bf5f4e28041a9d2e5c107d7d20b78b4294ba261cab243b28167c16a623a1f |
| turbo-cache-control | no-preview |
| go-import | github.com/python-ldap/python-ldap git https://github.com/python-ldap/python-ldap.git |
| octolytics-dimension-user_id | 33895877 |
| octolytics-dimension-user_login | python-ldap |
| octolytics-dimension-repository_id | 111794776 |
| octolytics-dimension-repository_nwo | python-ldap/python-ldap |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 111794776 |
| octolytics-dimension-repository_network_root_nwo | python-ldap/python-ldap |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 488b30e96dfd057fbbe44c6665ccbc030b729dde |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width