Samba with SQL backend

After long period I have finished another version of eduit project. It uses SQL database as user storage because I believe that LDAP is pain in .. Server uses libnssmysql for user SAM, but samba has its own user backend, FUUU!

So only way (if you don’t want use LDAP) is to use the build in tools for user management - smbpasswd and pdbedit. This tools are run from hooks of eduit-userman. It is backend part of administration. The frontend is angular-eduit. The whole is SPA (Single Page Application), everything runs smoothly and fast. I could be satisfied but as a next stage I would like to dockerify all.

For dockerisation of samba server could be handy if samba could get the users directly from SQL database instead of replication existing database into saba through the tools. I have found pdbsql that is cut-away part of samba. From mailing list I have got this info from Herwin Weststrate:

.. The code has been updated for Samba releases in the 3.x-branch. .. .. Samba 4 is not supported, that has been a complete rewrite of the core and I couldn’t really find where it stored the users in the four minutes I tried looking at them. I know S4 has a Python-interpreter embedded into it, so I’m hoping that instead of compiling a plugin it would be possible to just load a python script of a few lines that fetches users from a database. ..

His latest code is HERE. I thing I would rather use the user replication through the samba tools scenario. Or has anybody gone further then me on this topic? Comments welcome on FB or mail.

samba,sql
Netlify CMS ~ May 18 cms,github

I have discovered Netlify CMS, great CMS application for statically generated webs. It’s build with react and redux (pitty, I prefer MobX, but :), is modularized, already has build in support for github-pages based web and most important is fact that it can be compiled and the resulting files can put next to your pages and be served as another page of your web.

Tus.IO resumable file uploads with angular ~ Jan 11 node,angular

Last week I had a special task. I had to implement file uploading. Well, you might say, what is so special about that? So, I has to be able to upload huge files (GBs) in reliable and background manner. I use angular.js for the client side so I searched for a solution that has no dependency (like JQuery).

Migration of postgres 8.4 to 9.1 ~ Nov 04 postgresstips

Yesterday I have upgraded postgress server packages on my server. It has not started anymore so I have begun searching why. The log told me that I use data created for old version of postgress. So the migration journey begun.