![]() | Register | FAQ | Members | Social Groups | User Map | Calendar | Search | Today's Posts | Mark Forums Read |
| | | LinkBack | Thread Tools | Search Thread | Language |
| Sponsored Links |
| | #1 |
![]() Join Date: Jan 2006
Posts: 3,444
Thanks: 49
Thanked 150 Times in 123 Posts
Rep Power: 39 | I'm not sure why, but would rather update the program than downgrade python module. Any pointers please. :? this works: python-ldap.i386 0:2.0.1-2 Code: python
Python 2.3.4 (#1, Oct 11 2006, 06:18:43)
[GCC 3.4.6 20060404 (Red Hat 3.4.6-3)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import ldap
>>> domain = "example.com"
>>> l=ldap.initialize("ldap://server."+domain+":389")
>>> l.simple_bind_s("domain\\username","password")
>>>
Python-ldap version: 2.0.4-1ubuntu4 Code: Python 2.4.3 (#2, Oct 6 2006, 07:49:22)
[GCC 4.0.3 (Ubuntu 4.0.3-1ubuntu5)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import ldap
>>> domain = "example.com"
>>> l=ldap.initialize("ldap://server."+domain+":389")
Traceback (most recent call last):
File "<stdin>", line 1, in ?
AttributeError: 'module' object has no attribute 'initialize'
|
| |
| | #2 |
![]() Join Date: Jun 2005 Location: Fylde, Lancs, UK.
Posts: 9,931
Thanks: 42
Thanked 230 Times in 209 Posts
Blog Entries: 1 Rep Power: 67 | The ldap.initalise function doesn't exist anymore in the python-ldap module in ubuntu. The function has been renamed to ldap.open(). |
| |
| | #3 |
![]() Join Date: Jan 2006
Posts: 3,444
Thanks: 49
Thanked 150 Times in 123 Posts
Rep Power: 39 | thanks, but I'm gettign the other errors with ldap.open(). I've got something half working, but how much do these things change in python? is there any way of achieving backwards comatibility other than keeping another install of older versons? |
| |
| | #5 | ||
![]() Join Date: Jan 2006
Posts: 3,444
Thanks: 49
Thanked 150 Times in 123 Posts
Rep Power: 39 | now I'm really confused. "current" documentation is 2004 for v2.03 and states: Quote:
Quote:
| ||
| |
| | #6 |
![]() Join Date: Jan 2006
Posts: 3,444
Thanks: 49
Thanked 150 Times in 123 Posts
Rep Power: 39 | I just tried the original script on Zenwalk with python 2.4 and python-ldap 2.2.1 and it worked fine. I think this must be a problem with (my) ubuntu 6,06amd64. or the 2.04 version of python-ldap. |
| |
| | #7 |
![]() Join Date: Jun 2005 Location: Fylde, Lancs, UK.
Posts: 9,931
Thanks: 42
Thanked 230 Times in 209 Posts
Blog Entries: 1 Rep Power: 67 | The LDAP Python homepage is here. http://python-ldap.sourceforge.net/ current docs are here. http://python-ldap.sourceforge.net/docs.shtml |
| |
| |
| | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Module raid 456 error | TechMonkey | *nix | 1 | 26-11-2007 05:32 PM |
| IE 7.0 ROK Slideshow Module in Joomla. CSS / IE Problem | bensewell | Web Development | 0 | 06-09-2007 01:47 PM |
| PDF Creater version 0.9.3 default printer problem | pburchell | Windows | 9 | 22-02-2007 06:49 PM |
| Python script ,escaped quotes - zimbra account autocreation | CyberNerd | Scripts | 4 | 27-06-2006 07:52 PM |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search Thread |
|
|





