1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-26 10:04:02 +03:00

1832 Commits

Author SHA1 Message Date
Stefan Metzmacher
7d06a06584 r2447: let the server code use the new lib/socket/ stuff
metze
(This used to be commit 2fd577d2417e117a7e8c1a56feb147eae805df34)
2007-10-10 12:58:54 -05:00
Stefan Metzmacher
e8d2442517 r2446: implement socket_get_<peer|my>_<addr|port>() for ipv4
metze
(This used to be commit a8ebb5c5bc6a8651867b46e87cf223cddf444e89)
2007-10-10 12:58:54 -05:00
Stefan Metzmacher
6b9b169c27 r2443: check return code of event_loop_once() to catch thet cases where the server
closes the connetion and we got EBADF from select() and event_loop_once() fails

metze
(This used to be commit 9c0e50a6f3d628156b4543d5ded89e06be696f64)
2007-10-10 12:58:54 -05:00
Stefan Metzmacher
8f85b3f771 r2442: remove unused event_loop_once() call
metze
(This used to be commit 3cd63030b1433ddc3ae89e2f45c6f7a27b7d1756)
2007-10-10 12:58:53 -05:00
Stefan Metzmacher
61ef245372 r2441: set exit code correct when we got EBADF from select()
metze
(This used to be commit 36bf2f3eaf2e7568563cd98dc941d20f4574d271)
2007-10-10 12:58:53 -05:00
Stefan Metzmacher
be61c9d877 r2439: - function that return just an int don't need a TALLOC_CTX
- fix some return and state bugs

metze
(This used to be commit 2757c593ab746b9dd7090f2cf5fcc31686adf67f)
2007-10-10 12:58:53 -05:00
Andrew Tridgell
635f5fa942 r2438: compile on systems without O_DIRECTORY (probably won't work, but I'll get to that later)
(This used to be commit 5e2027f8ec7248e48d1dfb94c3688c78c64a85c5)
2007-10-10 12:58:53 -05:00
Andrew Tridgell
f2815e8412 r2437: implemented a suggestion from abartlet that if we cannot convert
strings to UTF16 in StrCaseCmp() that we fall back to a simpler
comparison.
(This used to be commit 2fa6ab9fe30aeacd7b1421fd83c409acf31c98aa)
2007-10-10 12:58:53 -05:00
Andrew Tridgell
8a1c3ddd94 r2436: the second big lump of posix vfs code.
this is still just a skeleton, and many of the functions are just
based on the simple vfs backend, they are there to allow me to run
smbtorture tests against the real parts of the posix backend.
(This used to be commit f2fa7fe565e89360dba3bb5434d3a6a36f398348)
2007-10-10 12:58:52 -05:00
Andrew Tridgell
421c0d2a18 r2435: got rid of another pointless strnequal()
(This used to be commit 1b4cee825e6e3d3710eda15cc25cdf6450feec17)
2007-10-10 12:58:52 -05:00
Andrew Tridgell
677d1bc487 r2434: separate "attrib" and "ex_attrib" elements for DOS attributes is pointless
(This used to be commit 5fcad57128e47d4d6c0f387d5563d9de2fc08351)
2007-10-10 12:58:52 -05:00
Andrew Tridgell
f94de51a4e r2433: attrib_string() is now a generally available library function (it will be used by the new RAW-SEARCH test)
(This used to be commit bb6bb2735eef58a135ba5cc3d64d75588a505d66)
2007-10-10 12:58:52 -05:00
Andrew Tridgell
defe32e9f4 r2432: more string function updates.
btw, the reason I want to use strncasecmp() instead of StrnCaseCmp()
is that the Samba internal functions are built to deal with
multi-byte, whereas in the cases I am converting we know we are
dealing with solely ascii string constants, so going via the slow
conversion libraries is pointless.
(This used to be commit cef08d5789277bdaa25d5bf0e7cfca8615230f1b)
2007-10-10 12:58:52 -05:00
Andrew Tridgell
44090f273c r2431: got rid of strnequal() in a couple of places
(This used to be commit a1b5880b2e548832eaf4a136aab1aead525c938f)
2007-10-10 12:58:52 -05:00
Andrew Tridgell
9c69372fb2 r2430: got rid of StrnCaseCmp and added an accelerated version of StrCaseCmp()
for places where known ascii strings are being compared we should just
use strncasecmp() and other standard library functions (with
replacements via lib/replace.c if needed)
(This used to be commit 869b757bba729c9ecd720e3956958efc7541f353)
2007-10-10 12:58:51 -05:00
Tim Potter
67cb7c9451 r2429: Add tests for samr_QueryUserInfo(), samr_QueryUserInfo2(),
samr_GetUserPwInfo(), samr_TestPrivateFunctionsUser().  Add stubs for
the rest of the functions in test_OpenDomain() from smbtorture.
(This used to be commit 1dc86e466dc546a5509fe5195444e48dc026e9a1)
2007-10-10 12:58:51 -05:00
Tim Potter
44838763e2 r2428: Handle unions as [out] parameters by passing the value of the switch_is
parameter down to the various conversion functions.
(This used to be commit 46b3d4cfd8effcc75293b8b0af04203fa25742b2)
2007-10-10 12:58:51 -05:00
Tim Potter
b653d8775a r2427: Add tests for samr_GetDomPwInfo, samr_RemoveMemberFromForeignDomain,
samr_LookupName, samr_OpenUser, samr_DeleteUser, samr_CreateUse and
samr_OpenDomain.
(This used to be commit 086740c178c80ccb8d8eaff9f97007cb021bca20)
2007-10-10 12:58:51 -05:00
Tim Potter
d072e9e2ca r2426: Handle pointer to scalars converting C to Python.
Peeked at parser.pm for some hints at getting array lengths right
when the length_is property is present.
(This used to be commit a17aaadb7d57dbe4cf0a62634f405c61b79a953f)
2007-10-10 12:58:51 -05:00
Tim Potter
f41310583f r2425: Found another place for a type check. When convert a dictionary value
to an array, check that the value exists and it is of list type.

