1
0
mirror of https://github.com/samba-team/samba.git synced 2025-10-22 07:33:16 +03:00
Commit Graph

1893 Commits

Author SHA1 Message Date
Andrew Tridgell
8d455a6f09 r2562: got rid of the "reference" backend that never happened - the code is
too stale to be of any use as a reference.
2007-10-10 12:59:06 -05:00
Andrew Tridgell
f84c0af35c r2561: completely redid the ntvfs module chaining code, You can now do something like:
ntvfs handler = nbench posix

and the nbench pass-thru module will be called before the posix
module. The chaining logic is now much saner, and less racy, with each
level in the chain getting its own private pointer rather than relying
on save/restore logic in the pass-thru module.

The only pass-thru module we have at the moment is the nbench one
(which records all traffic in a nbench compatibe format), but I plan
on soon writing a "unixuid" pass-thru module that will implement the
setegid()/setgroups()/seteuid() logic for standard posix uid
handling. This separation of the posix backend from the uid handling
should simplify the code, and make development easier.

I also modified the nbench module so it can do multiple chaining, so
if you want to you can do:

   ntvfs module = nbench nbench posix

and it will save 2 copies of the log file in /tmp. This is really only
useful for testing at the moment until we have more than one pass-thru
module.
2007-10-10 12:59:06 -05:00
Tim Potter
3170f6ed84 r2560: Don't require structure fields that have the pidl value() property
to be set.  They can be if you want, but will be overwritten by the
pidl push code.
2007-10-10 12:59:06 -05:00
Tim Potter
e9eb231d64 r2559: Python ints can't hold the full range of uint32 values so store them
as Python longs.

Also allow shorter width integer types to be initialised from long values.
Their values are truncated if they are too long.
2007-10-10 12:59:06 -05:00
Andrew Tridgell
03c38477ad r2556: fixed the -s one bug that jelmer pointed out 2007-10-10 12:59:06 -05:00
Tim Potter
c9d6827312 r2555: Start of a rpcclient type program. 2007-10-10 12:59:05 -05:00
Andrew Tridgell
74d7bc1948 r2554: added a test for a bug that jelmer pointed out (handling of -s one) 2007-10-10 12:59:05 -05:00
Andrew Tridgell
9f230425a0 r2553: fixed ldbtest so it passes the ldap schema restrictions and thus can be used on the ldap backend 2007-10-10 12:59:05 -05:00
Andrew Bartlett
dfecb01506 r2552: Character set conversion and string handling updates.
The intial motivation for this commit was to merge in some of the
bugfixes present in Samba3's chrcnv and string handling code into
Samba4.  However, along the way I found a lot of unused functions, and
decided to do a bit more...

The strlen_m code now does not use a fixed buffer, but more work is
needed to finish off other functions in str_util.c.  These fixed
length buffers hav caused very nasty, hard to chase down bugs at some
sites.

