2011-08-17 26 views
0

如何在Ubuntu上將Active Directory與Plone 4集成?我上下搜索了互聯網,無法獲得這個工作!將Active Directory與Plone 4集成

我所知道的只是在buildout.cfg文件中添加「plone.app.ldap」並安裝附加組件。但是,每次我這樣做,我都會收到一條錯誤消息。我已經從Ubuntu回購站安裝了python-ldap 2.3.11,但是當我運行bin/buildout時仍然出現錯誤。

當我運行bin/buildount時,它開始爲'python-ldap> = 2.0.6'獲取分配。我不明白爲什麼當我已經安裝並測試python-ldap時必須這樣做!

我有Python 2.6。

這是我得到的消息,當我執行斌/擴建:

Getting distribution for 'python-ldap>=2.0.6'. 
extra_compile_args: -g 
extra_objects: 
include_dirs: /opt/openldap-RE24/include /usr/include/sasl 
library_dirs: /opt/openldap-RE24/lib 
libs: ldap_r lber sasl2 ssl crypto 
file Lib/ldap.py (for module ldap) not found 
file Lib/ldap/controls.py (for module ldap.controls) not found 
file Lib/ldap/extop.py (for module ldap.extop) not found 
file Lib/ldap/schema.py (for module ldap.schema) not found 
warning: no files found matching 'Makefile' 
warning: no files found matching 'Modules/LICENSE' 
file Lib/ldap.py (for module ldap) not found 
file Lib/ldap/controls.py (for module ldap.controls) not found 
file Lib/ldap/extop.py (for module ldap.extop) not found 
file Lib/ldap/schema.py (for module ldap.schema) not found 
file Lib/ldap.py (for module ldap) not found 
file Lib/ldap/controls.py (for module ldap.controls) not found 
file Lib/ldap/extop.py (for module ldap.extop) not found 
file Lib/ldap/schema.py (for module ldap.schema) not found 
In file included from Modules/LDAPObject.c:9:0: 
Modules/errors.h:8:18: fatal error: lber.h: No such file or directory 
compilation terminated. 
error: Setup script exited with error: command 'gcc' failed with exit status 1 
An error occured when trying to install python-ldap 2.4.3. Look above this message for any errors that were output by easy_install. 
While: 
    Installing instance. 
    Getting distribution for 'python-ldap>=2.0.6'. 
Error: Couldn't install: python-ldap 2.4.3 
*************** PICKED VERSIONS **************** 
[versions] 
plone.app.ldap = 1.2.6 

#Required by: 
#Products.PloneLDAP 1.1 
Products.LDAPMultiPlugins = 1.14 

#Required by: 
#Products.PloneLDAP 1.1 
Products.LDAPUserFolder = 2.20 

#Required by: 
#plone.app.ldap 1.2.6 
Products.PloneLDAP = 1.1 

#Required by: 
#Products.LDAPUserFolder 2.20 
dataflake.ldapconnection = 1.2 

*************** /PICKED VERSIONS *************** 

請指教。

+1

請在提問時發佈錯誤信息! –

+0

如果您要嘗試Plone/ActiveDirectory集成,恐怕您需要使用Python的一些經驗。 – aclark

回答

9

現在你已經包含了錯誤,事實證明這是一個完全不同的問題。如果沒有可用的LDAP development package,你不能構建python-ldap。在任何基於debian的系統上,例如ubuntu,您都可以使用優秀的deb軟件包元數據爲您做到這一點。

$ sudo apt-get build-dep python-ldap 
+0

Virtualenv?那是什麼?分發?對不起,當談到Python時,我是一個完整的noob。我在原始文章中包含了當我運行bin/buildout時得到的錯誤消息。 – Portiotis

+0

現在已經實際提供了詳細信息。 –