1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-13 13:18:06 +03:00

143 Commits

Author SHA1 Message Date
Tim Potter
17f1cf0950 r6592: Throw an IOError exception if tdb_open() or tdb_open_Ex() returns NULL.
(This used to be commit 99fb6b6badf1afeac21fdb5f1ce04c1749e1b7f7)
2007-10-10 13:16:29 -05:00
Tim Potter
c8d0e36312 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().
(This used to be commit 0abd03f70c5c63a915086eaf6e3a25b3087769bc)
2007-10-10 13:16:28 -05:00
Tim Potter
6950d5f895 r6590: Remove bogus library versioning variables from swig wrappers.
(This used to be commit 83a125ce576b1be613e010a5c9b4257f25909b05)
2007-10-10 13:16:28 -05:00
Tim Potter
9d87efb681 r6540: Implement a bunch more SAMR functions.
(This used to be commit 7ab240644ec6cfd0449df7e2dfe0eb1b8a52ccdb)
2007-10-10 13:16:24 -05:00
Tim Potter
5c6e1f81ce r6539: A patch from jbm:
- convert rpcclient to new credential code
  - allow anonymous connections
(This used to be commit f40977c42145e202ddfe50c9a7daad624b06cc59)
2007-10-10 13:16:24 -05:00
Tim Potter
c23d22e4f1 r6512: Refactor samr torture test to use the nicer OO interface instead of the
previous dictionary based SWIG interface (which was broken anyway).
(This used to be commit 16b7e503bdbe4da96158e504790b1501a99d6db3)
2007-10-10 13:16:21 -05:00
Tim Potter
5fef58af74 r6511: Implement GetUserPwInfo(), QueryUserInfo(), QueryUserInfo2().
(This used to be commit f9742de617b6f1f24b75ae5af18a476f03c0b732)
2007-10-10 13:16:21 -05:00
Tim Potter
93e41274c5 r6510: Initialise rid parameter in samr_RidToSid(). This is faulting for me
on win2k - not sure why.

Add dodgy implementations of QueryDisplayInfo{,2,3}()
(This used to be commit 2e44402751f77fcbd9c89299d8533e91207de49f)
2007-10-10 13:16:20 -05:00
Tim Potter
25601d2d67 r6508: Fix typo - yay testsuite.
(This used to be commit 61da936dbc491d0ec2d733d9ba155c3df01b8847)
2007-10-10 13:16:20 -05:00
Tim Potter
416434fbc4 r6507: Fix syntax error in GetAliasMembership().
Implement SetDomainInfo() which got lost somehow.
(This used to be commit 3055addde60687acdcf4e92dcb08e7f8dfdfb8f1)
2007-10-10 13:16:20 -05:00
Tim Potter
df13db69cc r6506: Rename parameter to GetDomPwInfo.
(This used to be commit 1542a13493bb9bf33d5f09dca273957bb4333862)
2007-10-10 13:16:20 -05:00
Tim Potter
c06297f776 r6469: Add CreateDomainGroup, GetAliasMembership.
(This used to be commit acf1d0a1b554736361f38bcd74961d4e6c1b12bd)
2007-10-10 13:11:40 -05:00
Tim Potter
6f036daaa4 r6329: Write tests for newly implemented alias functions.
(This used to be commit 30d0c9fb2ededb86e40b985820a426f8df84053b)
2007-10-10 13:11:32 -05:00
Tim Potter
0545dfe856 r6328: Fix bug in OpenAlias.
Implement DeleteDomAlias, QueryAliasInfo, SetAliasInfo,
AddAliasMember, and AddMultipleMembersToAlias.

