I can confirm that this patch works in our setup, against a W2K3 AD
server. We were also seeing a len of 4 using Debian Squeeze, python-ldap
2.3.11-1.
The error that occurs in the log is:
[2010-10-23 21:12:19,325] ERROR:ldap:[01]:
[2010-10-23 21:12:19,326] ERROR:ldap:[02]: Environment Information :
[2010-10-23 21:12:19,326] ERROR:ldap:[03]: System :
Linux-2.6.32-5-686-i686-with-debian-squeeze-sid
[2010-10-23 21:12:19,326] ERROR:ldap:[04]: OS Name : posix
[2010-10-23 21:12:19,327] ERROR:ldap:[05]: Distributor ID: Debian
[2010-10-23 21:12:19,327] ERROR:ldap:[06]: Description: Debian GNU/Linux
testing (squeeze)
[2010-10-23 21:12:19,327] ERROR:ldap:[07]: Release: testing
[2010-10-23 21:12:19,327] ERROR:ldap:[08]: Codename: squeeze
[2010-10-23 21:12:19,328] ERROR:ldap:[09]: Operating System Release :
2.6.32-5-686
[2010-10-23 21:12:19,328] ERROR:ldap:[10]: Operating System Version : #1 SMP
Thu Oct 14 17:15:16 UTC 2010
[2010-10-23 21:12:19,328] ERROR:ldap:[11]: Operating System Architecture : 32bit
[2010-10-23 21:12:19,328] ERROR:ldap:[12]: Operating System Locale : en_US.UTF8
[2010-10-23 21:12:19,329] ERROR:ldap:[13]: Python Version : 2.6.6
[2010-10-23 21:12:19,329] ERROR:ldap:[14]: OpenERP-Server Version : 5.0.12
[2010-10-23 21:12:19,329] ERROR:ldap:[15]: Last revision No. & ID :
[2010-10-23 21:12:19,329] ERROR:ldap:[16]: {'info': '00000000: LdapErr:
DSID-0C090627, comment: In order to perform this operation a successful bind
must be completed on the connection., data 0, vece', 'desc': 'Operations error'}
--
users_ldap: Active Directory compatibility
https://bugs.launchpad.net/bugs/582857
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
Status in OpenObject Addons Modules: Confirmed
Bug description:
Needed to make a couple of changes to make users_ldap from stable 5.0.10 work
with AD on Windows Server 2008:
- Turn off referral chasing with: ldap.set_option(ldap.OPT_REFERRALS, 0)
- Remove len() check on result_data. I'm not sure why this was set to 1 or if
changing it breaks anything, but the return length using WS 2008/python-ldap
2.3.8 was 4.
Patch attached. Likely could be made a little more robust... possibly validate
server version, etc.
_______________________________________________
Mailing list: https://launchpad.net/~c2c-oerpscenario
Post to : [email protected]
Unsubscribe : https://launchpad.net/~c2c-oerpscenario
More help : https://help.launchpad.net/ListHelp