ALT Linux Bugzilla
– Attachment 19197 Details for
Bug 55324
samba + gpoa(gpupdate): Стал требовать авторизации, которая ему не нужна
New bug
|
Search
|
[?]
|
Help
Register
|
Log In
[x]
|
Forgot Password
Login:
[x]
|
EN
|
RU
[patch]
Fixed machine account credentials initialization
0001-Fixed-machine-account-credentials-initialization.patch (text/plain), 1.38 KB, created by
Evgeny Sinelnikov
on 2025-07-26 00:12:37 MSK
(
hide
)
Description:
Fixed machine account credentials initialization
Filename:
MIME Type:
Creator:
Evgeny Sinelnikov
Created:
2025-07-26 00:12:37 MSK
Size:
1.38 KB
patch
obsolete
>From 3c0c722818783d01cc89c2bc8302adf90fc107a2 Mon Sep 17 00:00:00 2001 >From: Evgeny Sinelnikov <sin@altlinux.org> >Date: Sat, 26 Jul 2025 00:56:03 +0400 >Subject: [PATCH] Fixed machine account credentials initialization > >--- > gpoa/util/windows.py | 11 +++++++---- > 1 file changed, 7 insertions(+), 4 deletions(-) > >diff --git a/gpoa/util/windows.py b/gpoa/util/windows.py >index ceff18f8a..df4aa7c6d 100644 >--- a/gpoa/util/windows.py >+++ b/gpoa/util/windows.py >@@ -19,7 +19,7 @@ > > import os > from pathlib import Path >-from samba import getopt as options >+from samba.credentials import Credentials > from samba import NTSTATUSError > > try: >@@ -51,10 +51,13 @@ class smbcreds (smbopts): > > def __init__(self, dc_fqdn=None): > smbopts.__init__(self, 'GPO Applier') >- self.credopts = options.CredentialsOptions(self.parser) >- self.creds = self.credopts.get_credentials(self.lp, fallback_machine=True) >+ >+ self.creds = Credentials() >+ self.creds.guess(self.lp) >+ self.creds.set_machine_account() >+ > self.set_dc(dc_fqdn) >- self.sDomain = SiteDomainScanner(self.creds, self.lp, self.selected_dc) >+ self.sDomain = SiteDomainScanner(self.creds, self.lp, self.selected_dc) > self.dc_site_servers = self.sDomain.select_site_servers() > self.all_servers = self.sDomain.select_all_servers() > [self.all_servers.remove(element) >-- >2.42.4 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 55324
:
19173
|
19174
| 19197