The strupper_m() function has a strupper_talloc() to replace it (we
need to go around and fix more uses, but it's a start).  Use of these
new functions will avoid bugs where the upper or lowercase version of
a string is a different length.

I have removed the push_*_allocate functions, which are replaced by
calls to push_*_talloc.  Likewise, pstring and other 'fixed length'
wrappers are removed, where possible.

I have removed the first ('base pointer') argument, used by push_ucs2,
as the Samba4 way of doing things ensures that this is always on an
even boundary anyway.  (It was used in only one place, in any case).
2007-10-10 12:59:05 -05:00
Andrew Bartlett
066789a479 r2551: Add const.
Andrew Bartlett
2007-10-10 12:59:05 -05:00
Andrew Bartlett
a132082249 r2550: survive our own BASE-NEGNOWAIT torture test.
Andrew Bartlett
2007-10-10 12:59:05 -05:00
Andrew Bartlett
4904d814c0 r2547: Another place to use convert_string_talloc().
Andrew Bartlett
2007-10-10 12:59:05 -05:00
Andrew Bartlett
5c5b45c1a8 r2546: Remove another strupper_m() that we don't need.
Andrew Bartlett
2007-10-10 12:59:04 -05:00
Andrew Bartlett
5eaa4c9748 r2545: str_charnum -> strlen_m.
These two functions do exactly the same thing, I'll be removing
str_charnum shortly.

Andrew Bartlett
2007-10-10 12:59:04 -05:00
Andrew Bartlett
2e197f05ff r2544: (missed from the last commit)
smb_conn->socket has gone away, and the packet count is now in the
main structure.

Andrew Bartlett
2007-10-10 12:59:04 -05:00
Andrew Bartlett
d483d88674 r2543: Catch one more use of sub_get_remote_machine().
Andrew Bartlett
2007-10-10 12:59:04 -05:00
Andrew Bartlett
d8fd19a202 r2542: I really don't like the 'substitute' code, and I particularly don't
like it in the mainline code (outside the smb.conf magic).

We will need to have a more useful 'helper' routine for this, but for
now we at least get a reliable IP address.

Also remove the unused 'socket' structure in the smb server - it seems
to have been replaced by the socket library.

Andrew Bartlett
2007-10-10 12:59:04 -05:00
Andrew Bartlett
cd2f97530b r2541: Add a TODO: This is one place we can grab the remote netbios name.
Andrew Bartlett
2007-10-10 12:59:04 -05:00
Jelmer Vernooij
0fb0530389 r2538: Support IPv6 as transport for MSRPC. Tested against Win2k3
Implemented using the POSIX getaddrinfo() call (specified by POSIX 1003.1-2003 and 2553)
I'm not sure how portable this function is, so we might have to add a sys_getaddrinfo() later on.
2007-10-10 12:59:04 -05:00
Andrew Bartlett
f3bf57ca6b r2537: Add static and use strlen_m instead of str_charnum().
Andrew Bartlett
2007-10-10 12:59:04 -05:00
Andrew Bartlett
79776006b3 r2536: This is a classic case for the use of our new talloc code, and
convert_string_talloc().

Andrew Bartlett
2007-10-10 12:59:03 -05:00
Andrew Bartlett
0e081ecb9d r2535: Make certain, that even if we have invalid ASN.1 here, and the caller does not check the return value, that we don't return uninitialised memory here.
Andrew Bartlett
2007-10-10 12:59:03 -05:00
Andrew Bartlett
69163500e0 r2534: Change NTLMSSP parsing to avoid a seperate str_chrnum() call - storing
away the string as a data blob to be put in the buffers later.

This also avoids a length-limited push_str, moving to push_ucs2_talloc().

Andrew Bartlett
2007-10-10 12:59:03 -05:00
Jelmer Vernooij
c98fbfe250 r2532: Don't run EnumValue torture test for now (idl needs fixing, doesn't compile) 2007-10-10 12:59:02 -05:00
Jelmer Vernooij
80294f799f r2531: Fix crashbug 2007-10-10 12:59:02 -05:00
Jelmer Vernooij
eb3f65c6e9 r2530: Don't put main in proto.h 2007-10-10 12:59:02 -05:00
Stefan Metzmacher
6fc904a71c r2527: - add a dummy for a simple ldb backend
- handle the complete rootDSE search (maybe this will be also a partition module)

metze
2007-10-10 12:59:02 -05:00
Stefan Metzmacher
e2fe685849 r2526: use LDAP error 53 (unwillingToPerform)
when the backend didn't implement the call

metze
2007-10-10 12:59:02 -05:00
Stefan Metzmacher
f9dc34cd0b r2525: fix a search response when the backend didn't support Search
we return LDAP error 32 (noSuchObject) now instead of a protocol error

metze
2007-10-10 12:59:02 -05:00
Andrew Tridgell
98c1c75076 r2524: a simple pvfs rename implementation to make testing easier 2007-10-10 12:59:02 -05:00
Stefan Metzmacher
5103e7fe78 r2523: - readd rootDSE reply
- add infrastructure start for having multiple directory partitions (backends)

