|
From: Chaos E. <cha...@gm...> - 2007-03-10 04:33:29
|
hello there,
Since your script is run by cron every one minute, i wonder that do
you have any lock mechanisms to prevent more than one instance of your
script to start? some buggy or mis-configured ldapserver can not work
properly when large amounts of write operations come simultaneously.
What I suggest is carefully re-design your script. use some lock
mechanisms and some queue technologies.
On 3/10/07, Ervin Heged=FCs <ai...@gm...> wrote:
> Hello,
>
> > > File "/usr/local/checkftpdir/Ldapfunctions.py", line 61, in addEntr=
y
> > > self.l.add_s(_dn, ldif)
> [...]
> > > File "/usr/lib/python2.4/site-packages/ldap/ldapobject.py", line 94=
,
> > > in _ldap_call result =3D func(*args,**kwargs)
> > > ldap.INVALID_DN_SYNTAX: {'info': 'invalid DN', 'desc': 'Invalid DN sy=
ntax'}
> >
> > This is an error the server sends back. Probably you're generating a DN
> > with invalid syntax. I'd recommend to set trace_level=3D2 with
> > ldap.initialize() to see what the python-ldap API receives from your sc=
ript.
>
> I'm not sure about it - as I wrote when I run script from system shell (I=
mean:
> interactively), then script doesn't drop any exception. I try to print
> out the DN
> value, what I give to the function as first argument, and it looks
> like a normally
> DN, eg.: cn=3Dairtest,ou=3Dftp,o=3Dcompany,dc=3Ddomain,dc=3Dcom.
>
> There aren't any spaces, or other chars, what I miss then.
>
> By the way: I try to set up those trace_level, may be it will be more
> informative...
>
> thanks:
>
> a.
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share y=
our
> opinions on IT & business topics through brief surveys-and earn cash
> http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=3D=
DEVDEV
> _______________________________________________
> Python-LDAP-dev mailing list
> Pyt...@li...
> https://lists.sourceforge.net/lists/listinfo/python-ldap-dev
>
--
Best Regards
Chaos Eternal
|