From bfddb6816f50f629d29e476327a921212fd63a2d Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Sun, 20 Sep 2009 16:27:24 -0700 Subject: s4:provision Use code to store domain join in 'net join' as well This ensures we only have one codepath to store the secret, and therefore that we have a single choke point for setting the saltPrincipal, which we were previously skipping. Andrew Bartlett --- source4/librpc/ndr/py_security.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'source4/librpc') diff --git a/source4/librpc/ndr/py_security.c b/source4/librpc/ndr/py_security.c index 02dc059f05..1b185a51b5 100644 --- a/source4/librpc/ndr/py_security.c +++ b/source4/librpc/ndr/py_security.c @@ -23,6 +23,11 @@ #define Py_RETURN_NONE return Py_INCREF(Py_None), Py_None #endif +PyObject *py_dom_sid_FromSid(struct dom_sid *sid) +{ + return py_talloc_reference(&dom_sid_Type, sid); +} + static void PyType_AddMethods(PyTypeObject *type, PyMethodDef *methods) { PyObject *dict; -- cgit From 9d9bd31bf9069f8e0ddf0cd49da49e96dbec8ea5 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Sun, 20 Sep 2009 20:28:42 -0700 Subject: s4:py_security Add missing header --- source4/librpc/ndr/py_security.h | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 source4/librpc/ndr/py_security.h (limited to 'source4/librpc') diff --git a/source4/librpc/ndr/py_security.h b/source4/librpc/ndr/py_security.h new file mode 100644 index 0000000000..9d200faf8e --- /dev/null +++ b/source4/librpc/ndr/py_security.h @@ -0,0 +1,23 @@ +/* + Unix SMB/CIFS implementation. + Samba utility functions + Copyright (C) Jelmer Vernooij 2008 + + 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 . +*/ + +#include "libcli/security/security.h" + +/* a lone prototype for this function, because it's python */ +PyObject *py_dom_sid_FromSid(struct dom_sid *sid); -- cgit