Fix one of those annoying large integer warnings.
(This used to be commit 25ed39651b020c9e4bda1d8aa8e2d78f918be3a2)
2007-10-10 13:11:32 -05:00
Tim Potter
621588c9e6 r6327: Add LSA objects to dcerpc swig library.
(This used to be commit b6e883a613e35ec3d5541a45efb80345578e2460)
2007-10-10 13:11:32 -05:00
Tim Potter
041e467208 r6326: Add %array_functions for struct lsa_SidPtr.
Pull in the auto-generated interface file for the lsa pipe
(whaddayaknow it compiled first go!)
(This used to be commit fd884ec433c825759624a47541521cbd3d07f5a1)
2007-10-10 13:11:32 -05:00
Tim Potter
602be3fd49 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.
(This used to be commit 162d3609a1f46683151d201a5404d0456d76b726)
2007-10-10 13:11:31 -05:00
Tim Potter
86122d78e5 r6215: Add test for LookupNames. Fix CreateUser2 test.
(This used to be commit e3a69a73222ae3277c2d10d33c5c71b7a14da789)
2007-10-10 13:11:27 -05:00
Tim Potter
b796dc4077 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.
(This used to be commit 57680163bcc1aa5c707a64dcd1d0998dbc9f0659)
2007-10-10 13:11:27 -05:00
Tim Potter
f0641cae5d r6213: Add %array_functions for struct samr_String so we can create and
access arrays of them.
(This used to be commit fc2b73d4d75f383108632935ba047890c816b283)
2007-10-10 13:11:26 -05:00
Tim Potter
3b64edcfff r6212: Treat uint8 and int8's as integers instead of chars. Swig maps a char
to a string when we really want an integer.
(This used to be commit 86c62b92e84a6eb1e756a7125777587583a9276e)
2007-10-10 13:11:26 -05:00
Tim Potter
2543885bf3 r6211: Use cli_credentials_set_{domain,username,password}() to fill in
command line arguments for credentials typemap.  Neat!
(This used to be commit a3e7d71463053101e743a930f2648269d63ecaca)
2007-10-10 13:11:26 -05:00
Tim Potter
d77e7cd774 r6210: Call cli_credentials_set_conf() when initialising credentials in
cli_credentials typemap.
(This used to be commit 1c88e71ec645d10648f01e0405d29a4a83bc4036)
2007-10-10 13:11:26 -05:00
Tim Potter
e1e8928840 r6208: Add cli_credentials support for swig wrappers. For the moment it
only does anonymous connections.
(This used to be commit b09a4723539235fc924134aa50fc4aed040afb33)
2007-10-10 13:11:26 -05:00
Tim Potter
1fb7f63aa9 r5778: Remove tdb_set_lock_alarm() function from wrappers at tridge's request.
(This used to be commit 8b83eca265b6ad5f33e90beac67f3e1621010764)
2007-10-10 13:11:02 -05:00
Tim Potter
fd0aa010be r5777: At some stage SIG_ATOMIC_T was renamed to sig_atomic_t. This should
fix abartlet's compile problem.
(This used to be commit 170139035ab1e7659a82e1e2d40990f4d7f146c3)
2007-10-10 13:11:02 -05:00
Tim Potter
11e6c958fd r5369: Rename torture modules so they don't conflict with files in scripting/swig.
Start porting samr torture test to new API.
(This used to be commit 14593939830e130ae306b82a6c063ec9d7f36b93)
2007-10-10 13:09:47 -05:00
Tim Potter
74e9fce454 r5368: Fix ups for domain_name field name change.
Implement GetDomPwInfo(), CreateUser2(), RemoveMemberFromForeignDomain(),
DeleteUser().
(This used to be commit f9ba35ff839fb612f53d8c2e6c5a64aaddc3d6a1)
2007-10-10 13:09:47 -05:00
Tim Potter
12ccb3c453 r5353: Throw a NTSTATUS exception if a NT error code is returned.
(This used to be commit 4a9677833167b3b26117ab1b4e7c682d9524a206)
2007-10-10 13:09:45 -05:00
Tim Potter
49568fab37 r5351: Add wrapper for nt_errstr and array functions for samr_ConnectInfo.
(This used to be commit be37749ac7d128fcabf82bad104d87098e2d9f55)
2007-10-10 13:09:45 -05:00
Tim Potter
55006da043 r5350: Implement an input typemap for NTSTATUS.
(This used to be commit 076ec6008e4dbd130044893f34c3fd7212bf667d)
2007-10-10 13:09:44 -05:00
Tim Potter
8cd9d7095b r5348: Implement the remaining samr connect functions and fix up setsecurity.
(This used to be commit 4b2c3c7ac56e1e428dec6205e4e69268be84cac6)
2007-10-10 13:09:44 -05:00
Tim Potter
4180eedd6d 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!
(This used to be commit 94a3ff2380071efccf19ca51488753d3513ab63c)
2007-10-10 13:09:44 -05:00
Tim Potter
57f69e6f37 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.
(This used to be commit 2f0419c4d8100864ddddf5629d1808b655da9d76)
2007-10-10 13:09:37 -05:00
Tim Potter
7411bf6775 r5247: Fix rpcclient to work with new swig interface.
(This used to be commit ad12a90d0e0fe7106b1845097d8fc71be3b8e378)
2007-10-10 13:09:34 -05:00
Tim Potter
d8e1c7f0a7 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!
(This used to be commit 53b361657fe892ad7b9d781450ad841a6b1072e5)
2007-10-10 13:09:33 -05:00
Tim Potter
e282b83381 r5243: Woohoo - memory leak city! Comment out talloc_free() call until I
figure out a better way to pass tallocated memory around with SWIG.
(This used to be commit c63668cbbe393a78ccd9a86a33fb4bd7bb9af16d)
2007-10-10 13:09:33 -05:00
Tim Potter
a36c43bc21 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.
(This used to be commit 6dba5d6fb43f87bedc380c4f82b1d5f90b70325a)
2007-10-10 13:09:33 -05:00
Tim Potter
05db954edd 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.
(This used to be commit 5a1f6c999ef5e84e93ec8f07b9751d795c4566a5)
2007-10-10 13:09:33 -05:00
Tim Potter
5540449f1c r5095: uint32 -> uint32_t
%include misc.i to get definition of struct policy_handle

