Skip to content

Commit 92e2a97

Browse files
authored
Merge pull request #85 from linuxmuster/debian13-new
Implement Fixes for Debian 13
2 parents 5142c4a + 3b17502 commit 92e2a97

12 files changed

Lines changed: 85 additions & 22 deletions

File tree

.github/workflows/build-and-publish-documentation.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ on:
1313

1414
jobs:
1515
deploy:
16-
runs-on: ubuntu-20.04
16+
runs-on: ubuntu-24.04
1717
steps:
1818
- uses: actions/checkout@v2
1919
with:

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ Linuxmuster.net official | ❌ NO*
3232
:---: | :---:
3333
[Community support](https://ask.linuxmuster.net) | ✅ YES**
3434
Actively developed | ✅ YES
35-
Maintainer organisation | Netzint GmbH
36-
Primary maintainer | dorian@itsblue.de / andreas.till@netzint.de
35+
Maintainer organisation | Linuxmuster.net
36+
Primary maintainer | dorian@itsblue.de
3737

3838
\* Even though this is not an official package, pull requests and issues are being looked at.
3939
** The linuxmuster community consits of people who are nice and happy to help. They are not directly involved in the development though, and might not be able to help in any case.

debian/changelog

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
linuxmuster-linuxclient7 (1.0.12) lmn73; urgency=medium
2+
3+
* Implement fixes for Debian 13 (#85)
4+
* Fix issues for new roles partens and staff (#84)
5+
* Pass optionally specified domain to realm discover (#78)
6+
7+
-- Dorian Zedler <dorian@itsblue.de> Sat, 8 Nov 2025 21:51:06 +0200
8+
19
linuxmuster-linuxclient7 (1.0.11) lmn73; urgency=medium
210

311
* Merge pull request #76 from ks98/master, fixes mount problems with Kerberos after cifs-utils update.

debian/control

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
Source: linuxmuster-linuxclient7
22
Section: linuxmuster
33
Priority: optional
4-
Maintainer: Dorian Zedler <dorian@itsblue.de>, Andreas Till <andreas.till@netzint.de>
4+
Maintainer: Dorian Zedler <dorian@itsblue.de>
55
Build-Depends: debhelper (>= 5.0.0)
66
Standards-Version: 5.0.0
77

88
Package: linuxmuster-linuxclient7
99
Architecture: all
10-
Depends: python3, python3-ldap, cifs-utils, ldb-tools, bind9-host, ipcalc, hxtools, network-manager, krb5-user, keyutils, samba, sssd, sssd-tools, libsss-sudo, adcli, libpam-sss, sudo, realmd, cups (>= 2.3.0), coreutils
10+
Depends: python3, python3-ldap, cifs-utils, ldb-tools, bind9-host, ipcalc, hxtools, network-manager, krb5-user, keyutils, samba, sssd, sssd-tools, libsss-sudo, adcli, libpam-sss, sudo, realmd, cups (>= 2.3.0), coreutils, libcap2-bin
1111
Description: Package for Ubuntu clients to connect to the linuxmuster.net 7 active directory server.
1212
Conflicts: linuxmuster-client-adsso, linuxmuster-client-adsso7, ni-lmn-client-adsso

docs/conf.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ def setup(app):
4545

4646
html_theme = 'sphinx_rtd_theme'
4747
html_logo = '_static/logo.png'
48-
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
4948
html_static_path = ['_static']
5049
html_sidebars = {
5150
'**': [
@@ -91,4 +90,4 @@ def setup(app):
9190
'Miscellaneous'),
9291
]
9392

94-
intersphinx_mapping = {'https://docs.python.org/': None}
93+
intersphinx_mapping = {'python': ('https://docs.python.org/3', None)}

docs/python/otherHelpers.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ This module is used to setup, clean and upgrade the client.
2828

2929
Members
3030
-------
31-
.. automodule:: linuxmusterLinuxclient7.seup
31+
.. automodule:: linuxmusterLinuxclient7.setup
3232
:members:
3333

3434
Module: imageHelper
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
scriptDir=$(linuxmuster-linuxclient7 get-constant scriptDir)
1+
scriptDir=$(/usr/sbin/linuxmuster-linuxclient7 get-constant scriptDir)
22
source $scriptDir/executeHookWithEnvFix.sh onLogin
Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
#
22
# WARNING! All changes to this file will be overwritten by linuxmuster-linuxclient7 upgrades!
33
#
4-
%examusers ALL=(root) NOPASSWD: /usr/share/linuxmuster-linuxclient7/scripts/sudoTools
5-
%role-student ALL=(root) NOPASSWD: /usr/share/linuxmuster-linuxclient7/scripts/sudoTools
6-
%role-teacher ALL=(root) NOPASSWD: /usr/share/linuxmuster-linuxclient7/scripts/sudoTools
4+
%domain\ users ALL=(root) NOPASSWD: /usr/share/linuxmuster-linuxclient7/scripts/sudoTools
75
%role-schooladministrator ALL=(ALL:ALL) NOPASSWD: ALL
86
%role-globaladministrator ALL=(ALL:ALL) NOPASSWD: ALL

usr/lib/python3/dist-packages/linuxmusterLinuxclient7/keytab.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,16 +24,18 @@ def patchKeytab():
2424
newData = computer.hostname().upper() + "$"
2525
entry.principal.components[0].data = newData
2626

27-
elif len(entry.principal.components) == 2 and (entry.principal.components[0].data == "host" or entry.principal.components[0].data == "RestrictedKrbHost"):
27+
elif len(entry.principal.components) == 2 and entry.principal.components[0].data in ["host", "HOST", "RestrictedKrbHost"]:
2828
rc, networkConfig = config.network()
2929
if not rc:
3030
continue
3131

3232
newData = ""
3333
domain = networkConfig["domain"]
34-
if domain in entry.principal.components[1].data:
34+
if entry.principal.components[0].data == "RestrictedKrbHost":
3535
newData = computer.hostname().lower() + "." + domain
36-
else:
36+
elif entry.principal.components[0].data == "HOST":
37+
newData = computer.hostname().upper() + "." + domain
38+
elif entry.principal.components[0].data == "host":
3739
newData = computer.hostname().upper()
3840

3941
entry.principal.components[1].data = newData

usr/lib/python3/dist-packages/linuxmusterLinuxclient7/realm.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,14 +123,20 @@ def getJoinedDomains():
123123

124124
return True, list(filter(None, result.stdout.split("\n")))
125125

126-
def discoverDomains():
126+
def discoverDomains(domain=None):
127127
"""
128128
Searches for avialable domains on the current network
129129
130+
:param domain: The domain to discover (optional)
131+
:type domain: str
130132
:return: Tuple (success, list of available domains)
131133
:rtype: tuple
132134
"""
133-
result = subprocess.run("realm discover --name-only", stdout=subprocess.PIPE, stderr=subprocess.PIPE, universal_newlines=True, shell=True)
135+
command = ["realm", "discover", "--name-only"]
136+
if domain != None:
137+
command.append(domain)
138+
139+
result = subprocess.run(command, stdout=subprocess.PIPE, stderr=subprocess.PIPE, universal_newlines=True)
134140

135141
if result.returncode != 0:
136142
logging.error("Failed to discover available domains!")

0 commit comments

Comments
 (0)