1
0
mirror of https://github.com/samba-team/samba.git synced 2025-10-31 12:23:52 +03:00
Commit Graph

144 Commits

Author SHA1 Message Date
Tim Potter
e14c00c4c1 r7062: Merge scripting/swig/config.mk with scripting/config.mk 2007-10-10 13:17:10 -05:00
Tim Potter
99fb6b6bad r6592: Throw an IOError exception if tdb_open() or tdb_open_Ex() returns NULL. 2007-10-10 13:16:29 -05:00
Tim Potter
0abd03f70c r6591: Add some comments.
Use SWIG %rename to get rid of prefix on every tdb function.

Treat mode_t as an int so we can actually pass a mode argument to
tdb_open().
2007-10-10 13:16:28 -05:00
Tim Potter
83a125ce57 r6590: Remove bogus library versioning variables from swig wrappers. 2007-10-10 13:16:28 -05:00
Tim Potter
7ab240644e r6540: Implement a bunch more SAMR functions. 2007-10-10 13:16:24 -05:00
Tim Potter
f40977c421 r6539: A patch from jbm:
- convert rpcclient to new credential code
  - allow anonymous connections
2007-10-10 13:16:24 -05:00
Tim Potter
16b7e503bd r6512: Refactor samr torture test to use the nicer OO interface instead of the
previous dictionary based SWIG interface (which was broken anyway).
2007-10-10 13:16:21 -05:00
Tim Potter
f9742de617 r6511: Implement GetUserPwInfo(), QueryUserInfo(), QueryUserInfo2(). 2007-10-10 13:16:21 -05:00
Tim Potter
2e44402751 r6510: Initialise rid parameter in samr_RidToSid(). This is faulting for me
on win2k - not sure why.

Add dodgy implementations of QueryDisplayInfo{,2,3}()
2007-10-10 13:16:20 -05:00
Tim Potter
61da936dbc r6508: Fix typo - yay testsuite. 2007-10-10 13:16:20 -05:00
Tim Potter
3055addde6 r6507: Fix syntax error in GetAliasMembership().
Implement SetDomainInfo() which got lost somehow.
2007-10-10 13:16:20 -05:00
Tim Potter
1542a13493 r6506: Rename parameter to GetDomPwInfo. 2007-10-10 13:16:20 -05:00
Tim Potter
acf1d0a1b5 r6469: Add CreateDomainGroup, GetAliasMembership. 2007-10-10 13:11:40 -05:00
Tim Potter
30d0c9fb2e r6329: Write tests for newly implemented alias functions. 2007-10-10 13:11:32 -05:00
Tim Potter
25ed39651b r6328: Fix bug in OpenAlias.
Implement DeleteDomAlias, QueryAliasInfo, SetAliasInfo,
AddAliasMember, and AddMultipleMembersToAlias.

Fix one of those annoying large integer warnings.
2007-10-10 13:11:32 -05:00
Tim Potter
b6e883a613 r6327: Add LSA objects to dcerpc swig library. 2007-10-10 13:11:32 -05:00
Tim Potter
fd884ec433 r6326: Add %array_functions for struct lsa_SidPtr.
Pull in the auto-generated interface file for the lsa pipe
(whaddayaknow it compiled first go!)
2007-10-10 13:11:32 -05:00
Tim Potter
162d3609a1 r6324: Pass server name instead of binding string on command line (always use
ncacn_np for the moment).

Fix rpcclient to work with struct cli_credentials.
2007-10-10 13:11:31 -05:00
Tim Potter
e3a69a7322 r6215: Add test for LookupNames. Fix CreateUser2 test. 2007-10-10 13:11:27 -05:00
Tim Potter
57680163bc r6214: Fix typo in DomainHandle.OpenUser() function.
Implement DomainHandle.LookupNames() function.

UserHandle.DeleteUser() closes the handle so don't try and close it
when the GC destroys the class instance.
2007-10-10 13:11:27 -05:00
Tim Potter
fc2b73d4d7 r6213: Add %array_functions for struct samr_String so we can create and
access arrays of them.
2007-10-10 13:11:26 -05:00
Tim Potter
86c62b92e8 r6212: Treat uint8 and int8's as integers instead of chars. Swig maps a char
to a string when we really want an integer.
2007-10-10 13:11:26 -05:00
Tim Potter
a3e7d71463 r6211: Use cli_credentials_set_{domain,username,password}() to fill in
command line arguments for credentials typemap.  Neat!
2007-10-10 13:11:26 -05:00
Tim Potter
1c88e71ec6 r6210: Call cli_credentials_set_conf() when initialising credentials in
cli_credentials typemap.
2007-10-10 13:11:26 -05:00
Tim Potter
b09a472353 r6208: Add cli_credentials support for swig wrappers. For the moment it
only does anonymous connections.
2007-10-10 13:11:26 -05:00
Tim Potter
8b83eca265 r5778: Remove tdb_set_lock_alarm() function from wrappers at tridge's request. 2007-10-10 13:11:02 -05:00
Tim Potter
170139035a r5777: At some stage SIG_ATOMIC_T was renamed to sig_atomic_t. This should
fix abartlet's compile problem.
2007-10-10 13:11:02 -05:00
Tim Potter
1459393983 r5369: Rename torture modules so they don't conflict with files in scripting/swig.
Start porting samr torture test to new API.
2007-10-10 13:09:47 -05:00
Tim Potter
f9ba35ff83 r5368: Fix ups for domain_name field name change.
Implement GetDomPwInfo(), CreateUser2(), RemoveMemberFromForeignDomain(),
DeleteUser().
2007-10-10 13:09:47 -05:00
Tim Potter
4a96778331 r5353: Throw a NTSTATUS exception if a NT error code is returned. 2007-10-10 13:09:45 -05:00
Tim Potter
be37749ac7 r5351: Add wrapper for nt_errstr and array functions for samr_ConnectInfo. 2007-10-10 13:09:45 -05:00
Tim Potter
076ec6008e r5350: Implement an input typemap for NTSTATUS. 2007-10-10 13:09:44 -05:00
Tim Potter
4b2c3c7ac5 r5348: Implement the remaining samr connect functions and fix up setsecurity. 2007-10-10 13:09:44 -05:00
Tim Potter
94a3ff2380 r5335: Add a Close() method to SamrHandle object.
Add methods for {Query,Set}Security, Shutdown, CreateUser,
Open{User,Group,Alias} and RidToSid.

