python-ldap


python-ldap failed to install in Heroku

折月煮酒 提交于 2020-01-14 09:52:10
问题 It seems like Heroku does not support python-ldap. The pip install with "python-ldap==2.3.13" in the requirements.txt file failed with following error in Heroku: gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DHAVE_LIBLDAP_R -DHAVE_SASL -DHAVE_TLS -DLDAPMODULE_VERSION=2.3.13 -IModules -I/usr/local/openldap-2.3/include -I/usr/include/sasl -I/usr/local/include/python2.7 -c Modules/LDAPObject.c -o build/temp.linux-x86_64-2.7/Modules/LDAPObject.o

Python+LDAP+SSL

拜拜、爱过 提交于 2020-01-09 13:06:07
问题 Good day. In advance to apologize for my English, my national forums and resources did not help. There was a need in the script that changes (or creates) a user password in AD. After studying the issue, it became clear that Password to assign or change can only establish an encrypted connection to the server Send the password is only necessary in the encoding utf-16-le In general there is no problem with the second, but first have a problem with $ python ldap-test-starttls.py Traceback (most

Use Python script to manage remote LDAP server

吃可爱长大的小学妹 提交于 2020-01-05 13:33:50
问题 Background: I am working on an API to centralize user creation and management for multiple resources(e.g. Google Apps, Dropbox, etc...). On a Linux VM, I developed an API and web interface that allows me(and my co-admins) to authenticate and manage user accounts for these services. The next thing I need to integrate is our Active Directory which is hosted on a remote Windows Server 2008. I have been trying to use python-ldap to connect to and retrieve/modify information but have had issues

python-ldap OS X 10.6 and Python 2.6

故事扮演 提交于 2019-12-30 08:33:28
问题 Trying to install python-ldap for my Django project -- so far tried easy_install, pip, as well as building myself, but still getting the same errors: dlopen(/Library/Python/2.6/site-packages/_ldap.so, 2): Symbol not found: _ldap_create_assertion_control_value Referenced from: /Library/Python/2.6/site-packages/_ldap.so Expected in: flat namespace in /Library/Python/2.6/site-packages/_ldap.so What's going on? 回答1: The problem and solution are documented here. Summary: The 10.7.{0,1} system

python-ldap and Microsoft Active Directory: connect and delete user

人走茶凉 提交于 2019-12-25 07:59:15
问题 python-ldap newb here. I am trying to do this with the following sample code: import ldap ## first you must bind so we're doing a simple bind first try: l = ldap.open("valid ip") l.set_option(ldap.OPT_REFERRALS, 0) l.protocol_version = ldap.VERSION3 # Pass in a valid username and password to get # privileged directory access. # If you leave them as empty strings or pass an invalid value # you will still bind to the server but with limited privileges. username = "cn=administrator, o=joe.local"

No confirmation of authenticate(username=username, password=password) in django-python3-ldap

梦想的初衷 提交于 2019-12-14 04:03:31
问题 I'm trying to develop what should be a relative simple web application that requests a user to log in via LDAP, then if successfully logged in, the user can then search for another user(s) in the LDAP server. It's an application for admin people. The code so far creates/binds to the ldap server, and upon finding the searched user, a different page is displayed showing the user's credentials. Connectivity via the correct credentials has been confirmed via the ldap3 library. On the second

Python-ldap search: Size Limit Exceeded

混江龙づ霸主 提交于 2019-12-13 04:22:36
问题 I'm using the python-ldap library to connect to our LDAP server and run queries. The issue I'm running into is that despite setting a size limit on the search, I keep getting SIZELIMIT_EXCEEDED errors on any query that would return too many results. I know that the query itself is working because I will get a result if the query returns a small subset of users. Even if I set the size limit to something absurd, like 1, I'll still get a SIZELIMIT_EXCEEDED on those bigger queries. I've pasted a

ValueError: option error in Django / Python

安稳与你 提交于 2019-12-12 23:13:34
问题 I'm building a django website and trying to implement LDAP to it. Whenever I call ldap.set_option() , I get this error: ValueError: option error Any idea why this is happening? This is the document I'm following. Thanks for looking into this and greatly appreciate your help! 回答1: http://packages.python.org/django-auth-ldap/#auth-ldap-global-options Is AUTH_LDAP_GLOBAL_OPTIONS defined and does it have items in it? Perhaps it is not defined? 来源: https://stackoverflow.com/questions/11617147

LDAP search with username as variable

心不动则不痛 提交于 2019-12-12 02:43:18
问题 I am using the Python-LDAP module and trying to make a query on the logged in user. The username will be passed into the query. When I simply type the username in as a string my results come out correctly . But if I try to pass the (username) variable it returns LDAPError - FILTER_ERROR: {'desc': u'Bad search filter'} I've tried a number of different combinations but continue to get the same error returned. Any insight here would be great! Edited for Minimal, Complete, and Verifiable example:

Python: how to setup python-ldap to ignore referrals?

。_饼干妹妹 提交于 2019-12-11 01:45:32
问题 how can I avoid getting (undocumented) exception in following code? import ldap import ldap.sasl connection = ldap.initialize('ldaps://server:636', trace_level=0) connection.set_option(ldap.OPT_REFERRALS, 0) connection.protocol_version = 3 sasl_auth = ldap.sasl.external() connection.sasl_interactive_bind_s('', sasl_auth) baseDN = 'ou=org.com,ou=xx,dc=xxx,dc=com' filter = 'objectclass=*' try: result = connection.search_s(baseDN, ldap.SCOPE_SUBTREE, filter) except ldap.REFERRAL, e: print

工具导航Map