SASL GSSAPI under Win32

Michael Ströder michael at stroeder.com
Mon Aug 17 15:14:18 CEST 2009


Torsten,

first thanks for trying to get that working.

Torsten Kurbad wrote:
>> My understanding of how it is supposed to work is that _ldap.pyd
>> calls into libsasl.dll first (this part works) but then libsasl.dll
>> has to find and load the requested auth mechanism.

Yes, that's my superficial understanding too.

> Waldemar, I now tried a differente approach: I used our "patented"
> pexports method to statically link in the following sasl auth plugins:
> 
> - ANONYMOUS
> - CRAMMD5
> - DIGESTMD5
> - LOGIN
> - PLAIN
> 
> But telling from the size of the .egg file, gcc most probably dropped
> all the additional symbols. :-(

Yes, I guess so.

> Could someone with an appropriate setup please check out
> 
> http://svn.kmrc.de/download/distribution/contrib/python_ldap-2.3.9-py2.6-win32.egg
> 
> try one or more of the above auth mechanisms and report back here?

Unfortunately it does not seem to work:

--------------------------- snip ---------------------------
>>> sasl_cb_value_dict = {
      ldap.sasl.CB_AUTHNAME    :'fred',
      ldap.sasl.CB_PASS        :'secret',
    }
>>> sasl_auth=ldap.sasl.sasl(sasl_cb_value_dict,'DIGEST-MD5')
>>> l.sasl_interactive_bind_s("", sasl_auth)

Traceback (most recent call last):
  File "<pyshell#13>", line 1, in <module>
    l.sasl_interactive_bind_s("", sasl_auth)
  File "C:\Python26\lib\site-packages\ldap\ldapobject.py", line 219, in
sasl_interactive_bind_s
    return
self._ldap_call(self._l.sasl_interactive_bind_s,who,auth,EncodeControlTuples(serverctrls),EncodeControlTuples(clientctrls),sasl_flags)
  File "C:\Python26\lib\site-packages\ldap\ldapobject.py", line 96, in _ldap_call
    result = func(*args,**kwargs)
SUCCESS: {'desc': 'Success'}
>>> l.whoami_s()
''
>>>
--------------------------- snip ---------------------------

Ciao, Michael.



More information about the python-ldap mailing list