Fix a typo.
(This used to be commit bcee3860554260bca2bbb6fd73d8770a4997c041)
2007-10-10 12:58:51 -05:00
Tim Potter
6d82eaa7e9 r2424: Refactor handling of non-OK NTSTATUS returns to be more swiggish.
(This used to be commit aaef6eaf6e0c38fb277d1be0617dfdff559a0115)
2007-10-10 12:58:51 -05:00
Tim Potter
cb3cacdf40 r2423: Add some instructions for building extensions.
(This used to be commit 7a7cf9f3521535da47895d1a516c8572f7f34e40)
2007-10-10 12:58:51 -05:00
Tim Potter
20f39507c5 r2422: Convert PyDict_{Get,Set}Item() calls to PyDict_{Get,Set}ItemString().
(This used to be commit 9ea5574bb12161733afb592425724cff8c4bbedd)
2007-10-10 12:58:50 -05:00
Tim Potter
fa8c1abcc8 r2421: Fix test for lookupdomain for a non-existent domain.
Export NTSTATUS exception from wrapper module so it can be used by scripts.
(This used to be commit 57edfd605bffcf8a0feb5ccc5ec69cf5f35b677b)
2007-10-10 12:58:50 -05:00
Tim Potter
6feaf61b61 r2419: Write tests for samr_EnumDomains() and samr_LookupDomain().
(This used to be commit aa15fd1ecba2163a077f398cecfb49d71a49cc9d)
2007-10-10 12:58:50 -05:00
Tim Potter
9261314a9d r2418: Handle a pointer to a scalar when converting a field from Python.
Handle a pointer to an array of structures when converting to Python.
(This used to be commit e135265d1d91ff9a6a4e7ec0079ecd88f0afe784)
2007-10-10 12:58:50 -05:00
Tim Potter
ce52465165 r2417: Add comments to the interface generator as well as some commentary in
the generated interface code.

Get rid of global variables within the perl generator code.
(This used to be commit 36320c694162a58665ace10576ad18c13a7850fe)
2007-10-10 12:58:50 -05:00
Tim Potter
6bc08531b2 r2416: More argument checks. Raise an exception instead of segfaulting if a
dictionary does not contain a required key.
(This used to be commit fc5443af9c271baf189ebe0b098e190b5eda4e14)
2007-10-10 12:58:50 -05:00
Tim Potter
d384984e35 r2415: Throw a TypeError exception if a scalar value doesn't have the correct
type, or the argument to a to_python function isn't a dictionary.
(This used to be commit 0f58ffb142a9b8c5c745b3a2c93a1659ea8282e5)
2007-10-10 12:58:50 -05:00
Tim Potter
a50931e728 r2414: samr_Connect.system_name is now an array.
(This used to be commit e1166c210004b090c5922b2f9b10b86ebc3fc11d)
2007-10-10 12:58:50 -05:00
Tim Potter
370dad0fbf r2411: The other half of getting autogenerated code working using misc.idl:
use Python lists for arrays when marshaling and unmarshaling arrays.
This gets samr_SetSecurity() working.
(This used to be commit 9bc55de42ab9f0d71abcea65a7f4cf24db452381)
2007-10-10 12:58:49 -05:00
Tim Potter
fba4af3a1b r2410: Add test for samr_SetSecurity().
(This used to be commit e822979e84d33015c937e22174288a3f2c2ff04b)
2007-10-10 12:58:49 -05:00
Tim Potter
6d00d88f94 r2409: Convert NULL pointers to Py_None, and vice versa.
This gets samr_QuerySecurity() working again.
(This used to be commit 810bce2fe517969e62d87497bbe4ae645badfdf6)
2007-10-10 12:58:49 -05:00
Tim Potter
b02b2fa347 r2408: Tridge suggested that all the structures from misc.idl (policy handles,
sids, security descriptors and acls) can be automatically generated
instead of hand-written.  Fix up the swig wrapper generator and helper
routines to do this.  (Only works for policy handles right now though and
arrays are to be converted into lists instead of being binary blobs).

