Re: Problem on add

2008-06-09 Thread Michele Petrazzo - Unipex srl
Michele Petrazzo - Unipex srl wrote: <-cut-> Hi, thanks to all for the quickly reply. It was that it's the first time that I try to use ldap ;) and that like Bjørn says, "The DN is not a part of the ldif when using the API. " Remove that, now it's all working! Michele --

RE: Problem on add

2008-06-09 Thread Ron Teitelbaum
Hi Michele, Have a look at this http://www.grotan.com/ldap/python-ldap-samples.html I thought it was pretty helpful. It's easier to build the ldif using the modlist. Ron > -Original Message- > From: [EMAIL PROTECTED] [mailto:python-ldap- > [EMAIL PROTECTED] On Behalf Of Michele Petrazzo

Re: investigate python auth problem

2008-06-09 Thread David Hláčik
Hello Julien, ALL I have reproduced steps, to show you sample on another module and its results in INN (becouse i really like to solve this :) Here is part from nnrpd_auth.py module autheticate(args) which is called when authentication begins: part from readers.conf : *auth "pdg" { pyth

Re: module ldap : no module named .py

2008-06-09 Thread David Hláčik
Hello Ron, thanks for your help. Yes i know this exactly can cause problem like that, but i am sure that i did not do such schollar mistake. Actulaly as i mentioned i have this problem with INN python_auth hook. I was doing a lot of experiments last days and i found that problem is on their side.

Re: Problem on add

2008-06-09 Thread Michael Ströder
Michele Petrazzo - Unipex srl wrote: > > ldif = [('dn', 'cn=A name,ou=People,dc=unipex,dc=it'), I think this variable is misnamed. > [..] > l.add_s(LDAP_BASE_DN, ldif) > [..] > ldap.UNDEFINED_TYPE: {'info': 'dn: attribute type undefined', 'desc': > 'Undefined attribute type'} It means exactly w

Re: Problem on add

2008-06-09 Thread Michele Petrazzo - Unipex srl
Bjørn Ove Grøtan wrote: > You misunderstood somehow. The DN is not a part of the ldif when > using the API. Hi, I forgot to say that it's the also the first time that I try to use ldap ;) Now it's working! > See below sample. I also suggest using the modlist-module for > automating the list-gene