metze
2007-10-10 12:59:02 -05:00
Andrew Tridgell
04f68f481c r2521: fixed two uninitialised data errors found with valgrind when
negotiating a old style session setup (eg. LANMAN1)
2007-10-10 12:59:01 -05:00
Andrew Tridgell
4e4859c06b r2520: - finished implementing the server side of the old style search requests 2007-10-10 12:59:01 -05:00
Jelmer Vernooij
00de28876d r2519: Registry RPC pipe fixes (use struct registry_key instead of REG_KEY, etc) 2007-10-10 12:59:01 -05:00
Jelmer Vernooij
2762ed3b9b r2518: Some long overdue changes:
- Samba4-style code in lib/registry (struct registry_key instead of REG_KEY, etc)
 - Use hives (like Windows has drives) instead of one root key (like a Unix FS)
 - usability fixes in the GTK utilities (autodetect the username,
	enable/disable options, etc)
 - fix gwsam compile
 - several bugfixes in the registry rpc code
 - do charset conversion in nt4 registry backend
2007-10-10 12:59:01 -05:00
Tim Potter
dff6262e4f r2516: Remove duplicate line. 2007-10-10 12:59:01 -05:00
Andrew Bartlett
131420b45e r2515: Fixes from smbtorture - these session keys are not individually encrypted.
Andrew Bartlett
2007-10-10 12:59:01 -05:00
Andrew Bartlett
fd10c9dd53 r2514: Remove unused funcions, and add static.
Andrew Bartlett
2007-10-10 12:59:01 -05:00
Andrew Bartlett
77d7c76c9b r2513: Avoid strupper/strlower when you can. This developers module
certainly doesn't need it.

Andrew Bartlett
2007-10-10 12:59:00 -05:00
Andrew Bartlett
f543de80b1 r2512: Remove unused stub functions.
Andrew Bartlett
2007-10-10 12:59:00 -05:00
Tim Potter
471b13da2b r2511: Add NT status codes. 2007-10-10 12:59:00 -05:00
Jelmer Vernooij
7c31998da1 r2510: Make C++ compilers happy, use ifdef instead of if 2007-10-10 12:59:00 -05:00
Stefan Metzmacher
dc1f8212ff r2509: add a struct ldapsrv_call which is simular to the dcesrv_call_state struct
and related stuff...

metze
2007-10-10 12:59:00 -05:00
Stefan Metzmacher
e942f414c5 r2508: - implemented ldap_decode() for UnbindRequest and ExtendedRequest
- fail when we got a wrong tag in ldap_decode()

metze
2007-10-10 12:59:00 -05:00
Andrew Bartlett
59e361f7cc r2507: Allow a case-insensitive lookup when converting strings into NTSTATUS
values.

Andrew Bartlett
2007-10-10 12:59:00 -05:00
Andrew Bartlett
1640272dc3 r2506: Add more printf attributes for format checking.
Andrew Bartlett
2007-10-10 12:58:59 -05:00
Andrew Bartlett
139cc702ac r2505: Remove unused function. If/when we implement plaintext authenticaton
in Samba4, I want to redo this.

Andrew Bartlett
2007-10-10 12:58:59 -05:00
Andrew Bartlett
543401990a r2504: Add printf attribute, for format argument checking.
Andrew Bartlett
2007-10-10 12:58:59 -05:00
Andrew Tridgell
9710f24b1f r2503: the RAW-SEARCH test now mostly passes against the posix backend 2007-10-10 12:58:59 -05:00
Tim Potter
808e0708a9 r2502: Finish off samr torture test: samr_CreateUser2, samr_SetUserInfo,
samr_QueryAliasInfo, samr_SetAliasInfo, samr_AddMemberToAlias,
samr_AddMultipleMembersToAlias, samr_QueryDisplayInfo,
samr_QueryDisplayInfo2, samr_QueryDisplayInfo3,
samr_GetDisplayEnumerationIndex, samr_GetDisplayEnumerationIndex2,
samr_TestPrivateFunctionsDomain, samr_RidToSid,
samr_GetBootKeyInformation, samr_DeleteUser, samr_DeleteAlias,
samr_Close.
2007-10-10 12:58:59 -05:00