summaryrefslogtreecommitdiff
path: root/source4/scripting/python/samba/netcmd/gpo.py
diff options
context:
space:
mode:
Diffstat (limited to 'source4/scripting/python/samba/netcmd/gpo.py')
-rw-r--r--source4/scripting/python/samba/netcmd/gpo.py8
1 files changed, 2 insertions, 6 deletions
diff --git a/source4/scripting/python/samba/netcmd/gpo.py b/source4/scripting/python/samba/netcmd/gpo.py
index 5e8748adc5..2b481aaf86 100644
--- a/source4/scripting/python/samba/netcmd/gpo.py
+++ b/source4/scripting/python/samba/netcmd/gpo.py
@@ -101,9 +101,7 @@ class cmd_listall(Command):
self.url = H
self.lp = sambaopts.get_loadparm()
- self.creds = credopts.get_credentials(self.lp)
- if not self.creds.authentication_requested():
- self.creds.set_machine_account(self.lp)
+ self.creds = credopts.get_credentials(self.lp, fallback_machine=True)
samdb_connect(self)
@@ -153,9 +151,7 @@ class cmd_list(Command):
self.url = H
self.lp = sambaopts.get_loadparm()
- self.creds = credopts.get_credentials(self.lp)
- if not self.creds.authentication_requested():
- self.creds.set_machine_account(self.lp)
+ self.creds = credopts.get_credentials(self.lp, fallback_machine=True)
samdb_connect(self)