[Zope] updating LDAPserver from python script

Dieter Maurer dieter@handshake.de
Tue, 23 Jul 2002 23:35:05 +0200


Ashish Gautam writes:
 > ... LDAP access problems from Python Script ...
 > ...
 > allow_module('ldap')
 > ...
 > After adding above script, and keeping the python script as it is i got
 > following error.
 > ...
 > Error Type: Unauthorized
 > Error Value: You are not allowed to access simple_bind_s in this context
 > ...
The easiest way is to use an External Method.

An alternative may be to use "allow_class" in addition to "allow_module".
However, it is unlikely, that is will work. The connection
instance is probably a C extension object that does not support
security declarations. But, just try it...



Dieter