ich hatte hier vor langer Zeit ein Problem angefragt: viewtopic.php?t=164554
Die Lösung hat viele Jahre ausgezeichnet funktioniert. Jetzt versuche ich das Script:
https://github.com/m-narayan/smart/blob ... h-decode64
Unter Debian 12 zum laufen zu bekommen, aktuell ohne Erfolg:
Code: Alles auswählen
[root@server:~]$ python3 /usr/local/sbin/ldapsearch-decode64
File "/root/scripte/ldapsearch-decode64", line 46
print '%s: %s' % (res.group(1), base64.decodestring(res.group(2)))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
[root@server:~]$
Code: Alles auswählen
bash: /usr/local/sbin/ldapsearch-decode64: cannot execute: required file not found
Code: Alles auswählen
root@alterserver ~ # python /usr/local/bin/ldapsearch-decode64
^Croot@rigel-1 ~ #
Versionen:
Code: Alles auswählen
[root@server:~/scripte]$ python --version
bash: python: Kommando nicht gefunden.
[root@server:~/scripte]$ python3 --version
Python 3.11.2
[root@sirius:~/scripte]$
Code: Alles auswählen
root@alterserver ~ # python --version
Python 2.7.16
root@alterserver ~ #