← Back to team overview

enterprise-support team mailing list archive

[Bug 2098755] [NEW] "samba-tool gpo manage motd set" crashes when the GPO doesn't exist yet

 

Public bug reported:

The fix for https://bugs.launchpad.net/ubuntu/+source/samba/+bug/2092308
was incomplete, in the sense that it now crashes when the GPO doesn't
exist yet.

$ 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 - 'NoneType' object has no attribute 'text'
  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 3832, in run
    text.text = value
    ^^^^^^^^^

** Affects: samba (Ubuntu)
     Importance: Medium
     Assignee: Andreas Hasenack (ahasenack)
         Status: In Progress

** Affects: samba (Ubuntu Plucky)
     Importance: Medium
     Assignee: Andreas Hasenack (ahasenack)
         Status: In Progress


** Tags: server-todo

** Also affects: samba (Ubuntu Plucky)
   Importance: Medium
     Assignee: Andreas Hasenack (ahasenack)
       Status: In Progress

-- 
You received this bug notification because you are a member of Ubuntu
Server/Client Support Team, which is subscribed to samba in Ubuntu.
Matching subscriptions: Ubuntu Server/Client Support Team
https://bugs.launchpad.net/bugs/2098755

Title:
  "samba-tool gpo manage motd set" crashes when the GPO doesn't exist
  yet

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/samba/+bug/2098755/+subscriptions



Follow ups