Remove #includes we aren't using just now.
(This used to be commit e561bc3efa2a5307a3940a32058ca00d5dfc2fc5)
2007-10-10 13:09:22 -05:00
Tim Potter
7e877072bd r5094: Use builtin swig types for converting between fixed width integer types.
(This used to be commit f2a1b237bcc824bd3e84da69f472ffb3c9055d00)
2007-10-10 13:09:22 -05:00
Tim Potter
d5b8ec7b0e r5074: Remove dead code.
(This used to be commit 36b46bb05aeffb2ba708e4653c131cecece01984)
2007-10-10 13:09:20 -05:00
Tim Potter
07b65ce281 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.
(This used to be commit 95d2a58e5b2cfc30304ca390de7073c214850984)
2007-10-10 13:09:14 -05:00
Tim Potter
b10b7a360a r5017: Fix bug in output typemap for uint32 (!)
(This used to be commit dc845154ca1738f4c3959a1799cbbd6ce65b7d02)
2007-10-10 13:09:14 -05:00
Tim Potter
5e67970889 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.
(This used to be commit e9b69d19a84b31966fb6e66e9d8682b0f9b40a47)
2007-10-10 13:09:13 -05:00
Tim Potter
8fb54d162b 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.
(This used to be commit 71a22f5206086c5ab7315d38934d65483aff7a70)
2007-10-10 13:09:11 -05:00
Tim Potter
29589f3895 r4981: Fix swig build.
(This used to be commit b44ab87c83ad094ce4595c9702d6a21f30c1de26)
2007-10-10 13:09:11 -05:00
Tim Potter
66bd6142a2 r4546: Use talloc_p() instad of talloc()
(This used to be commit 2ec3a137d7fd8a912bc70e865f7a7798190b8869)
2007-10-10 13:08:20 -05:00
Tim Potter
c20a326752 r3870: Delete wrappers for tdb_lockkeys() and tdb_unlockkeys().
(This used to be commit 5af52c559e731d55ccd019a2b06f486a2f86e6ce)
2007-10-10 13:06:00 -05:00
Tim Potter
e0586efe7a r3607: EnumDomainAlises doesn't take a max_size parameter.
(This used to be commit 996d042bf701860fcc9a9b424118c02addb2119b)
2007-10-10 13:05:38 -05:00