ldapsearch vs. python-ldap

2009-04-10 Thread James
Hey, I'm trying to use python-ldap to do something that works with the ldapsearch command line tool. I've posted code samples, can someone point out why the python-ldap fails? What is different about what python-ldap is doing. It seems that it forgets that it just _did_ bind successfully... thanks

LDAP ORM

2007-10-22 Thread James Andrewartha
] http://trs80.ucc.asn.au/ldaporm.py James Andrewartha - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser

Re: LDAP ORM

2007-10-22 Thread James Andrewartha
On Mon, 2007-10-22 at 15:05 +0200, Michael Ströder wrote: > James Andrewartha wrote: > > > > --- cidict.py~ 2003-08-25 00:28:12.0 +0800 > > +++ cidict.py 2007-10-22 20:16:54.0 +0800 > > @@ -43,6 +43,9 @@ > >def has_key(self,key): > >

Re: LDAP ORM

2007-10-22 Thread James Andrewartha
pposed to be interpreted by the webserver. Try http://trs80.ucc.asn.au/ldaporm.pys instead. James Andrewartha - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search

Re: LDAP ORM

2007-10-22 Thread James Andrewartha
On Mon, 2007-10-22 at 16:13 +0200, Michael Ströder wrote: > James Andrewartha wrote: > > On Mon, 2007-10-22 at 15:05 +0200, Michael Ströder wrote: > >> If you're using ldap.schema you might want to look into using class > >> ldap.schema.models.Entry instead of s

documentation updates

2007-10-22 Thread James Andrewartha
Hi, The first patch removes an invalid LDAP option. The second updates the LDAPObject documentation, and the third updates LDAPObject docstrings. Hopefully I'll have time to look at updating the rest of the docs soon. James Andrewartha Index: Modules/consta

Re: documentation updates

2007-10-23 Thread James Andrewartha
On Tue, 2007-10-23 at 09:15 +0800, James Andrewartha wrote: > Hi, > > The first patch removes an invalid LDAP option. The second updates the > LDAPObject documentation, and the third updates LDAPObject docstrings. > Hopefully I'll have time to look at updating the rest of th

Re: documentation updates

2007-10-23 Thread James Andrewartha
On Tue, 2007-10-23 at 17:27 +0800, James Andrewartha wrote: > On Tue, 2007-10-23 at 09:15 +0800, James Andrewartha wrote: > > Hi, > > > > The first patch removes an invalid LDAP option. The second updates the > > LDAPObject documentation, and the third updates LDAPObjec

Re: LDAP ORM

2007-10-28 Thread James Andrewartha
On Mon, 2007-10-22 at 19:22 +0200, Michael Ströder wrote: > James Andrewartha wrote: > > > > Thanks for the pointer. I've updated the code to map _ in attribute > > names to -. Attributes without a short name are impossible to wrap - I'm > > not expecting

Re: STRONG_AUTH_REQUIRED

2007-12-11 Thread James Andrewartha
binding to the server? Simple bind or SASL? Unencrypted or SSL/TLS? Also, which LDAP server is it? OpenLDAP can be configured to require stronger authentication for modifications - search for ssf (Security Strength Factor) in the slapd.access(5) and slap.conf(5) man pages. Jam

Re: documentation updates

2008-02-11 Thread James Andrewartha
g used in this example written at the end of last year: http://www.packtpub.com/article/python-ldap-applications-ldap-opearations James Andrewartha - This SF.net email is sponsored by: Microsoft Defy all challenges.

Missing method in ldap.cidict

2008-03-11 Thread James Andrewartha
Hi, The cidict class needs the following method for "attr in cidict" to work properly: def __contains__(self,key): return self.has_key(key) Otherwise it defaults to using the UserDict __contains__ which isn't case-insensitive. Thanks, Ja

Re: hello everybody

2009-09-08 Thread James Andrewartha
- my library wasn't meant to be general purpose, it was for scenarios where you have control of the LDAP server and can make these things can't happen. In fact my ultimate idea was to upload user-defined model schema to the LDAP server via cn=config. -- James Andrewartha --

Re: python-ldap hanging for 15 minutes under certain conditions

2011-02-03 Thread James Andrewartha
d libldap is linked into many GPL applications. So the solutions are fix the OpenSSL licensing or make GnuTLS not suck; I have no hope of either occurring. James Andrewartha -- The modern datacenter depends on network co