[patch] Demo/simplebrowse.py fixes/enhancemnts

David Leonard david.leonard at itee.uq.edu.au
Wed Dec 19 16:05:25 CET 2001


On Thu, 13 Dec 2001, Michael Ströder typed thusly:

> >   I like simplebrowse.py - it's kind of utility I was always missing
> > in my communication with LDAP ;-) . I'm missing "cd .." though, and it
> > keeps saying "invalid command" for almost any entered one. Fix is
> > attached.
>
> I've commited it.

But, the structure of DNs is not that simple. What you're saying is that
you want to find the 'parent' object of an object. But the simple removing
of some component of the DN isn't guaranteed to work.

e.g.  A=a,B=b,C=c may not have as parent A=a,B=b but instead B=b,C=c.
I found this out the hard way when doing some testing ..

Now, I don't fully understand X.500 so maybe someone else knows a way of
properly defining and implementing "cd .."?

d
-- 
David Leonard                           David.Leonard at itee.uq.edu.au
Dept of Inf. Tech. and Elec. Engg   _   Ph:+61 404 844 850
The University of Queensland       |+|  http://www.itee.uq.edu.au/~leonard/
QLD 4072  AUSTRALIA               ~` '~ B73CD65FBEF4C089B79A8EBADF1A932F13EA0FC8





More information about the python-ldap mailing list