Tim Potter
fa8d0dc14a
r14968: Move tdb and ldb swig wrappers in to lib/tdb and lib/ldb directories.
2007-10-10 14:00:48 -05:00
Tim Potter
d50661ed4e
r14915: Work in progress - getting ldb_add() working.
2007-10-10 14:00:16 -05:00
Jelmer Vernooij
222723e443
r14906: Move SWIG-specific files to scripting/swig/
2007-10-10 14:00:14 -05:00
Tim Potter
5b722fcd4b
r14901: More work on ldb swig interface. Wrap some more functions.
2007-10-10 14:00:13 -05:00
Tim Potter
a40d6c7922
r14897: Do more error checking of tdb function returns and raise IOError or
...
KeyError exceptions as appropriate.
Add a close() function to the wrapper as we can't rely on the
Python garbage collector destroying the object and closing the tdb file
at any particular time.
2007-10-10 14:00:13 -05:00
Tim Potter
9327fd07d6
r14881: Unpack ldb_message_element and ldb_val arrays. Python can now access
...
all parts of a ldb_result:
@BASEINFO has 2 elements
elt[0]: val[0]: sequenceNumber = 2
elt[1]: val[0]: distinguishedName = @BASEINFO
name=foo has 2 elements
elt[0]: val[0]: foo = bar
elt[1]: val[0]: distinguishedName = name=foo
Cleanup some swig junk that was only necessary when including config.h
and function prototypes that used the PRINTF_ATTRIBUTE() macro.
Add some more comments.
2007-10-10 14:00:12 -05:00
Tim Potter
73b233ee1b
r14880: Doc.
2007-10-10 14:00:12 -05:00
Tim Potter
60f7f14baa
r14879: Fix bug unpacking ldb_messages.
...
Start decoding more of ldb_message and ldb_message_result.
2007-10-10 14:00:11 -05:00
Tim Potter
704787978a
r14878: Write swig wrappers for ldb_init() and ldb_connect().
...
Start wrapper for ldb_search(). Currently it returns a list of swig
ldb_message objects. More unpacking of results required.
2007-10-10 14:00:11 -05:00
Tim Potter
c6c759e19f
r14873: Add skeleton swig ldb interface.
2007-10-10 14:00:10 -05:00
Tim Potter
c60a233538
r14871: We don't need to import UserDict anymore.
2007-10-10 13:59:45 -05:00
Tim Potter
1c4042e23f
r14854: Finish off swig wrapper and torture tests for tdb.
2007-10-10 13:59:43 -05:00
Tim Potter
4c9af9c149
r14804: Start writing a more Pythonic tdb module.
2007-10-10 13:59:21 -05:00
Tim Potter
3dfd0959f7
r14798: Get swig building again (by commenting out dcerpc stuff for now).
...
Add the start of a test framework for swigged functionality.
2007-10-10 13:59:20 -05:00
Simo Sorce
af92996e30
r13985: Slowly start swig_ldb
...
dcerpc still need fixing, the produced shared library misses some symbols.
Jelmer, can you look at it while you are playing with the build system ?
2007-10-10 13:52:34 -05:00
Simo Sorce
c5a9ba3e1c
r13906: fix swig build
2007-10-10 13:52:22 -05:00
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