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

361 Commits

Author SHA1 Message Date
Gerald Carter
cd961e50a3 r8654: merging cli_spoolss_XX() updates from trunk 2007-10-10 11:00:14 -05:00
Tim Potter
0a9395bb48 r8596: Don't wrap non-existent functions. Bugzilla #2895. 2007-10-10 11:00:12 -05:00
Jeremy Allison
84651aca04 r8564: Sometimes we're too dumb to live... Fix samr calls where we were
using USER_INFO_XX structs and functions where XX was sometimes
in hex and sometimes in decimal. Now it's all in decimal (should
be no functionality change).
Jeremy.
2007-10-10 11:00:09 -05:00
Günther Deschner
d31510d6c5 r8538: honour CC in python build.
Guenther
2007-10-10 11:00:07 -05:00
Lars Müller
22acd49368 r8435: Use OPENX_FILE_EXISTS_OPEN instead of FILE_EXISTS_OPEN. 2007-10-10 11:00:05 -05:00
Lars Müller
cd2c467cc4 r8431: Ensure to use dev_private and not private after Jeremy's CPP reserved
names rename.

Jerry: I'm not sure if we have to use the string 'dev_private' instead
of 'private' as second arg to PyDict_SetItemString().
2007-10-10 11:00:05 -05:00
Lars Müller
8cfa6873c2 r7960: Replace unknown SMB_XSTRDUP by known SMB_STRDUP macro.
I still don't know why the compile doesn't fail.
2007-10-10 10:58:04 -05:00
Jeremy Allison
9506b8e145 r7882: Looks like a large patch - but what it actually does is make Samba
safe for using our headers and linking with C++ modules. Stops us
from using C++ reserved keywords in our code.
Jeremy
2007-10-10 10:58:00 -05:00
Tim Potter
16ddf28122 r6739: Fix for segfault in samba.winbind.auth_crap module found by Ed Plese.
Closes bugzilla 2699.
2007-10-10 10:56:53 -05:00
Gerald Carter
f629bffb1a r6678: fix python python after talloc() shakeup 2007-10-10 10:56:50 -05:00
Gerald Carter
85be4c5df3 r5968: derrell's large file fix for libsmbclient (BUG 2505) 2007-10-10 10:56:13 -05:00
Tim Potter
74d872287b r5283: Merge -r5279 and-r5280 from trunk. 2007-10-10 10:55:36 -05:00
Jeremy Allison
4d971806f4 r4238: More *alloc fixes.
Jeremy.
2007-10-10 10:53:39 -05:00
Tim Potter
43a7f7db3d r3504: Fix incorrectly applied patch. My fault - sorry! 2007-10-10 10:53:08 -05:00
Tim Potter
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
Tim Potter
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
Tim Potter
fa3e836564 r2823: Patch from Brett Funderburg to pass create options parameter to
nt_create_andx() function.
2007-10-10 10:52:54 -05:00
Tim Potter
8ec28d613d r2736: Fix bug in Python printerdata wraper found by Daniel Jarboe. 2007-10-10 10:52:50 -05:00
Gerald Carter
7e44193be1 r1789: compiler warnings from SuSE 2007-10-10 10:52:20 -05:00
Andrew Bartlett
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
Tim Potter
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
Gerald Carter
a7e2730ec4 r39: * importing .cvsignore files
* updateing WHATSNEW with vl's change
2007-10-10 10:51:05 -05:00
Tim Potter
98a25dcda8 Path for bugzilla #1152 from Timur Bakeyev. Allow python modules to
build despite libraries added to LDFLAGS instead of LDPATH.
-
Tim Potter
a05b9f0cc5 Fix for writable printerdata problem - bugzilla #1112. -
Jeremy Allison
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.
-
Jeremy Allison
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.
-
Gerald Carter
331a69919c update python libraries for new cli_spoolss_getprinterdriver() call -
John Terpstra
03a308afcd Tims' little fix. -
Tim Potter
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)
-
Tim Potter
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)
-
Tim Potter
6c33189e50 Fix memory leak in py_smb_set_setdesc()
Consistency fixups in py_smb_query_secdesc()

Thanks to Brett A. Funderburg for these patches.
-
Jeremy Allison
879309671d Add a command line option (-S on|off|required) to enable signing on client
connections. Overrides smb.conf parameter if set.
Jeremy.
-
Tim Potter
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).
-
Tim Potter
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.
-
Tim Potter
2cedaff044 Add debug output api's from lsa/spoolss modules to smb module. Patch
from Brett A. Funderburg.
-
Tim Potter
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
-
Tim Potter
cfb86b4503 Use lp_idmap_[ug]id() instead of lp_winbind_[ug]id() -
Tim Potter
406956645f Delete outdated file. -
Tim Potter
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.
-
Gerald Carter
b6a7704888 merge in metze' smbcquotas patch from HEAD -
Tim Potter
68075fb97f Merge create/delete domain user samr calls from HEAD. -
Tim Potter
0308a0a112 Merge of compiler warning fixups. -
Tim Potter
68b4052281 Merge of removal of py_samba.c -
Tim Potter
fc0b2fcf97 Merge of #ifdef'ed out auth_smbd wrapper. -
Tim Potter
c759392968 Merge of added locking functions from HEAD. -
Tim Potter
3026a5ef15 Merge of some commentary for getprinter info levels supported by win2k+ -
Tim Potter
55ee43cfb8 Merge: fix compiler warning. -
Martin Pool
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.)
-
Tim Potter
dbea592877 Merge of cleanups and srvsvc implementation from HEAD. -
Martin Pool
606bb47f24 Check return code of string_to_sid. (Merge from HEAD) -