Fix up wrapper generation for modules that don't define an interface
(e.g misc.idl).
(This used to be commit 160dc90921ecc136a25ae88e5c28800ddda5722a)
2007-10-10 12:58:49 -05:00
Andrew Tridgell
4a6313a543 r2407: extend mkproto.pl to handle smb_ucs2_t for toupper_w()
(This used to be commit fe60e899d71b18ee1cd6e2e05cf1ac0fa3a043bd)
2007-10-10 12:58:49 -05:00
Andrew Tridgell
5fdf3a1c50 r2406: fixed a couple of typos
(This used to be commit 87a6c678fac0b5e740a9a739ef1ad113f2b508fd)
2007-10-10 12:58:49 -05:00
Andrew Tridgell
c997a90183 r2405: expose unix_perms_to_wire() for use by the posix backend, in supporting the UNIX extensions
(This used to be commit a3fd9a911f8852372a57146cde04971263fac7c9)
2007-10-10 12:58:49 -05:00
Andrew Tridgell
03cb4367d6 r2404: the first large lump of posix vfs stuff.
this is still very much a skeleton (with many limbs missing too!). I
am committing this early to get some feedback on the approach taken.
(This used to be commit 40d5cae5ebbfe328e193eadb685df6a370730299)
2007-10-10 12:58:48 -05:00
Andrew Tridgell
046380c56c r2403: got rid of a unnecessary mem_ctx in the simple backend
(This used to be commit a4dcf005f30afcb2edd57d450ff9b90341c318a2)
2007-10-10 12:58:48 -05:00
Andrew Tridgell
f25681b120 r2402: to make ms_fnmatch() case-insensitive we need toupper_w() exposed
(This used to be commit 69413bdcfcf40e9ae2e5bcb00863cc7ef0ee8da1)
2007-10-10 12:58:48 -05:00
Stefan Metzmacher
9041c3560f r2401: make our LDAP server useable:
- we need to mark the fd event as writable otherwise we'll never senda packet to the client
- a search response have to ended by a LDAP result message
- return currentTime, supportedLDAPVersion and dnsHostName for testing

ldap -x -s base -h ldap://localhost/ is now works against our LDAP server

metze
(This used to be commit 3a9ca351166cf56de878e4408e221df299271c32)
2007-10-10 12:58:48 -05:00
Andrew Tridgell
b3da2c10e2 r2400: make ms_fnmatch() case insensitive. This is much more efficient than
uppercasing the two whole strings before the call is made, is less
error-prone, and also copes with strings where the upper case version
is longer than the lower case version due to different multi-byte lengths.
(This used to be commit e227ac1edfd48596a9d5096b6965ddd0beb969a5)
2007-10-10 12:58:48 -05:00
Tim Potter
a502c85fb1 r2399: Display text description of rpc fault in debug message.
(This used to be commit 04aec4c0a3f559f6a9ccfaf990f3a2ff2e6f48df)
2007-10-10 12:58:48 -05:00
Tim Potter
2fe1144f34 r2398: Import Data::Dumper module safely so it doesn't hurt the build farm.
(This used to be commit f88996540cfecf830595425735d2f1d4ad623c3d)
2007-10-10 12:58:47 -05:00
Stefan Metzmacher
7b65585eed r2387: fix segfault
seems that [in,out,ref] vars should be initialize
the [in] and [out] part

metze
(This used to be commit 47e613a5a1063d8e93e831252db03f19cdb08590)
2007-10-10 12:58:47 -05:00
Andrew Tridgell
2432c783ca r2386: fixed some indentation
(This used to be commit 1de5aa5b1d6a9b4b3ed18935c562b0bf03a4d94e)
2007-10-10 12:58:47 -05:00
Andrew Tridgell
9115d6cb97 r2385: the gensec:krb5 test is not needed here any more, as we do it in the registration code
(This used to be commit bcf9d787d6bced4c4482fa3e51ccea258563d89e)
2007-10-10 12:58:47 -05:00
Andrew Tridgell
ae1c28b922 r2384: i missed "nt status support" in my change to the new globals init code
(This used to be commit 7478f50c2f5c011a1eec04be06f9ecdc48e85f17)
2007-10-10 12:58:47 -05:00
Andrew Tridgell
8b7a6df180 r2383: fixed the handling of sending zero length dcerpc packets (I broke this
recently, and this broke the autoidl code)
(This used to be commit 01d66f68f6b21dc9b5c0702edcd4f56daeae9b9d)
2007-10-10 12:58:47 -05:00
Andrew Tridgell
df2ed66bb0 r2382: considerably improved the Bind and Unbind IDL and test code. We can
now do these two calls successfully against w2k3.

note that you must use ncacn_ip_tcp, and must enable dcerpc sealing,
otherwise w2k3 refuses the first DRSUAPI call.
(This used to be commit 7d3e34742277f264e41739721dbf08036eebb598)
2007-10-10 12:58:46 -05:00