r23784: use the GPLv3 boilerplate as recommended by the FSF and the license text
[samba.git] / source3 / python / py_lsa.c
index 915223a5bb78453e52395b644bb87648b98fc1ee..6095fdfc677f0fa1ef0561ce59621521647cba4e 100644 (file)
@@ -5,7 +5,7 @@
    
    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 2 of the License, or
+   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,
@@ -14,8 +14,7 @@
    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, write to the Free Software
-   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+   along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
 
 #include "python/py_lsa.h"
@@ -125,7 +124,7 @@ static PyObject *lsa_close(PyObject *self, PyObject *args, PyObject *kw)
 
        /* Call rpc function */
 
-       result = rpccli_lsa_close(hnd->cli, hnd->mem_ctx, &hnd->pol);
+       result = rpccli_lsa_Close(hnd->cli, hnd->mem_ctx, &hnd->pol);
 
        /* Cleanup samba stuff */
 
@@ -147,7 +146,7 @@ static PyObject *lsa_lookup_names(PyObject *self, PyObject *args)
        const char **names;
        DOM_SID *sids;
        TALLOC_CTX *mem_ctx = NULL;
-       uint32 *name_types;
+       enum lsa_SidType *name_types;
 
        if (!PyArg_ParseTuple(args, "O", &py_names))
                return NULL;
@@ -187,7 +186,7 @@ static PyObject *lsa_lookup_names(PyObject *self, PyObject *args)
 
        ntstatus = rpccli_lsa_lookup_names(
                hnd->cli, mem_ctx, &hnd->pol, num_names, names, 
-               NULL, &sids, &name_types);
+               NULL, 1, &sids, &name_types);
 
        if (!NT_STATUS_IS_OK(ntstatus) && NT_STATUS_V(ntstatus) != 0x107) {
                PyErr_SetObject(lsa_ntstatus, py_ntstatus_tuple(ntstatus));