升级了mac操作系统,安装python的python-ldap,报错 Modules/LDAPObject.c:18:10: fatal error: 'sasl.h' file not found # Command /usr/bin/python -c "import setuptools, tokenize;__file__='/private/tmp/pip_build_root/python-ldap single-version-externally-managed --compile failed with error code 1 in /private/tmp/pip_build_root/python-ldap
废话留到假期再说吧,接下来六周可能没有技术方面的博客更新~ 最近对 LDAP 服务器上面的数据做处理,有机会接触了一下 Python-LDAP 这个库和 LDAP/Kerberos. 去除所有打印和错误处理的代码后,用 Python-LDAP 操作 LDAP 的骨干代码其实很简单,就这么几行,唯一遇到的一个小麻烦就是折腾了一个多小时才知道 ‘TRUE’ 要大写(后面有说到)。 安装 Python-LDAP 在 Ubuntu/Debian 下安装 python-ldap 模块: $ sudo apt-get install python-ldap 在 CentOS/RHEL 下安装 python-ldap 模块: # yum install python-ldap 创建 创建一条 LDAP 新纪录。
看了一下python-ldap的文档,实现了对ldap服务器上的用户实现增删改查。
即django-auth-ldap报错: c:\users\ops-coffee\appdata\local\temp\pip-install-sec1o036\python-ldap\modules\ failed with exit status 2 这个报错需要手动安装下whl文件,具体方法为: 先在这个网站https://www.lfd.uci.edu/~gohlke/pythonlibs/#python-ldap 下载对应版本的python-ldap的whl文件 然后使用pip命令安装whl,注意文件路径要正确 D:\demo\openldap>python -m pip install python_ldap- (0.4.2) Requirement already satisfied: pyasn1-modules>=0.1.5 in c:\python36\lib\site-packages (from python-ldap ==3.2.0) (0.2.4) Installing collected packages: python-ldap Successfully installed python-ldap-3.2.0
首先需要安装python-ldap的模块 http://www.python-ldap.org/。 在这里用的是windows系统,当然比较容易,下载地址 http://pypi.python.org/pypi/python-ldap/。 python-ldap:http://www.python-ldap.org/ python-ldap的windows版本下载:http://pypi.python.org/pypi/python-ldap python-ldap:http://www.python-ldap.org/ python-ldap的windows版本下载:http://pypi.python.org/pypi/python-ldap python-ldap:http://www.python-ldap.org/ python-ldap的windows版本下载:http://pypi.python.org/pypi/python-ldap
python-ldap python一般使用python-ldap库操作ldap,文档:https://www.python-ldap.org/en/latest/index.html。 下载: pip install python-ldap 还要安装一些环境,ubuntu: apt-get install build-essential python3-dev python2.7-dev
二、环境准备 1、安装python-ldap、django-auth-ldap 模块版本及下载地址,博主亲测有效! python-ldap 2.4.12 https://pypi.python.org/pypi/python-ldap/2.4.12 django-auth-ldap 1.1.4 https://pypi.python.org /pypi/django-auth-ldap/1.1.4 或直接在线安装 pip install python-ldap -i https://pypi.douban.com/simple pip install
的分支) python 2.7 (从 Seafile 5.1 开始,python 版本最低要求为2.7) python-setuptools python-imaging python-mysqldb python-ldap 14.04 server apt-get update apt-get install python2.7 libpython2.7 python-setuptools python-imaging \ python-ldap update apt-get install python apt-get install python2.7 libpython2.7 python-setuptools python-imaging python-ldap li.nux.ro/download/nux/RPM-GPG-KEY-nux.ro yum -y install python-imaging MySQL-python python-memcached python-ldap
我们需要能够创建一种一体机类型的安装程序,该安装程序可以安装 Python、依赖项 (Python-LDAP)、一些 Python 代码,并将基于 Python 的 Web 服务器注册为 Windows 我们目前的想法是使用 NSIS 创建一个包含 Python 和 Python-LDAP 作为 MSI 的安装程序,然后注册我们自己的简单的基于 Python 的 Web 服务器作为 Windows 服务
Python on Windows PyAlembic wheels for Python on Windows PyOpenGL, PyICU, TA-Lib, python-curses, and python-ldap
python-ldap访问AD域的的错误一般会如下格式: {‘info’: ‘80090308: LdapErr: DSID-0C090334, comment: AcceptSecurityContext
openjdk poppler-utils python-setuptools \ python-imaging MySQL-python mariadb-server python-memcached python-ldap install java-1.7.0-openjdk poppler-utils python-setuptools python-imaging python-memcached MySQL-python python-ldap
Cannot uninstall 'python-ldap'. dnspython 安装yum install python-devel 安装yum install openldap-devel 升级pip install --ignore-installed python-ldap
我们需要使用下列命令将该项目源码克隆至本地: git clone https://github.com/wavestone-cdt/wavecrack.git (向右滑动、查看更多) 安装RabbitMQ服务器和python-ldap
lab/10093 安装Seafile 安装依赖环境 [root@localhost ~]# yum -y install python python-setuptools python-imaging python-ldap
lab/10093 安装Seafile 安装依赖环境 [root@localhost ~]# yum -y install python python-setuptools python-imaging python-ldap
安装步骤 安装依赖环境 使用 yum 安装 Python 及 MySQL: yum install python python-setuptools python-imaging python-ldap
update -y && sudo reboot 三、安装依赖环境 安装下面的环境 sudo yum install python python-setuptools python-imaging python-ldap
nux/RPM-GPG-KEY-nux.ro [root@seafile ~]# yum -y install Python-imaging MySQL-python python-memcached python-ldap
apt-get update sudo apt-get install python python2.7 libpython2.7 python-setuptools python-imaging python-ldap li.nux.ro/download/nux/RPM-GPG-KEY-nux.ro yum -y install python-imaging MySQL-python python-memcached python-ldap