Time for a torture test I think!
2007-10-10 13:09:44 -05:00
Tim Potter
2f0419c4d8 r5293: Map an empty policy handle to None when creating policy handles, and
refuse to accept None as a policy handle when accepting them.  Now we
don't segfault after running the samr_Shutdown() test.
2007-10-10 13:09:37 -05:00
Tim Potter
ad12a90d0e r5247: Fix rpcclient to work with new swig interface. 2007-10-10 13:09:34 -05:00
Tim Potter
53b361657f r5244: Convert this module to use the new structure mapping SWIG stuff instead of
the old dictionary based routines.  The SAMR connect, close, enumdomains,
opendomain, enum{users,aliases,groups} functions now work again!
2007-10-10 13:09:33 -05:00
Tim Potter
c63668cbbe r5243: Woohoo - memory leak city! Comment out talloc_free() call until I
figure out a better way to pass tallocated memory around with SWIG.
2007-10-10 13:09:33 -05:00
Tim Potter
6dba5d6fb4 r5242: Check that argument is an integer or a long for uint32_t input
typemap.

The uint32_t output typemap must return a Python long as an unsigned
uint32_t cannot be fully represented by a Python int.

Likewise for the NTSTATUS typemap.
2007-10-10 13:09:33 -05:00
Tim Potter
5a1f6c999e r5224: Add in/out typemaps for resume handles. This saves us having to much
around with pointers to just one uint32.

Add an output typemap to copy a policy handle as the talloc context is
destroyed before the wrapper function returns.  More work here needed
to avoid memory leaks.

Use the swig carrays.i file to create accessor and setter functions
for fixed width integer types.  Also add functions for struct samr_SamEntry
as it's returned by the LookupDomain RPC.  This really needs to be
done by pidl so I don't have to go through and find all the structures
that are returned in arrays.

Include security.i to give us SIDs and security descriptors.
2007-10-10 13:09:33 -05:00
Tim Potter
e561bc3efa r5095: uint32 -> uint32_t
%include misc.i to get definition of struct policy_handle

Remove #includes we aren't using just now.
2007-10-10 13:09:22 -05:00
Tim Potter
f2a1b237bc r5094: Use builtin swig types for converting between fixed width integer types. 2007-10-10 13:09:22 -05:00
Tim Potter
36b46bb05a r5074: Remove dead code. 2007-10-10 13:09:20 -05:00
Tim Potter
95d2a58e5b r5018: Initialise required subsystems (by hand, generated by substituting
BINARY for LIBRARY in config.mk).

Cut things down to just the samr pipe for the moment.
2007-10-10 13:09:14 -05:00
Tim Potter
dc845154ca r5017: Fix bug in output typemap for uint32 (!) 2007-10-10 13:09:14 -05:00
Tim Potter
e9b69d19a8 r5016: Use LIBRARY instead of BINARY for inserting the swig stuff into the
build system.  This still generates bogus targets (i.e
bin/swig_dcerpc.so.0.0.1) and the subsystem initialisation needs to be
done by hand but it is less of a hack.
2007-10-10 13:09:13 -05:00
Tim Potter
71a22f5206 r4982: Start to move swig dependencies into new build system. Unfortunately
I can only get something useful happening by using the BINARY keyword
as nothing else seems to generate dependency lists that can be used
when linking the swig shared libraries.  Anyway this is a lot nicer
than having lots of junk in makefile.pm.
2007-10-10 13:09:11 -05:00
Tim Potter
b44ab87c83 r4981: Fix swig build. 2007-10-10 13:09:11 -05:00
Tim Potter
2ec3a137d7 r4546: Use talloc_p() instad of talloc() 2007-10-10 13:08:20 -05:00
Tim Potter
5af52c559e r3870: Delete wrappers for tdb_lockkeys() and tdb_unlockkeys(). 2007-10-10 13:06:00 -05:00