Commit Graph

3126 Commits (c8c65f3cb5d68806cc8d833bf5fc630b3c450a4e)
 

Author SHA1 Message Date
Michele Calgaro c8c65f3cb5
Updated release notes for R14.1.2 version
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit c3960c3e00)
10 months ago
Slávek Banko c2268515a1
tdm: Allow to detect pthread_setname_np. Add linking pthread.
This relates to issue #473.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 28a2ef7c5f)
11 months ago
Michele Calgaro b151ca953f
Fix FTBFS caused by incompatible cast. This resolves issue #473.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit d5083f71db)
11 months ago
TDE Gitea 8ad38a5ec6 Merge translation files from master branch. 11 months ago
Slávek Banko 0c14d592b4
Fix compatibility with C++17.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 784e3e020d)
11 months ago
TDE Gitea d5a875e4a1 Merge translation files from master branch. 11 months ago
TDE Gitea c07cf1a40a Merge translation files from master branch. 11 months ago
Alexander Golubev 459b5925bd
kxkb: fix incorrect signal name introduced by 1fea8982f
Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
(cherry picked from commit 174b64e809)
11 months ago
TDE Gitea a442aacb75 Merge translation files from master branch. 11 months ago
Michele Calgaro 577b0ec106
twin: add tileWindowToBorder() and rename previously introduced tileHorizontally(), tileVertically(), tileGrid() DCOP calls
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit cc88c98f38)
11 months ago
Mavridis Philippe 62ce84146e
TWin: add tileHorizontally(), tileVertically(), tileGrid() DCOP calls
Signed-off-by: Mavridis Philippe <mavridisf@gmail.com>
(cherry picked from commit 7482fe2283)
11 months ago
TDE Gitea 8d168e4985 Merge translation files from master branch. 11 months ago
Michele Calgaro 5403798b97
Add GUI option to choose between standard and Ubuntu-style shutdown dialog.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 78d96bd200)
11 months ago
Michele Calgaro d789ec8da0
Fix update of fade away checkboxes in TCC session manager module
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit a7dc4c51d5)
11 months ago
Michele Calgaro d6b6bd7938
Remove unnecessary 'tde_set_project_version' from CMakeL10n.txt
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit f548d391bb)
11 months ago
Michele Calgaro 97c7b6674f
Use centralized cmake version
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 7600dc73ff)
12 months ago
Michele Calgaro b81117094f
Fix twin crash when starting with 'Switch desktop' option set. This
resolves issue #455.

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 7e7c3b4d5f)
12 months ago
Michele Calgaro ff9d1cfabf
Fix FTBFS caused by cmake lowercase renaming
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit c70d6de201)
12 months ago
Michele Calgaro b89d30dfd2
cmake files: change keywords to lower case
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 4808f8e67b)
12 months ago
Alexander Golubev e3c4e755a7
tdeioslave/sftp: make source c++11-compatible
Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
(cherry picked from commit 0e615e5c90)
12 months ago
Alexander Golubev e41e8b9e6a
tdeioslave/sftp: get rid of goto in openConnection()
Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
(cherry picked from commit 3a4538b4c3)
12 months ago
Alexander Golubev e55cf59eba
tdeioslave/sftp: use unsigned to store auth method flags/bitsets
The libssh defines those flags as unsigned. Technically ssh_auth_list()
still returns int, but its guranteed to be bitset of those flags.

Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
(cherry picked from commit 5b9585e429)
12 months ago
Alexander Golubev 11c1ec5047
tdeioslave/sftp: better erros for unsupported auth methods
Also:
- do not translate auth methods names as the names appear in config
  files verbatim
- libssh actually doesn't supports hostbased auth, so exclude it from
  bitset of supported

Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
(cherry picked from commit 1597d5f384)
12 months ago
Alexander Golubev c1a256a31f
tdeioslave/sftp: better cancelation handling in case of several publickeys
Consider publickey auth canceled only if user canceled it for each of
the prompted keys.

Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
(cherry picked from commit 4b4b72db8f)
12 months ago
Alexander Golubev ef56a87ffe
tdeioslave/sftp: save/restore seqNr for multi-factor auth
In case the server is set up for multi-factor authentication we could
be have to query several things from the user like password, a key
passphrase, their mother's maiden name etc. It doesn't make a big
difference during an initial connection, but it butchers the
reconnection process: it can retrieve the answer of the user to the
first question (e.g. their password), but it fails to retrieve the
second one (e.g. the key passphrase). So the user would be forced to
reenter the answer for the second question upon each reconnection.

The reason for this is the passwdserver's desig (see DESIGN [1]):
Each query for AuthInfo with the openPassDlg() has an secNr number
associated with it. If it's smaller than the one of the one stored for
the privious request, than the one from the cache will be returned
automagically, if it's bigger the dialog will be prompted to the user.
Each call to openPassDlg() advances s_seqNr to the last value reported
by the passwdserver. So the first call will return the cached value and
subsequent calls will actually display the dialog to the user (assuming
authentication with the cached data failed).

But in case of multi-factor auth we have to query user for several
independent values. And we want to try to retrieve each one of those
from the cache. So we have to get a bit hacky and manually manipulate
the SlaveBase::s_seqNr value.

