svn commit: samba r26445 - in branches/SAMBA_4_0: .
source/auth/credentials
jelmer at samba.org
jelmer at samba.org
Fri Dec 14 00:35:06 GMT 2007
Author: jelmer
Date: 2007-12-14 00:35:05 +0000 (Fri, 14 Dec 2007)
New Revision: 26445
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=26445
Log:
Fix credentials python bindings.
Modified:
branches/SAMBA_4_0/
branches/SAMBA_4_0/source/auth/credentials/credentials.i
branches/SAMBA_4_0/source/auth/credentials/credentials.py
branches/SAMBA_4_0/source/auth/credentials/credentials_wrap.c
Changeset:
Property changes on: branches/SAMBA_4_0
___________________________________________________________________
Name: bzr:revision-info
...skipped...
Name: bzr:revision-id:v3-trunk0
...skipped...
Modified: branches/SAMBA_4_0/source/auth/credentials/credentials.i
===================================================================
--- branches/SAMBA_4_0/source/auth/credentials/credentials.i 2007-12-14 00:27:38 UTC (rev 26444)
+++ branches/SAMBA_4_0/source/auth/credentials/credentials.i 2007-12-14 00:35:05 UTC (rev 26445)
@@ -26,11 +26,13 @@
#include "includes.h"
#include "auth/credentials/credentials.h"
+#include "param/param.h"
typedef struct cli_credentials cli_credentials;
%}
-%include "carrays.i"
-%include "typemaps.i"
+%import "carrays.i"
+%import "typemaps.i"
+%import "param/param.i"
%typemap(default) struct cli_credentials * {
$1 = NULL;
@@ -83,7 +85,7 @@
bool set_workstation(const char *workstation,
enum credentials_obtained obtained=CRED_SPECIFIED);
- void guess(struct loadparm_context *lp_ctx = NULL);
+ void guess(struct loadparm_context *lp_ctx);
bool is_anonymous(void);
const struct samr_Password *get_nt_hash(TALLOC_CTX *mem_ctx);
Modified: branches/SAMBA_4_0/source/auth/credentials/credentials.py
===================================================================
--- branches/SAMBA_4_0/source/auth/credentials/credentials.py 2007-12-14 00:27:38 UTC (rev 26444)
+++ branches/SAMBA_4_0/source/auth/credentials/credentials.py 2007-12-14 00:35:05 UTC (rev 26445)
@@ -57,6 +57,7 @@
return set_attr
+import param
class Credentials(object):
thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
__repr__ = _swig_repr
Modified: branches/SAMBA_4_0/source/auth/credentials/credentials_wrap.c
===================================================================
--- branches/SAMBA_4_0/source/auth/credentials/credentials_wrap.c 2007-12-14 00:27:38 UTC (rev 26444)
+++ branches/SAMBA_4_0/source/auth/credentials/credentials_wrap.c 2007-12-14 00:35:05 UTC (rev 26445)
@@ -2508,6 +2508,7 @@
#include "includes.h"
#include "auth/credentials/credentials.h"
+#include "param/param.h"
typedef struct cli_credentials cli_credentials;
@@ -3363,7 +3364,7 @@
SWIGINTERN PyObject *_wrap_Credentials_guess(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
PyObject *resultobj = 0;
cli_credentials *arg1 = (cli_credentials *) 0 ;
- struct loadparm_context *arg2 = (struct loadparm_context *) NULL ;
+ struct loadparm_context *arg2 = (struct loadparm_context *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
@@ -3377,6 +3378,9 @@
{
arg1 = NULL;
}
+ {
+ arg2 = loadparm_init(NULL);
+ }
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:Credentials_guess",kwnames,&obj0,&obj1)) SWIG_fail;
if (obj0) {
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cli_credentials, 0 | 0 );
More information about the samba-cvs
mailing list