SWAT2 as SAMBA server service (patches)--- AW: SWAT2 some steps to get it working

Matthias Jahn jahn.matthias at freenet.de
Tue Jan 1 15:11:01 MST 2013


Hello,

i have got swat2 finaly working as SAMBA wsgi server service.
I would recommend using it only in test-envirorments atm. There are some serious security problems with swat2  (clear text domain - passwords in session cache directory for example).

Happy new year, btw.

 
Matthias Jahn 

 
-----Ursprüngliche Nachricht-----
An:(samba-technical at lists.samba.org) <samba-technical at lists.samba.org>; 
Von:Matthias Jahn <jahn.matthias at freenet.de>
Gesendet:So 30.12.2012 23:08
Betreff:SWAT2 some steps to get it working
Anlage:0001-pylons-url_for-deprecated.-change-url_for-to-url.patch
Hello,

recently i did some tests with SWAT2 and SAMBA (git master).
To get it running with ubuntu 12.4 i did:

1.
apt-get install python-pylons python-yaml python-repoze.who-plugins python-repoze.who python-paste python-pam python-authkit libjs-mootools 
(the deeps from Jelmer Vernooij's debian package)

2. apply the attached patch

3. in a shell:  export PYTHONPATH=[PATH to SAMBA4]/lib/python2.7/  
for me "export PYTHONPATH=/usr/local/samba/lib/python2.7/site-packages"


4. in your swat2 git checkout:
paster serve development.ini

5. now you could connect to swat2: http://127.0.0.1:5000

I was not able yet to start swat2 from samba (server services = +web)


Regards,

Matthias Jahn

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-pylons-url_for-deprecated.-change-url_for-to-url.patch
Type: text/x-diff
Size: 2622 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20130101/54de35ef/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-add-swat-prefix.patch
Type: text/x-diff
Size: 3997 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20130101/54de35ef/attachment-0001.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0003-fix-template-files.-image-src-urls-now-follow-projec.patch
Type: text/x-diff
Size: 14528 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20130101/54de35ef/attachment-0002.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0004-add-some-infos-to-readme-file.patch
Type: text/x-diff
Size: 1463 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20130101/54de35ef/attachment-0003.patch>


More information about the samba-technical mailing list