Liebes Forum,
nach dem Abbrand unseres Schulgebäudes und einem schnellen Umzug habe ich die Gelegenheit genutzt und wende mich vom Windows-Server-und-Client-System ab.
Ich habe einen (alten) Dell-Server bekommen und dort Proxmox, OPNsense (jetzt 25.1.7_4) und natürlich auch LinuxMuster 7.2 installiert. Proxmox ist auch bereits im internen Netz.
Das Skript lmn-appliance mit lmn-prepare ist zur Vorbereitung des Setups durchgelaufen. Ergebnis „OK“.
Nun möchte ich den Server fertig einrichten. Dies geht ja mittels Konsole oder GUI, beide Wege führen leider zu Fehlern.
Das Konsolenbild zeigt die Ausgaben des Python-Installskripts. Hier kann ich nicht sagen, was fehlt.
Ich habe das Skript aufgerufen mit:
linuxmuster-setup --location="Hochdahl" --schoolname="Gymnasium-Hochdahl" --country=de --state=NRW
Im Dialog habe ich als Domain paed.gymnasium-hochdahl.de angegeben. Dann sollte nach Anleitung „paed“ als AD-Name genommen werden.
Die Ausgabe des Setups:
#### * dhcpd.custom.conf ....................................... Success! ####
#### * server_cert_ext.cnf ..................................... Success! ####
#### * dhcpd.devices.conf ...................................... Success! ####
#### * subnets.csv ............................................. Success! ####
#### * dhcpd.events.conf ....................................... Success! ####
#### * rsyncd.conf ............................................. Success! ####
#### * dhcpd.conf .............................................. Success! ####
#### * nsswitch.conf ........................................... Success! ####
#### * webui-sudoers ........................................... Success! ####
#### Server prepare update ..................................... Success! ####
#### Adjusting server time .......................... 2025-06-07 15:37:39 ####
------------------------------------------------------------------------------
#### fstab ####
#### Modifying mount options for / ............................. Success! ####
#### Remounting / .............................................. Success! ####
------------------------------------------------------------------------------
#### ssl ####
#### Reading setup data ........................................ Success! ####
#### Creating private CA key & certificate ..................... Success! ####
Traceback (most recent call last):
File "/usr/sbin/linuxmuster-setup", line 153, in <module>
importlib.import_module(module_file.replace('.py', ''))
File "/usr/lib/python3.10/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 883, in exec_module
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "/usr/lib/linuxmuster/setup.d/g_ssl.py", line 85, in <module>
createServerCert(item, days, logfile)
File "/usr/lib/linuxmuster/functions.py", line 549, in createServerCert
cnffile = environment.SSLDIR + '/server_cert_ext.cnf'
NameError: name 'environment' is not defined
root@server:/home/linuxadmin#
Der andere Versuch betrifft das Web-GUI. Hier schlägt die Anmeldung mit dem linuxadmin User fehl. (Exception, this is likely a bug) Message: LDAP credentials not found, is linuxmuster installed and configured ?
Traceback
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/linuxmusterTools/ldapconnector/connector.py", line 70, in _connect
binddn = params['binddn']
KeyError: 'binddn'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.10/dist-packages/aj/api/endpoint.py", line 77, in wrapper
result = fx(self, context, *args, **kwargs)
File "/usr/local/lib/python3.10/dist-packages/ajenti_plugin_core/views/api.py", line 141, in handle_api_auth
auth_info = auth.check_password(username, password)
File "/usr/local/lib/python3.10/dist-packages/aj/auth.py", line 192, in check_password
return self.get_provider().authenticate(username, password)
File "/usr/lib/linuxmuster-webui/plugins/lmn_auth/api.py", line 202, in authenticate
userAttrs = self.get_ldap_user(username, attributes=['dn', 'sophomorixWebuiPermissionsCalculated', 'permissions'])
File "/usr/lib/linuxmuster-webui/plugins/lmn_auth/api.py", line 58, in get_ldap_user
return self.lr.get(f'/users/{username}', attributes=attributes)
File "/usr/lib/python3/dist-packages/linuxmusterTools/ldapconnector/urls/ldaprouter.py", line 57, in get
return self.lr.get_single(func.model, ldap_filter, scope=func.scope, subdn=subdn, dn_filter=func.dn_filter, **kwargs)
File "/usr/lib/python3/dist-packages/linuxmusterTools/ldapconnector/ldap_reader.py", line 77, in get_single
results = self.lc._get(ldap_filter, scope=scope, subdn=subdn)
File "/usr/lib/python3/dist-packages/linuxmusterTools/ldapconnector/connector.py", line 108, in _get
conn, _searchdn = self._connect()
File "/usr/lib/python3/dist-packages/linuxmusterTools/ldapconnector/connector.py", line 75, in _connect
raise Exception('LDAP credentials not found, is linuxmuster installed and configured ?')
Exception: LDAP credentials not found, is linuxmuster installed and configured ?
Kann mir jemand weiterhelfen? Oder ist es gerade aufgrund irgendwelcher Umstellungen schlecht…?
(Ich habe die LTS22 von Ubuntu genommen, nicht die LTS24)
Beste Grüße
Peter
(Informatik-Lehrer)
Gymnasium Hochdahl