1
0
mirror of https://github.com/samba-team/samba.git synced 2025-07-27 07:42:04 +03:00
Commit Graph

351 Commits

Author SHA1 Message Date
85be4c5df3 r5968: derrell's large file fix for libsmbclient (BUG 2505) 2007-10-10 10:56:13 -05:00
74d872287b r5283: Merge -r5279 and-r5280 from trunk. 2007-10-10 10:55:36 -05:00
4d971806f4 r4238: More *alloc fixes.
Jeremy.
2007-10-10 10:53:39 -05:00
43a7f7db3d r3504: Fix incorrectly applied patch. My fault - sorry! 2007-10-10 10:53:08 -05:00
9c3cffaf22 r3228: Fix for bugzilla #1884 from Brett Funderburg. Use the value of
desired_access passed in to the lsa open policy routine.  Use a default
value that netapps and windows likes as well.
2007-10-10 10:53:03 -05:00
b157a1b7c3 r2828: Fix for bugzilla #1864 from Brett again.
Add sd->type field to security descriptor Python representation.
2007-10-10 10:52:54 -05:00
fa3e836564 r2823: Patch from Brett Funderburg to pass create options parameter to
nt_create_andx() function.
2007-10-10 10:52:54 -05:00
8ec28d613d r2736: Fix bug in Python printerdata wraper found by Daniel Jarboe. 2007-10-10 10:52:50 -05:00
7e44193be1 r1789: compiler warnings from SuSE 2007-10-10 10:52:20 -05:00
36741d3cf5 r1492: Rework our random number generation system.
On systems with /dev/urandom, this avoids a change to secrets.tdb for every fork().

For other systems, we now only re-seed after a fork, and on startup.
No need to do it per-operation.  This removes the 'need_reseed'
parameter from generate_random_buffer().

Andrew Bartlett
2007-10-10 10:52:13 -05:00
c6a18beafe r384: Relicense tdb python module in trunk and 3.0 branch as LGPL since the
license on tdb has changed.
2007-10-10 10:51:21 -05:00
a7e2730ec4 r39: * importing .cvsignore files
* updateing WHATSNEW with vl's change
2007-10-10 10:51:05 -05:00
98a25dcda8 Path for bugzilla #1152 from Timur Bakeyev. Allow python modules to
build despite libraries added to LDFLAGS instead of LDPATH.
-
a05b9f0cc5 Fix for writable printerdata problem - bugzilla #1112. -
f82c273a42 Fix for #480. Change the interface for init_unistr2 to not take a length
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.
-
28b315a750 Ensure that dup_sec_desc copies the 'type' field correctly. This caused
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.
-
331a69919c update python libraries for new cli_spoolss_getprinterdriver() call -
03a308afcd Tims' little fix. -
ca1c463360 Fix for bug 269. Change wbinfo and ntlm_auth to convert domain, username
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)
-
98cac74c67 More patches from Brett:
- 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)
-
6c33189e50 Fix memory leak in py_smb_set_setdesc()
Consistency fixups in py_smb_query_secdesc()

Thanks to Brett A. Funderburg for these patches.
-
879309671d Add a command line option (-S on|off|required) to enable signing on client
connections. Overrides smb.conf parameter if set.
Jeremy.
-
2a960963fb More memory leak fixes from Brett! It turns out PyDict_SetItemString
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).
-
3cb39ddee4 Memory leak fixes from Brett A. Funderburg - don't use the connection talloc
context for data that is only needed on a per-call basis.
-
2cedaff044 Add debug output api's from lsa/spoolss modules to smb module. Patch
from Brett A. Funderburg.
-
36052f95ff Fix two memory leaks in the smb module:
- free talloc context when cli_query_secdesc() fails

 - dispose of cli_state when python cli_state_object is garbage collected
-
cfb86b4503 Use lp_idmap_[ug]id() instead of lp_winbind_[ug]id() -
406956645f Delete outdated file. -
164ea38357 Fix for bug #60. Our autoconf code adds both libraries and linker
flags in the $LIBS make variable.  Separate the two so the python
extensions can build.
-
b6a7704888 merge in metze' smbcquotas patch from HEAD -
68075fb97f Merge create/delete domain user samr calls from HEAD. -
0308a0a112 Merge of compiler warning fixups. -
68b4052281 Merge of removal of py_samba.c -
fc0b2fcf97 Merge of #ifdef'ed out auth_smbd wrapper. -
c759392968 Merge of added locking functions from HEAD. -
3026a5ef15 Merge of some commentary for getprinter info levels supported by win2k+ -
55ee43cfb8 Merge: fix compiler warning. -
fa500c77e3 (Merge from APPLIANCE_HEAD)
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.)
-
dbea592877 Merge of cleanups and srvsvc implementation from HEAD. -
606bb47f24 Check return code of string_to_sid. (Merge from HEAD) -
c31455779d This commit was manufactured by cvs2svn to create branch 'SAMBA_3_0'. -
0659351b25 Cleanup of header files for python extensions.
- 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
-
fe449328b2 Check return code from string_to_sid. -
8e0d781995 Added SRVSVC pipe support. I've started implementing NetServerGetInfo() -
e3d00fa47d reverted this patch till I sort out the craziness with UNIHDR -
b9eff31b14 This removes the 3rd argument from init_unistr2(). There were 240
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.
-
225182a3a3 Sync up compiler warning fixes. -
232116d2db Rename a local variable to avoid a warning. -
aa8439a49e Finish adding strings to all talloc_init() calls.
Jeremy.
-
784d15761c Finish adding strings to all talloc_init() calls.
Jeremy.
-