Précédent   Forum du club des développeurs et IT Pro > Autres langages > Python & Zope > Zope
Zope Forum d'entraide sur Zope et ses CMS (Plone, ...)
Partagez cette discussion sur d'autres réseaux sociaux : Viadeo Twitter Google Facebook Digg Delicious MySpace Yahoo
Réponse
 
Outils de la discussion
Publicité
'
Vieux 17/11/2010, 11h08   #1
hunyka
Invité de passage
 
Inscription : juin 2008
Messages : 58
Détails du profil
Informations forums :
Inscription : juin 2008
Messages : 58
Points : 4
Points : 4
Par défaut erreur installation ldap et plone 4

Bonjour,

Je me suis lancer pour un mémoire de fin d'année dans la mise en place d'un intranet basé sur plone 4 et je souhaite installer le module LDAP pour une authentification Active Directory.

Voici la procédure que j'ai faite :

J'ai éditer le fichier base.cfg :

Dans la section instance j'ai inclut à eggs :

ensuite dans le fichier buildout.cfg :

eggs :

j'ai rajouter :

Code :
1
2
3
4
5
6
Products.PloneLDAP
plone.app.ldap
Products.LDAPMultiPlugins 
Products.LDAPUserFolder 
dataflake.cache 
dataflake.ldapconnection
dans la partie parts :
Code :
1
2
3
 
openldap
python-ldap

j'ai ensuite créer deux sections :
Code :
1
2
3
4
5
6
7
8
9
10
 
[openldap] recipe = zc.recipe.cmmi url = <a href="ftp://ftp.openldap.org/pub/OpenLDAP/openldap-stable/openldap-stable-20100219.tgz" target="_blank">ftp://ftp.openldap.org/pub/OpenLDAP/...e-20100219.tgz</a> extra_options = --with-sasl --with-tls --enable-slapd=no
 
[python-ldap]
recipe = zc.recipe.egg:custom 
egg = python-ldap 
include-dirs =
    ${openldap:location}/include 
library-dirs =
    ${openldap:location}/lib
Puis j'ai rajouter dans la section versions :

Ensuite je lance la commande /bin/builout

et voici mon erreur :

Code :
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
srv-zope:/usr/local/Plone/zinstance# bin/buildout
Installing openldap.
openldap: Downloading ftp://ftp.openldap.org/pub/OpenLDAP/openldap-stable/openldap-stable-20091028.tgz
While:
  Installing openldap.
 
An internal error occured due to a bug in either zc.buildout or in a
recipe being used:
Traceback (most recent call last):
  File "/usr/local/Plone/buildout-cache/eggs/zc.buildout-1.4.3-py2.6.egg/zc/buildout/buildout.py", line 1660, in main
    getattr(buildout, command)(args)
  File "/usr/local/Plone/buildout-cache/eggs/zc.buildout-1.4.3-py2.6.egg/zc/buildout/buildout.py", line 532, in install
    installed_files = self[part]._call(recipe.install)
  File "/usr/local/Plone/buildout-cache/eggs/zc.buildout-1.4.3-py2.6.egg/zc/buildout/buildout.py", line 1204, in _call
    return f()
  File "/usr/local/Plone/buildout-cache/eggs/zc.recipe.cmmi-1.3.3-py2.6.egg/zc/recipe/cmmi/__init__.py", line 109, in install
    fname, is_temp = download(self.url, md5sum=self.options.get('md5sum'))
  File "/usr/local/Plone/buildout-cache/eggs/zc.buildout-1.4.3-py2.6.egg/zc/buildout/download.py", line 94, in __call__
    local_path, is_temp = self.download_cached(url, md5sum)
  File "/usr/local/Plone/buildout-cache/eggs/zc.buildout-1.4.3-py2.6.egg/zc/buildout/download.py", line 139, in download_cached
    _, is_temp = self.download(url, md5sum, cached_path)
  File "/usr/local/Plone/buildout-cache/eggs/zc.buildout-1.4.3-py2.6.egg/zc/buildout/download.py", line 173, in download
    tmp_path, headers = urllib.urlretrieve(url, tmp_path)
  File "/usr/local/Plone/Python-2.6/lib/python2.6/urllib.py", line 93, in urlretrieve
    return _urlopener.retrieve(url, filename, reporthook, data)
  File "/usr/local/Plone/Python-2.6/lib/python2.6/urllib.py", line 237, in retrieve
    fp = self.open(url, data)
  File "/usr/local/Plone/Python-2.6/lib/python2.6/urllib.py", line 205, in open
    return getattr(self, name)(url)
  File "/usr/local/Plone/Python-2.6/lib/python2.6/urllib.py", line 554, in open_ftp
    (fp, retrlen) = self.ftpcache[key].retrfile(file, type)
  File "/usr/local/Plone/Python-2.6/lib/python2.6/urllib.py", line 880, in retrfile
    conn = self.ftp.ntransfercmd(cmd)
  File "/usr/local/Plone/Python-2.6/lib/python2.6/ftplib.py", line 324, in ntransfercmd
    conn = socket.create_connection((host, port), self.timeout)
  File "/usr/local/Plone/Python-2.6/lib/python2.6/socket.py", line 514, in create_connection
    raise error, msg
IOError: [Errno ftp error] [Errno 110] Connection timed out
*************** PICKED VERSIONS ****************
[versions]
zc.recipe.cmmi = 1.3.3
 
*************** /PICKED VERSIONS ***************
En remerciant les personnes qui pourront m'aider
hunyka est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 24/11/2010, 11h20   #2
hunyka
Invité de passage
 
Inscription : juin 2008
Messages : 58
Détails du profil
Informations forums :
Inscription : juin 2008
Messages : 58
Points : 4
Points : 4
Par défaut j'ai réussi

J'ai réussi à installer tous les composants pour l'authentification AD. Il à fallut que je compile python-ldap avec python livrée avec Plone 4. J'ai ensuite paramétrer tous ce qu'il faut mais j'ai un message au moment du login me précisant que l'authentification à échouer et me précise que mon navigateur doit acceptez les cookies, hors il est accepte.

Merci aux intervenants.
hunyka est déconnecté   Envoyer un message privé Réponse avec citation 00
Réponse Cette discussion est résolue.
Outils de la discussion

Navigation rapide


Fuseau horaire GMT +2. Il est actuellement 21h48.


 
 
 
 
Partenaires

Hébergement Web