summaryrefslogtreecommitdiff
path: root/source3/python
AgeCommit message (Collapse)AuthorFilesLines
2004-02-26Fix for writable printerdata problem - bugzilla #1112.Tim Potter1-6/+12
(This used to be commit a05b9f0cc55300e2a25c87849a4417afea0cd867)
2003-09-25Fix for #480. Change the interface for init_unistr2 to not take a lengthJeremy Allison2-2/+2
but a flags field. We were assuming that 2*strlen(mb_string) == length of ucs2-le string. This is not the case. Count it after conversion. Jeremy. (This used to be commit f82c273a42f930c7152cfab84394781744815e0e)
2003-09-19Ensure that dup_sec_desc copies the 'type' field correctly. This causedJeremy Allison1-1/+1
me to expose a type arguement to make_sec_desc(). We weren't copying the SE_DESC_DACL_AUTO_INHERITED flag which could cause errors on auto inherited checks. Jeremy. (This used to be commit 28b315a7501f42928d73efaa75f74146ba95cf2d)
2003-08-25update python libraries for new cli_spoolss_getprinterdriver() callGerald Carter1-2/+3
(This used to be commit 331a69919c3d4457e4c700b1fd4033f338d0ec98)
2003-08-12Tims' little fix.John Terpstra1-1/+1
(This used to be commit 03a308afcd8826387e33a9c95df98425f9e0fa79)
2003-08-12Fix for bug 269. Change wbinfo and ntlm_auth to convert domain, usernameTim Potter1-2/+8
and workstation to utf8 before sending the winbindd request. Also, don't continue when the call to pull_utf8() fails but rather return a winbind error. (This is what was causing the crash) (This used to be commit ca1c463360b75538a93b56a87cbb4a6ee7b6cec6)
2003-08-04More patches from Brett:Tim Potter1-20/+23
- remove 'if(mem_ctx)' tests prior to 'talloc_destroy' call to make consistent with other modules; 'talloc_destroy' already test for NULL anyway. - initialize PyObject* result pointers to NULL in function declarations; enables removal of redundant NULL assignments. - use local scope TALLOC_CTX in lsa_lookup_names to prevent unbounded memory growth during python policy object lifetime. - change context name string used in lsa_lookup_sids from 'lsa_open_policy' to 'lsa_lookup_sids' (cut'npaste oversight from previous patch) - change docstring to match module name (apparently another cut'npaste situation) (This used to be commit 98cac74c67c454f636df5c1ea2baa029c482e402)
2003-08-04Fix memory leak in py_smb_set_setdesc()Tim Potter1-10/+15
Consistency fixups in py_smb_query_secdesc() Thanks to Brett A. Funderburg for these patches. (This used to be commit 6c33189e50ae3704275198e324fcdb7facd209f7)
2003-07-30Add a command line option (-S on|off|required) to enable signing on clientJeremy Allison1-1/+1
connections. Overrides smb.conf parameter if set. Jeremy. (This used to be commit 879309671df6b530e0bff69559422a417da4a307)
2003-07-29More memory leak fixes from Brett! It turns out PyDict_SetItemStringTim Potter1-16/+23
didn't behave exactly as I thought it did. If you create an item using a PyFoo_FromBar function you must decrement the reference to that object afterwards (or use Py_BuildValue). (This used to be commit 2a960963fbe43de753d44d617a7666a7b258092e)
2003-07-29Memory leak fixes from Brett A. Funderburg - don't use the connection tallocTim Potter1-7/+20
context for data that is only needed on a per-call basis. (This used to be commit 3cb39ddee456f55b96e593c67c86082bbd590d86)
2003-07-29Add debug output api's from lsa/spoolss modules to smb module. PatchTim Potter1-1/+33
from Brett A. Funderburg. (This used to be commit 2cedaff044e5a5a03482b1e8f211218db5394930)
2003-07-23Fix two memory leaks in the smb module:Tim Potter1-1/+7
- free talloc context when cli_query_secdesc() fails - dispose of cli_state when python cli_state_object is garbage collected (This used to be commit 36052f95ffad4f227596e8038d3f056312d0ad82)
2003-07-22Use lp_idmap_[ug]id() instead of lp_winbind_[ug]id()Tim Potter1-3/+3
(This used to be commit cfb86b4503c13b34583a61ef01ca8e1ed00fb9e4)
2003-06-13Delete outdated file.Tim Potter1-6/+0
(This used to be commit 406956645f8c713441040598c0c2849101d3fed7)
2003-05-05Fix for bug #60. Our autoconf code adds both libraries and linkerTim Potter1-21/+30
flags in the $LIBS make variable. Separate the two so the python extensions can build. (This used to be commit 164ea3835724409d5b9badbad689d154307d2b59)
2003-04-15merge in metze' smbcquotas patch from HEADGerald Carter1-2/+2
(This used to be commit b6a77048886151435a4a5eeb9a04be44d397c504)
2003-04-14Merge create/delete domain user samr calls from HEAD.Tim Potter4-146/+404
(This used to be commit 68075fb97f577a78438b5121202e94cfcb6597b8)
2003-03-20Merge of compiler warning fixups.Tim Potter10-328/+316
(This used to be commit 0308a0a11265050f53fc7e8e03f8e17b04adb45d)
2003-03-20Merge of removal of py_samba.cTim Potter2-68/+1
(This used to be commit 68b4052281d22dace2ae9e48d022fa288c0a6425)
2003-03-18Merge of #ifdef'ed out auth_smbd wrapper.Tim Potter1-1/+71
(This used to be commit fc0b2fcf977b9014d2478296168b22e9faa22108)
2003-03-13Merge of added locking functions from HEAD.Tim Potter1-1/+81
(This used to be commit c7593929681ad9aed4b9d2025d33071b9751185f)
2003-03-13Merge of some commentary for getprinter info levels supported by win2k+Tim Potter1-0/+16
(This used to be commit 3026a5ef152e1856ac127abe72855371611d5bf3)
2003-02-25Merge: fix compiler warning.Tim Potter1-0/+7
(This used to be commit 55ee43cfb8b3ffb99c50d987f07a96fe79a0fe92)
2003-02-20(Merge from APPLIANCE_HEAD)Martin Pool1-1/+4
CR1829: Fix memory leak when unpacking 'B' buffers in Python. (PyList_Append creates a new reference to the added object, and so we have to release the existing one.) (This used to be commit fa500c77e338337cafe5b46cadf9b104e920e823)
2003-02-19Merge of cleanups and srvsvc implementation from HEAD.Tim Potter20-255/+222
(This used to be commit dbea592877ad12f270805a9d8a86a50985beaf66)
2003-02-18Check return code of string_to_sid. (Merge from HEAD)Martin Pool1-2/+8
(This used to be commit 606bb47f241d2916d039b38f48b50474a3e0dadc)
2003-02-18This commit was manufactured by cvs2svn to create branch 'SAMBA_3_0'.(This ↵cvs2svn Import User5-0/+349
used to be commit c31455779d7948e866fe1916425c3746134dea01)
2003-02-18Cleanup of header files for python extensions.Tim Potter25-261/+360
- combine py_foo_proto.h and py_foo.h - move #include of Python.h into one place so we can get rid of that annoying compiler warning about HAVE_FSTAT being redefined (This used to be commit 0659351b251aee438bb9e92682bc445f164923a5)
2003-02-18Check return code from string_to_sid.Martin Pool1-2/+8
(This used to be commit fe449328b226a33ad1c64e087fe63e79f90ab4ac)
2003-02-17Added SRVSVC pipe support. I've started implementing NetServerGetInfo()Tim Potter3-0/+217
(This used to be commit 8e0d781995b56dd1cd348baadd494bb8e64c10bc)
2003-01-17reverted this patch till I sort out the craziness with UNIHDRAndrew Tridgell2-2/+2
(This used to be commit e3d00fa47d38cd214f5e350e1d6b30d90ed8a52c)
2003-01-17This removes the 3rd argument from init_unistr2(). There were 240Andrew Tridgell2-2/+2
calls to init_unistr2() in the code and every one of them got the 3rd argument incorrect, so I thought it best just to remove the argument. The incorrect usage was caused by callers using strlen() to determine the length of the string. The 3rd argument to init_unistr2() was supposed to be the character length, not the byte length of the string, so for non-english this could come out wrong. I also removed the bogus 'always allocate at least 256 bytes' hack. There may be some code that relies on this, but if there is then the code is broken and needs fixing. (This used to be commit b9eff31b1433c81fbff733e194914a40f25e3bda)
2003-01-15Sync up compiler warning fixes.Tim Potter1-9/+9
(This used to be commit 225182a3a36c72b10643c9568e5cc1f80c0173f1)
2003-01-07Rename a local variable to avoid a warning.Tim Potter1-9/+9
(This used to be commit 232116d2db9f24d64b3fa7a6e11191599590107a)
2002-12-23Finish adding strings to all talloc_init() calls.Jeremy Allison6-13/+13
Jeremy. (This used to be commit aa8439a49ec4b9f433745fefa1e769e45398f4df)
2002-12-23Finish adding strings to all talloc_init() calls.Jeremy Allison6-13/+13
Jeremy. (This used to be commit 784d15761c3271bfd602866f8f9f880dac77671c)
2002-12-20Merge from HEAD:Tim Potter1-10/+15
>CR1333: Fix memory leak when unpacking some structures. > >* (pytdbunpack_item): PyList_Append creates an additional reference to > the appended object. Therefore, release the initial reference after > it's added to the list. (This used to be commit 36091157b24cfbd76c15ddc20681a1feeaa706db)
2002-12-12This commit was manufactured by cvs2svn to create branch 'SAMBA_3_0'.(This ↵cvs2svn Import User1-0/+2
used to be commit bdb5206b45a3e1360cc1a7e9f87299eeaa3c8d9c)
2002-12-12CR1333: Fix memory leak when unpacking some structures.Martin Pool1-10/+15
* (pytdbunpack_item): PyList_Append creates an additional reference to the appended object. Therefore, release the initial reference after it's added to the list. (This used to be commit 1e63dc101a5085a46b9632ba657e5d5cd7505751)
2002-12-12* Ignore .pyc and .pyo files produced as a side-effect of runningMartin Pool1-0/+2
Python examples. (This used to be commit 3bb4bd3ed642a61e54c44c40c31f0e2242977614)
2002-12-12Merge of compile tweaks for python tdbpack module.Tim Potter2-2/+2
(This used to be commit b50816b500c4be0dda2cc79e0927d8a7dab65fd2)
2002-12-11Some more tweaking for compilation of py_tdbpack.Tim Potter2-2/+2
(This used to be commit 89be695b2997e97dfc40afd17bb61b59b85634e4)
2002-12-05Merge from HEAD:Tim Potter2-10/+20
>FUNCTION_MACRO change broke the Python modules. > >Also fix up string pasting (I thought this should only be a warning?) (This used to be commit 5bd90f310aa6303a5c949b46591f9fcf82a175b8)
2002-12-04FUNCTION_MACRO change broke the Python modules.Tim Potter2-8/+18
Also fix up string pasting (I thought this should only be a warning?) (This used to be commit 739285ff694e9ffd317ad47aec373e2007c20f45)
2002-12-03use FILE_MACRO instead of __FILE__Herb Lewis1-6/+6
use FUNCTION_MACRO instead of __FUNCTION_ (This used to be commit 243763d6eb107ab2444d81025232c8fe795baaf1)
2002-11-29Merge a bunch of trivial changes from HEAD. The difference remainingTim Potter1-1/+1
should actual functional differences between HEAD and 3.0. - Mostly reformatting - Removal of unecessary #include "smb.h" - Merge of dyn_DRIVERFILE removal - Silly bug fix for python code (This used to be commit d3998307adc50ba50defe610cb656c73799ae3b9)
2002-11-29Fixed silly bug.Tim Potter1-1/+1
(This used to be commit 191c1596f5e939e733c9262c3beaf956328c7be6)
2002-11-29Another global_myname() fix from HEAD.Tim Potter1-2/+1
(This used to be commit 880083e2e614d88675f98a46cfe7acdaeb167db3)
2002-11-29Merge from HEAD:Tim Potter1-8/+17
>Added some extra code to test absence/presence of LM and NT passwords. (This used to be commit 89a2ee7e72fef444632659af13feaf94d3f6e9ce)