[prev in list] [next in list] [prev in thread] [next in thread]
List: python-ldap-dev
Subject: Re: python-ldap, compare_s() return only true in all cases
From: Fernando Ribeiro <fernando () gentoo-br ! org>
Date: 2006-04-30 11:55:41
Message-ID: 4454A5BD.3080500 () gentoo-br ! org
[Download RAW message or body]
Hi Michael,
Michael Ströder wrote:
> Fernando Ribeiro wrote:
>
>> I'm studing the python, and begin with python-ldap. But i have a
>> little problem with ldap.compare_s(dn, attr, value) function.
>>
>
> Please subscribe and post to python-ldap-dev list (Cc:-ed).
>
> https://lists.sourceforge.net/lists/listinfo/python-ldap-dev
>
>
subscribed, thanks.
>> While using ldap_slave.compare_s("dc=domain,dc=com,dc=br",
>> "objectClass", "top");
>> It return true.
>> But look in ldap_slave don't have the 'objectClass: top'.
>>
>
> Every structural object class is implicitly derived from 'top'. So I'd
> expect this to evaluate to True each time.
>
It return true to all objectClasses.
With others atribute (except objectClass) it work fine.
I have tested with C too, and it return the same result.
Its "ignoring" the objectClass to compare.
> What exactly are you trying to achieve?
>
> Could you please verify with another attribute?
>
> Ciao, Michael.
>
>
Exists other way to compare entries?
Thank you a million by attention.
Best Regards,
Fernando Ribeiro
--
--------------------------------------------------
- Fernando Ribeiro - GPG-KEY: 0x8D7255F4
- Linux Counter: #273768 - ICQ: 175630330
- RHCE - Red Hat Certified Engineer
- LPIC-2 - Advanced Linux
- CCSA - CheckPoint Cert. Security Admin.
- phone: +55 61 9115 4852
- http://www.musb.org
--------------------------------------------------
Firthunands (firthu quer dizer "paz", nands
significa audaz. Dessa maneira, a tradução seria:
"Aquele que se atreve a tudo para conservar a Paz"
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Python-LDAP-dev mailing list
Python-LDAP-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/python-ldap-dev
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic