https://bugs.kde.org/show_bug.cgi?id=334875

Harald Sitter <sit...@kde.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
      Latest Commit|                            |https://invent.kde.org/netw
                   |                            |ork/kdenetwork-filesharing/
                   |                            |commit/d9692b4cd8109bbf459e
                   |                            |4a532df93b0b90fabff2
         Resolution|---                         |FIXED
   Version Fixed In|                            |20.12

--- Comment #15 from Harald Sitter <sit...@kde.org> ---
Git commit d9692b4cd8109bbf459e4a532df93b0b90fabff2 by Harald Sitter.
Committed on 21/08/2020 at 11:43.
Pushed by sitter into branch 'master'.

add smb user management support

this rejiggers the model a bit and splits out user mapping logic into a
usermanager. the usermanager loads all users and models their samba
state. to do this it uses samba's pbedit tool. since this is a database
editor tool actually it needs a kauth helper to carry out the lookups.
this allows modelling of whether a user is enabled in samba or not (an
actual GUI for this is not part of this commit)

in addition to looking up the state this adds a new page for the page
stack for when the current user is not enabled in samba. this is to
prevent users from setting up shares but then not being able to access
them (assuming guest access is not possible - as is the case by default
without a smb.conf enabling support for it)

this new page sports a simple password setting UI that then again turns
to the auth helper for help. the auth helper runs smbpasswd, also a
samba CLI tool, to set a password for the user

all of this is conditional on samba actually having been configured to
use a local pdb instance as authentication database. other options would
be ldap or some such and will likely never be supported because they'd
only be used in corporate/managed environments where the user at hand
wouldn't be able to manage users anyway
FIXED-IN: 20.12

M  +15   -1    samba/filepropertiesplugin/CMakeLists.txt
A  +72   -0    samba/filepropertiesplugin/authhelper.cpp     [License:
GPL(3+eV) GPL(v3.0) GPL(v2.0)]
A  +21   -0    samba/filepropertiesplugin/authhelper.h     [License: GPL(3+eV)
GPL(v3.0) GPL(v2.0)]
M  +8    -47   samba/filepropertiesplugin/model.cpp
M  +4    -3    samba/filepropertiesplugin/model.h
A  +20   -0    samba/filepropertiesplugin/org.kde.filesharing.samba.actions
A  +131  -0    samba/filepropertiesplugin/qml/ChangePassword.qml     [License:
LGPL(3+eV) LGPL(v3.0) LGPL(v2.1)]
A  +84   -0    samba/filepropertiesplugin/qml/UserPage.qml     [License:
GPL(3+eV) GPL(v3.0) GPL(v2.0)]
M  +4    -4    samba/filepropertiesplugin/qml/main.qml
M  +2    -0    samba/filepropertiesplugin/qml/qml.qrc
M  +31   -2    samba/filepropertiesplugin/sambausershareplugin.cpp
M  +13   -3    samba/filepropertiesplugin/sambausershareplugin.h
A  +184  -0    samba/filepropertiesplugin/usermanager.cpp     [License:
GPL(3+eV) GPL(v3.0) GPL(v2.0)]
A  +58   -0    samba/filepropertiesplugin/usermanager.h     [License: GPL(3+eV)
GPL(v3.0) GPL(v2.0)]

https://invent.kde.org/network/kdenetwork-filesharing/commit/d9692b4cd8109bbf459e4a532df93b0b90fabff2

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to