This is no longer used by gpupdate.
BUG: https://bugzilla.samba.org/show_bug.cgi?id=15225
Signed-off-by: David Mulder <dmulder@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
size_t i;
static const char *kwlist[] = {"samaccountname", NULL};
+
+ PyErr_WarnEx(PyExc_DeprecationWarning, "The get_gpo_list function"
+ " is deprecated as of Samba 4.19. Please use "
+ "the samba.gp module instead.", 2);
+
if (!PyArg_ParseTupleAndKeywords(args, kwds, "s",
discard_const_p(char *, kwlist),
&samaccountname)) {
--- /dev/null
+# Unix SMB/CIFS implementation.
+# Copyright (C) David Mulder <dmulder@samba.org> 2023
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+from samba.gp.gpclass import get_gpo_list
self.assertEqual(gpos[i].ds_path, ds_paths[i],
'ds_path did not match expected %s' % gpos[i].ds_path)
- def test_gpo_ads_does_not_segfault(self):
- try:
- ads = gpo.ADS_STRUCT(self.server, 42, self.creds)
- except:
- pass
-
def test_gpt_version(self):
global gpt_data
local_path = self.lp.cache_path('gpo_cache')
# along with this program. If not, see <http://www.gnu.org/licenses/>.
import os
-from samba import gpo, tests
+from samba import tests
from samba.gp.gpclass import GPOStorage
from samba.param import LoadParm
from samba.credentials import Credentials