1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00
Commit Graph

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 2fd577d241)
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 a8ebb5c5bc)
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 9c0e50a6f3)
2007-10-10 12:58:54 -05:00
Stefan Metzmacher
8f85b3f771 r2442: remove unused event_loop_once() call
metze
(This used to be commit 3cd63030b1)
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 36bf2f3eaf)
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 2757c593ab)
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 5e2027f8ec)
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 2fa6ab9fe3)
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 f2fa7fe565)
2007-10-10 12:58:52 -05:00
Andrew Tridgell
421c0d2a18 r2435: got rid of another pointless strnequal()
(This used to be commit 1b4cee825e)
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 5fcad57128)
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 bb6bb2735e)
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 cef08d5789)
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 a1b5880b2e)
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 869b757bba)
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 1dc86e466d)
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 46b3d4cfd8)
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 086740c178)
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 a17aaadb7d)
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 bcee386055)
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 aaef6eaf6e)
2007-10-10 12:58:51 -05:00
Tim Potter
cb3cacdf40 r2423: Add some instructions for building extensions.
(This used to be commit 7a7cf9f352)
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 9ea5574bb1)
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 57edfd605b)
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 aa15fd1ecb)
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 e135265d1d)
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 36320c6941)
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 fc5443af9c)
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 0f58ffb142)
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 e1166c2100)
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 9bc55de42a)
2007-10-10 12:58:49 -05:00
Tim Potter
fba4af3a1b r2410: Add test for samr_SetSecurity().
(This used to be commit e822979e84)
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 810bce2fe5)
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 160dc90921)
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 fe60e899d7)
2007-10-10 12:58:49 -05:00
Andrew Tridgell
5fdf3a1c50 r2406: fixed a couple of typos
(This used to be commit 87a6c678fa)
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 a3fd9a911f)
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 40d5cae5eb)
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 a4dcf005f3)
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 69413bdcfc)
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 3a9ca35116)
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 e227ac1edf)
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 04aec4c0a3)
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 f88996540c)
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 47e613a5a1)
2007-10-10 12:58:47 -05:00
Andrew Tridgell
2432c783ca r2386: fixed some indentation
(This used to be commit 1de5aa5b1d)
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 bcf9d787d6)
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 7478f50c2f)
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 01d66f68f6)
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 7d3e347422)
2007-10-10 12:58:46 -05:00