[1]: https://mirror.git.trinitydesktop.org/gitea/TDE/tdelibs/src/branch/master/tdeio/kpasswdserver/DESIGN

Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
(cherry picked from commit 95b18e6338)
12 months ago
Alexander Golubev fae96a29fb
tdeioslave/sftp: imbue error messages with errors from libssh
Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
(cherry picked from commit 4d88b3eddd)
12 months ago
Alexander Golubev a9d6ae553a
tdeioslave/sftp: cache passwords in case they were passed to setHost()
Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
(cherry picked from commit ee73349644)
12 months ago
Alexander Golubev 7ae4741709
tdeioslave/sftp: prevent infinite looping in kb-interactive auth
Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
(cherry picked from commit f8f0b8815c)
12 months ago
Alexander Golubev 16ad368674
tdeioslave/sftp: purge password in the destructor
This could be useful in case the destructor will be called before
openConnection()

Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
(cherry picked from commit 21ce69f338)
12 months ago
Alexander Golubev dbd135cce4
tdeioslave/sftp: enable changing user during kb-interactive auth
Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
(cherry picked from commit 009382772d)
12 months ago
Alexander Golubev 15815002b2
tdeioslave/sftp: pass correct username to openPassDlg()
We should always pass to the openPassDlg() exactly the same username
otherwise it may result in incorrect caching of passwords especially in
case if the username is changed by the user.

Also don't allow username change in case it was passed to setHost()
(i.e. it was specified in the URL like e.g. sftp://username@host/).
In such a case after changing it'd be impossible to properly cache it.

Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
(cherry picked from commit 581d266ae6)
12 months ago
Alexander Golubev c5ae0c2aa7
tdeioslave/sftp: even bigger authentication overhaul
- Move authentication methods into separate functions so it would be
  easier to correctly handle error after those and select which should
  be called in which order.
- A lot of minor improvements along the way

Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
(cherry picked from commit 2756ae762f)
12 months ago
Alexander Golubev dbde9a19a0
tdeioslave/sftp: use realmValue to distinguish different prompts
This will help kpasswdserver not to confuse different user's answers to
different questions.

Also avoid passing/returning TDE::AuthInfo for kb-interactive auth as it
isn't really necessary when we don't manually caching passwords anymore.

Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
(cherry picked from commit d316ff14bd)
12 months ago
Alexander Golubev c950ace00f
tdeioslave/sftp: avoid explicit password caching
All password caching we need actually already autmagically
done by openPassDlg().

Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
(cherry picked from commit a19610bb73)
12 months ago
Alexander Golubev c01b334583
tdeioslave/sftp: use a scope guards to close connection
There were a couple of missing closeConnection() calls after connection
errors. The probably haven't caused any major bugs, but use scope guards
to be on the safe side.

Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
(cherry picked from commit 9c0a0ce976)
12 months ago
Alexander Golubev e389595606
tdeioslave/sftp: split off connection init to a dedicated function
Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
(cherry picked from commit 75349be43e)
12 months ago
Alexander Golubev 9a9f857054
tdeioslave/sftp: use free to destroy mCallbacks
As it allocated via malloc() rather than new.

Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
(cherry picked from commit 688544193f)
12 months ago
Alexander Golubev 39ee836ae4
tdeioslave/sftp: overhaul publickey auth
Several enhancements to public key authentication and some other stuff:
- Fix passphrase entry for encrypted keys (was either hanging up or
  segfaulting)
- Use scope guard idiom for cleanup calls for more reliable cleanup in
  case of errors
- Add normal prompt for public key's passphrase entry dialog
- Correctly differentiate passphrase to password when cached (yes they
  are getting cached regardless of keepPassword, at least for some
  duration of time)
- Centrilize AuthInfo initialization and some rejig of it
  kbd-interactive authentification

Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
(cherry picked from commit b91e220389)
12 months ago
Alexander Golubev 2d6f4a3312
tdeioslave/sftp: fix keyboard-interactive authentication
This is a partial fix to the sftp ioslave. Subsequent commits will fix
other issues.

Closes: https://mirror.git.trinitydesktop.org/gitea/TDE/tdebase/issues/443
Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
(cherry picked from commit a1fa8a79bb)
12 months ago
Alexander Golubev bbd9f2102e
kcontrol/smserver: rephrase fadeaway description
Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
(cherry picked from commit a646f58853)
12 months ago
Alexander Golubev 40879a72e3
kxkb: utilize a translations provseided by xkeyboard-config
xkeyboard-config package comes with a message catalogue of its own to
translate locale, keyboard model and xkb option names. It would be
easier and more robust to utilize it instead of redoing all
translation in-house.

Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
(cherry picked from commit 18a8b8d435)
12 months ago
Alexander Golubev e56c1ff3b8
kxkb: add missing connect
Overvise apply button on the dialog won't be enablen when the option is
changed

Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
(cherry picked from commit 1fea8982fd)
12 months ago
Alexander Golubev bfb0fce6a0
cmake: use pkg_get_variable() to query pkg-config variables
Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
(cherry picked from commit 0713c2b1c8)
12 months ago
Alexander Golubev 6b4ac1995d
kcontrol/input: fix incorrect statements whatsthis + some rewording
Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
(cherry picked from commit bf3ffaced3)
12 months ago
TDE Gitea 56037f88f2 Merge translation files from master branch. 12 months ago
TDE Gitea 26d58ece1f Merge translation files from master branch. 12 months ago
Denis Kozadaev 8db3aae91c
kcontrol-info-memory: use 64 bits variable to store memory size
Signed-off-by: Denis Kozadaev <denis@dilos.org>
(cherry picked from commit 220dec20f9)
1 year ago
Michele Calgaro 10639b722f
Simplify code since cmake minimum version is now 3.5
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit dc9ec2711b)
1 year ago
Michele Calgaro b2fcd6f201
Replace Q_WS_* defines with TQ_WS_* equivalents
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 2d7d2122cf)
1 year ago
TDE Gitea 2878e48349 Reset submodule main/core/tdebase/admin to latest HEAD 1 year ago