# Noble verification
First, reproducing the bug
ubuntu@n-ad:~$ apt-cache policy samba
samba:
Installed: 2:4.19.5+dfsg-4ubuntu9
Candidate: 2:4.19.5+dfsg-4ubuntu9
Version table:
2:4.19.5+dfsg-4ubuntu9.1 100
100 http://br.archive.ubuntu.com/ubuntu noble-proposed/main amd64
Packages
*** 2:4.19.5+dfsg-4ubuntu9 500
500 http://br.archive.ubuntu.com/ubuntu noble/main amd64 Packages
100 /var/lib/dpkg/status
ubuntu@n-ad:~$ sudo samba-tool gpo manage motd set
{31B2F340-016D-11D2-945F-00C04FB984F9} "Welcome" -U Administrator%Passw0rd
WARNING: Using passwords on command line is insecure. Installing the
setproctitle python module will hide these from shortly after program start.
ERROR(<class 'AttributeError'>): uncaught exception - 'ConfigParser' object has
no attribute 'readfp'
File "/usr/lib/python3/dist-packages/samba/netcmd/__init__.py", line 279, in
_run
return self.run(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/samba/netcmd/gpo.py", line 3838, in run
reg.increment_gpt_ini(machine_changed=True)
File "/usr/lib/python3/dist-packages/samba/policies.py", line 177, in
increment_gpt_ini
parser.parse(data)
File "/usr/lib/python3/dist-packages/samba/gp_parse/gp_ini.py", line 112, in
parse
super(GPTIniParser, self).parse(contents)
File "/usr/lib/python3/dist-packages/samba/gp_parse/gp_ini.py", line 41, in
parse
self.ini_conf.readfp(StringIO(contents.decode(self.encoding)))
^^^^^^^^^^^^^^^^^^^^
Now with the updated package, we see no crash:
ubuntu@n-ad:~$ apt-cache policy samba
samba:
Installed: 2:4.19.5+dfsg-4ubuntu9.1
Candidate: 2:4.19.5+dfsg-4ubuntu9.1
Version table:
*** 2:4.19.5+dfsg-4ubuntu9.1 100
100 http://br.archive.ubuntu.com/ubuntu noble-proposed/main amd64
Packages
100 /var/lib/dpkg/status
2:4.19.5+dfsg-4ubuntu9 500
500 http://br.archive.ubuntu.com/ubuntu noble/main amd64 Packages
ubuntu@n-ad:~$ sudo samba-tool gpo manage motd set
{31B2F340-016D-11D2-945F-00C04FB984F9} "Welcome" -U Administrator%Passw0rd
WARNING: Using passwords on command line is insecure. Installing the
setproctitle python module will hide these from shortly after program start.
ubuntu@n-ad:~$
And we can confirm that the MOTD was set:
ubuntu@n-ad:~$ sudo samba-tool gpo manage motd list
{31B2F340-016D-11D2-945F-00C04FB984F9};echo
Welcome
ubuntu@n-ad:~$
Noble verification succeeded.
** Tags removed: verification-needed-noble
** Tags added: verification-done-noble
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2088094
Title:
ConfigParser has no attribute readfp
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/samba/+bug/2088094/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs