Bug 15212 - samba-gpupdate fails with AttributeError: 'NoneType' object has no attribute 'text' processing startup script
Summary: samba-gpupdate fails with AttributeError: 'NoneType' object has no attribute ...
Status: RESOLVED FIXED
Alias: None
Product: Samba 4.1 and newer
Classification: Unclassified
Component: Python (show other bugs)
Version: unspecified
Hardware: All All
: P5 normal (vote)
Target Milestone: ---
Assignee: David Mulder
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-10-24 22:54 UTC by David Mulder
Modified: 2022-10-25 15:23 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Mulder 2022-10-24 22:54:38 UTC
getting this error trying to test a startup script

root@fs1:~/samba.git# /usr/sbin/samba-gpupdate --force
2022-10-24 19:56:21.410|[E09601]| Failed to apply extension VGP/Unix Settings/Startup Scripts | {}
2022-10-24 19:56:21.410|[E52257]| Message was: AttributeError: 'NoneType' object has no attribute 'text' | {}

file server is running from git

root@fs1:~/samba.git# samba-gpupdate --version
4.18.0pre1-GIT-284afec29ff
root@fs1:~/samba.git#

ADDC is running 4.17

root@nc1:~# cat start_peter.sh
 #!/bin/sh
 whoami >> /tmp/daily.log

root@nc1:~# samba-tool gpo manage scripts startup add {B6997861-495F-43DF-B01D-045048188B37} start_peter.sh -U administrator
Password for [CARLSON\administrator]:

GPO          : {B6997861-495F-43DF-B01D-045048188B37}
display name : Linux Defaults
path         : \\carlson.lab\SysVol\carlson.lab\Policies\{B6997861-495F-43DF-B01D-045048188B37}
dn           : CN={B6997861-495F-43DF-B01D-045048188B37},CN=Policies,CN=System,DC=carlson,DC=lab
version      : 2
flags        : NONE

Reported by Peter Carlson
Comment 2 Samba QA Contact 2022-10-25 15:22:03 UTC
This bug was referenced in samba master:

42069152554f2768e52424841e633eeeb154aed5
4f63c1280786a47185b0e1aac40ab96a2ac78ee3