Re: Re: [SOGo] Wsgi exception when trying to connect with Outlook 2007
i had the same problem and i am working for weeks to get native outlook connection to work on a dedicated server. first of all i am no python developer so the code is very crapy and all in all it is not a good solution. i changed the function _get_cookies in /usr/lib/python2.7/dist-packages/openchange/web/auth/NTLMAuthHandler.py to: def _get_cookies(env): cookies = {} if HTTP_COOKIE in env: cookie_str = env[HTTP_COOKIE] pos = cookie_str.find(;) cookie_str = cookie_str.replace('\','') cookie_str = cookie_str.replace(';','') if pos != -1: print got ntlm + cookie_str for pair in cookie_str.split( ): (key, value) = pair.strip().split(=) print in ntlm case: + key + : + value cookies[key] = value else: print no ntlm for pair in cookie_str.split( ): (key, value) = pair.strip().split(=) print no ntlm case: + key + : + value cookies[key] = value #print output end return cookies you can remove print lines. the problem is...sometimes there is a oc-ntlm-auth cookie name in the string and sometimes there isn't. i got rid off the error msg but outlook native connection doesn't work properly. every..lets say.. 30 secs...outlooks looses the connection to sogo/rpcproxy. -- users@sogo.nu https://inverse.ca/sogo/lists
Re: [SOGo] Wsgi exception when trying to connect with Outlook 2007
[Sun Dec 02 15:00:32 2012] [error] [client 192.168.40.167] File /usr/lib64/python2.6/site-packages/openchange/web/auth/NTLMAuthHandler.py, line 641, in _get_cookies [Sun Dec 02 15:00:32 2012] [error] [client 192.168.40.167] (key, value) = pair.strip().split(=) [Sun Dec 02 15:00:32 2012] [error] [client 192.168.40.167] ValueError: too many values to unpack A'm I correctly suspecting that the message - 'ValueError: too many values to unpack' - a stack overflow, caused by the script rpcproxy.wsgi, represents? -- users@sogo.nu https://inverse.ca/sogo/lists
Re: [SOGo] Wsgi exception when trying to connect with Outlook 2007
werdi4711 at gmail.com werdi4711@... writes: [Sun Dec 02 15:00:32 2012] [error] [client 192.168.40.167] File /usr/lib64/python2.6/site-packages/openchange/web/auth/NTLMAuthHandler.py, line 641, in _get_cookies [Sun Dec 02 15:00:32 2012] [error] [client 192.168.40.167] (key, value) = pair.strip().split(=) [Sun Dec 02 15:00:32 2012] [error] [client 192.168.40.167] ValueError: too many values to unpack A'm I correctly suspecting that the message - 'ValueError: too many values to unpack' - a stack overflow, caused by the script rpcproxy.wsgi, represents? This rather goes down to the file /usr/lib64/python2.6/site- packages/openchange/web/auth/NTLMAuthHandler.py @staticmethod _get_cookies(env) down to the line 641 (key, value) = pair.strip().split(=) Is this the place where the error ValueError: too many values to unpack is being thrown from and why? Any hint highly appreciated! Dirk -- users@sogo.nu https://inverse.ca/sogo/lists