|
From: Art V. <ar...@rt...> - 2001-10-18 13:57:17
|
> > >FYI: With web2ldap I already try to handle differences of >python-ldap built against different versions of the OpenLDAP libs. >This works fairly well with the patches exposing the "version" >attribute. I take the presence of the "version" attribute as >indicator that the OpenLDAP 2 libs are used. > What patches are you referring to ? > >However if the python-ldap was built against OpenLDAP 2 libs with >patches which does not expose the "version" attribute it is assumed >that the OpenLDAP 1 libs are in place and setting the LDAP >connection options via attribute "options" obviously fails. > >For those of you interested in the gory details check out module >ldapsession.py shipped with web2ldap. > > I looked at ldapsession and grepped everything in site to see where openldap version is set. However, I am still getting the same error messages. I am using web2ldap-20011015 and the most recent python-ldap CVS build. -- The information contained in this message is privileged and confi- dential. If you have received this message in error, please notify the sender at the address or the telephone number set forth below. Arthur E. Vossberg III 1100 Buckingham Way Yardley, PA 19067 Telephone: +1 215 295 8207 For secure transmissions over the Internet, please use the sender's gpg public key: -----BEGIN PGP PUBLIC KEY BLOCK----- Version: GnuPG v1.0.6 (SunOS) Comment: Issued by ar...@rt... mQGiBDurtG8RBACLL+gvAe9pkG4a45rxCAbPW+Zn+Oy0wdWy/6dQFZ91bbQsf0KM XFm0EN/9IEqEl2H7xafjUtw4MDNVeYrKM6ikujq9zRIEP3JLCUpxX7DAQ7uK0Yq4 2+WhciR2XxQsMnUnZfd5WcNuC3MmgP6BM1h7mUjhImrxzP+jgYn3Phu+wwCgl5da e8+JWgAJwM1Pkgi387U7s8sD/2eLgzaTLpCfJ9yFDLT6ItbtYz28LszfNCkSJRYR pgaXaKnravHvts66PlB3Y96UAh8HMTeLHtytWS0m6UCMIDXAS9QR3JaEk2ig9Oxx uAXgnSypCGYb5gk29AuDNNOzZfvEeGN2aUPT/TbUom7BkuraxF5WGwX3DuaSlNEE hpAuA/4+sndzENT1uJ50A1kL2/L6Tf2u7dGgSQyKiEEeegCUWEgNS3bdmWoKzfCi Sg2ZHFtm0k1xZTCG2lLeuZAzYv5elzk4/4op8dXJcV8qh2eClDwhDaYomLeNdWod u3QiSDgycx+VPB+Xg35XHRw81ceNvRiAJJFPM1EX50OoiDuQprQsQXJ0IFZvc3Ni ZXJnIChncGdVc2VyKSA8YXJ0QHJ0di5BV09MYXJ0LmNvbT6IXQQTEQIAHQUCO6u0 bwUJBaOagAULBwoDBAMVAwIDFgIBAheAAAoJELq8qjjqxHt4xEEAn3hp9PXriwv5 mAiDXgi95sq4spg/AJ46P7IMM0NkXs4yV7+47l2UFoeysrkBDQQ7q7UzEAQAuIJc v9Zjl1qB7+lfZoaqk7FpCRO9MddH2BRkvRvCgfZUDwx8cCYtPE6HcElB06rHGVcn y8bPbNvrZAHB058/xX46PNTH3XGkUWpwyC6y1XGbGGaNS6QaGWRGJGqFCagMg8Qf wu6qeyYrc5pldiS0wQOnDz+Ck9gme/UzlJh1yb8AAwcD/jos272U+F5WGvwZ15jo ic/6wF3LAZBzGEw6oyacY/qR0sesGO9PPDBvvD+93n4OB9FKjwFTeaE8IifO1nXe TTDPqDy+eGKKCIBROtAU6SqBCzUvwfKWTs2De0z7Orru1fdruZnDW3VhKFeCD+f4 iXWSp1zGa0ZoRkjgobXNE4VziEwEGBECAAwFAjurtTMFCQWjmoAACgkQuryqOOrE e3ilmgCcDqtqLyPmb0OOWaWP5O6FRxiZVJYAn2xHATJorP9M+TLxtrOaZV0v8NWG =HpkW -----END PGP PUBLIC KEY BLOCK----- |
|
From: Michael <mi...@st...> - 2001-10-18 18:23:12
|
Art Vossberg wrote: > > >FYI: With web2ldap I already try to handle differences of > >python-ldap built against different versions of the OpenLDAP libs. > >This works fairly well with the patches exposing the "version" > >attribute. I take the presence of the "version" attribute as > >indicator that the OpenLDAP 2 libs are used. > > > What patches are you referring to ? You can find them in the mailing list archives. Konstantin announced to check in his patches soon but did not find the time yet, I guess. The OpenLDAP 2 libs adaption in web2ldap is exactly something I've implemented for him because he definitely needs LDAPv3 binds (instead of LDAPv2). > >However if the python-ldap was built against OpenLDAP 2 libs with > >patches which does not expose the "version" attribute it is assumed > >that the OpenLDAP 1 libs are in place and setting the LDAP > >connection options via attribute "options" obviously fails. > > > I looked at ldapsession and grepped everything in site to see where > openldap version is set. > However, I am still getting the same error messages. As I wrote above setting the "options" attribute fails. Check out LDAPSession.__setattr__(). Sorry, just removing code in web2ldap's modules isn't the solution. The solution is to inform the maintainer of your python-ldap RPM or patched source tree that attribute "version" and probably some others are not exposed properly. Ciao, Michael. |
|
From: Art V. <ar...@rt...> - 2001-10-19 15:19:36
|
Michael Str=F6der wrote:
>
>As I wrote above setting the "options" attribute fails. Check out
>LDAPSession.__setattr__().
>
I believe this is the section of ldapsession.py to which you refer.
def set_option(self,name,value):
"""Set LDAPObject option or attribute"""
if self.openldap2 or name=3D=3D'deref':
setattr(self.l,name,value)
Based upon the error log, this is definitely the source of (or at least=20
one of the sources of) my problems.
Where is the "openldap2" referred to above.
Apropos of the above I note that web2lapp/cnf.py has the following line
from web2ldapcnf import ldap_def
I have no such definition in webldapcnf. Do I need to add one and, if=20
so, what is the appropriate ref:
openldap2, deref, etc.
>
>
>Sorry, just removing code in web2ldap's modules isn't the solution.
>The solution is to inform the maintainer of your python-ldap RPM or
>patched source tree that attribute "version" and probably some
>others are not exposed properly.
>
I am that maintainer you speak of.
>
>Ciao, Michael.
>
--=20
The information contained in this message is privileged and confi-
dential. If you have received this message in error, please notify=20
the sender at the address or the telephone number set forth below.
Arthur E. Vossberg III
1100 Buckingham Way
Yardley, PA 19067
Telephone: +1 215 295 8207
For secure transmissions over the Internet,=20
please use the sender's gpg public key:
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v1.0.6 (SunOS)
Comment: Issued by ar...@rt...
mQGiBDurtG8RBACLL+gvAe9pkG4a45rxCAbPW+Zn+Oy0wdWy/6dQFZ91bbQsf0KM
XFm0EN/9IEqEl2H7xafjUtw4MDNVeYrKM6ikujq9zRIEP3JLCUpxX7DAQ7uK0Yq4
2+WhciR2XxQsMnUnZfd5WcNuC3MmgP6BM1h7mUjhImrxzP+jgYn3Phu+wwCgl5da
e8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