1
0
mirror of https://github.com/samba-team/samba.git synced 2025-11-09 20:23:51 +03:00
Commit Graph

169 Commits

Author SHA1 Message Date
Jelmer Vernooij
bf5da20869 r15585: Revive pidl's SWIG file generator. It now generates simple
object oriented wrappers for the interfaces (still need to fix
the actual function calls)
2007-10-10 14:06:00 -05:00
Tim Potter
11150b3140 r15391: Wrap up the nbt_name_query() function as a bit of an experiment. It
seemed to work quite well and this technique might be good for
generating an interface to use for automated testing.

Tested by doing a nbt lookup against smbd.
2007-10-10 14:05:32 -05:00
Tim Potter
d67e055f86 r15389: Add some better torture tests for LdbMessage.
Fix up behaviour of Ldb.__setitem__() function.  It should overwrite the
element data.

Add wrapper for ldb_msg_sanity_check().
2007-10-10 14:05:31 -05:00
Tim Potter
7e30e8ba57 r15348: Start adding a dict interface and tests to LdbMessage class. 2007-10-10 14:05:23 -05:00
Tim Potter
370e5b0f8a r15345: Add a read-only test to tdb torture tester. 2007-10-10 14:05:21 -05:00
Jelmer Vernooij
4ec89bce87 r15331: Integrate LIBSMB and LIBCLI into new LIBCLI_SMB 2007-10-10 14:05:18 -05:00
Jelmer Vernooij
d9f1c19f58 r15300: Only enable SWIG shared libs if python is available 2007-10-10 14:05:04 -05:00
Jelmer Vernooij
adc8a019b6 r15207: Introduce PRIVATE_DEPENDENCIES and PUBLIC_DEPENDENCIES as replacement
for REQUIRED_SUBSYSTEMS.
2007-10-10 14:04:18 -05:00
Jelmer Vernooij
7af59357b9 r15191: Avoid uint_t as it's not standard. 2007-10-10 14:04:15 -05:00
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