Re: [Zope] LDAP won't work - yes I've applied the patch

2000-10-07 Thread Dieter Maurer

Roman Milner writes:
  I'm trying to get ldap methods to work with 2.2.2.  I can access the
  attributes of the objects returned from an ldap method with a python
  extension fine, but dtml-in'ing the returned list doesn't work. I keep
  getting an error (traceback below).

  !--
  Error Type: KeyError
The new Zope 2.2 security model hides objects you are not
authorized to use. Therefore, you get "KeyError" where
you may (or not) expect "Authorization Error".

Probably, the LDAP product is not yet adapted for Zope 2.2.
Probably, there need to be a
 "__allow_access_to_unprotected_subobjects__ = 1"
somewhere.

Maybe, you can contact the author, or try it yourself.
There is documentation from Brian decribing what products
need to do in order to be compatible with the new Zope 2.2
security policy.


Dieter
 

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




Re: [Zope] LDAP won't work - yes I've applied the patch

2000-10-07 Thread Roman Milner

 "DM" == Dieter Maurer [EMAIL PROTECTED] writes:

DM Maybe, you can contact the author, or try it yourself.  There
DM is documentation from Brian decribing what products need to do
DM in order to be compatible with the new Zope 2.2 security
DM policy.


DM Dieter
 

I've already littered the whole ldap productg with
_allow_access_to_unprotected_subobjects=1's, to no avail.  Besides,
with the patch applied, the product claims to work with 2.2. I guess
my next step will be to email the author.

^Roman


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




Re: [Zope] LDAP won't work - yes I've applied the patch

2000-10-06 Thread Joachim Werner

I also don't get the LDAP Methods to work, even tried on 2.1.6.
The test tab works as usual, but when I use them in DTML I don't have success
either.

Can anybody who got them working please try to explain the syntax step by step?
The provided examples don't work for me.

That's what I do:

1. I have a working LDAP Connection

2. If I create an LDAP method ("ldapmethod") with the argument "sn" and the
filter "sn=dtml-var sn" I get the correct result with the test tab.

3. I try to use the method in DTML:

dtml-in expr="ldapmethod(sn='Werner')"
 dtml-var name="sn", dtml-var name="cn"br /
/dtml-in

This raises an

Error Type: KeyError
Error Value: sn

The strange thing is that the method itselfs seems to work but passes no data:
 
If I just use 

dtml-in expr="ldapmethod(sn='Werner')"
 .br /
/dtml-in

then the number of "." equals the number of entries the method should pass.
Also, dtml-var "ldapmethod(sn='Werner')" results in things like "[, ]", again
the number of empty elements is correct, they just shouldn't be empty ...

__

Iuveno - Smart Communication


Joachim Werner


_

Marie-Curie-Straße 6
85055 Ingolstadt

Tel.: +49 841/90 14-325 (Fax -322)
Mobil: +49 179/39 60 327
E-Mail: [EMAIL PROTECTED][EMAIL PROTECTED]
WWW: www.iuveno.de/www.iuveno-net.de



___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




[Zope] Fwd: [Zope] LDAP won't work - yes I've applied the patch

2000-10-05 Thread zope

Hi.

In deed, I have the same problem.

As an example, my LDAP Method consists of the following filter: uid=*

With the following DTML-method, I'm getting data from my LDAP server.

dtml-in searchPerson
   dtml-let counter=sequence-index
 dtml-var bla: dtml-var "searchPerson[counter]"
   /dtml-let
/dtml-in

The result contains the attributes with their value from the LDAPserver. 
When I'm trying to get the value of an attribute directly (i.e. with 
dtml-var uid), I'm getting the key error.

Any idea?

Marc LUDWIG


From: Roman Milner [EMAIL PROTECTED]
Date: 05 Oct 2000 00:35:53 -0500
Lines: 30
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Capitol Reef)
Sender: [EMAIL PROTECTED]
X-Mailman-Version: 1.0b8
List-Id: Users of the Z Object Publishing Environment zope.zope.org
X-BeenThere: [EMAIL PROTECTED]

I'm trying to get ldap methods to work with 2.2.2.  I can access the
attributes of the objects returned from an ldap method with a python
extension fine, but dtml-in'ing the returned list doesn't work. I keep
getting an error (traceback below).

Any ideas?

Thanks,
^Roman


Your action caused an unknown error to occur.
!--
Error Type: KeyError


Traceback:
Traceback (innermost last):
   File /home/ThePoint/lib/python/ZPublisher/Publish.py, line 171, in publish
   File /home/ThePoint/lib/python/ZPublisher/mapply.py, line 160, in mapply
 (Object: ltest)
   File /home/ThePoint/lib/python/ZPublisher/Publish.py, line 112, in 
 call_object
 (Object: ltest)
   File /home/ThePoint/lib/python/OFS/DTMLMethod.py, line 172, in __call__
 (Object: ltest)
   File /home/ThePoint/lib/python/DocumentTemplate/DT_String.py, line 528, 
 in __call__
 (Object: ltest)
   File /home/ThePoint/lib/python/DocumentTemplate/DT_In.py, line 691, in 
 renderwob
 (Object: ldap_user(uid='rmilner'))
KeyError: cn


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )