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

282 Commits

Author SHA1 Message Date
Stefan Metzmacher
46762c9ee0 r2166: sync the asn1 stuff with trunk
metze
2007-10-10 12:58:28 -05:00
Andrew Tridgell
756f28ac95 r2159: converted samba4 over to UTF-16.
I had previously thought this was unnecessary, as windows doesn't use
standards compliant UTF-16, and for filesystem operations treats bytes
as UCS-2, but Bjoern Jacke has pointed out to me that this means we
don't correctly store extended UTF-16 characters as UTF-8 on
disk. This can be seen with (for example) the gothic characters with
codepoints above 64k.

This commit also adds a LOCAL-ICONV torture test that tests the first
1 million codepoints against the system iconv library, and tests 5
million random UTF-16LE buffers for identical error handling to the
system iconv library.

the lib/iconv.c changes need backporting to samba3
2007-10-10 12:58:27 -05:00
Stefan Metzmacher
bc4c188362 r2124: merge from trunk (-r 2123):
Argl. I could never get the naming right. Having the most significant byte at
the lowest memory address is big endian, at least according to the google
search for 'big endian'....

Volker
2007-10-10 12:58:26 -05:00
Stefan Metzmacher
79bee828fb r2122: merge from trunk (-r 2120):
Fix bug found by Love H?\195?\182rnquist ?\195?\133strand: asn1_write_Integer needs to push
stuff little endian.
2007-10-10 12:58:26 -05:00
Andrew Bartlett
e8d0246882 r2119: Noticed by jra:
Clean up use of unitilaised variable.

Andrew Bartlett
2007-10-10 12:58:26 -05:00
Andrew Tridgell
e0bda61112 r2102: fixed a race condition when handling dos errors that are in our
table. Should get rid of the static buffer completely at some point.
2007-10-10 12:58:25 -05:00
Andrew Tridgell
f5fd90848d r2101: fixed a signed/unsigned char warning 2007-10-10 12:58:25 -05:00
Andrew Bartlett
0237389ce7 r2099: Get rid of another private ARCFOUR implementation from the codebase.
Andrew Bartlett
2007-10-10 12:58:24 -05:00
Andrew Bartlett
e509451538 r2096: Enable use of NTLM2 for connections that do not got on to be NTLMSSP
signed or sealed.

This allows NTLM2 for SMB connections, and NTLMSSP over HTTP for example.

Andrew Bartlett
2007-10-10 12:58:24 -05:00
Günther Deschner
fe93f58dfe r2058: Merge heimdal krb5_locate_kdc-fix over from trunk/3_0 although
krb5_locate_kdc is (yet) an unused function in Samba4.

Guenther
2007-10-10 12:58:22 -05:00
Andrew Bartlett
2cbbf123d2 r2054: Fix compile warnings/build failures on non-gcc.
Andrew Bartlett
2007-10-10 12:58:21 -05:00
Andrew Bartlett
46864dd9d7 r2053: All RPC sessions 'want' a session key. Of course, the key they
currently get it bougs, but anyway...

Andrew Bartlett
2007-10-10 12:58:21 -05:00
Andrew Tridgell
e1575a72a1 r2042: missed a couple of places that should be talloc_free() 2007-10-10 12:58:19 -05:00
Andrew Bartlett
86f61568ea r2041: Fix NTLMSSP RPC sealing, client -> win2k3 server.
The bug (found by tridge) is that Win2k3 is being tighter about the
NTLMSSP flags.  If we don't negotiate sealing, we can't use it.

We now have a way to indicate to the GENSEC implementation mechanisms
what things we want for a connection.

Andrew Bartlett
2007-10-10 12:58:19 -05:00
Andrew Tridgell
f6dc62bf11 r2040: fixed a memory handling error in clisocket (caught with valgrind) 2007-10-10 12:58:19 -05:00
Andrew Tridgell
c0862278ca r2037: switched the asn.1 code to use talloc 2007-10-10 12:58:19 -05:00
Andrew Tridgell
a2ad77fb3a r2036: switched the spnego code to use talloc
now that talloc_free() doesn't need to take a context ptr, there is no
reason we can't use talloc everywhere that we currently use malloc().
2007-10-10 12:58:19 -05:00
Stefan Metzmacher
17268837d2 r2020: fix compiler warnings
metze
2007-10-10 12:58:18 -05:00
Stefan Metzmacher
699248fe82 r2019: fix compiler warnings
metze
2007-10-10 12:58:17 -05:00
Stefan Metzmacher
46d5ce350a r2004: remove unused file
metze
2007-10-10 12:58:16 -05:00
Andrew Bartlett
4294be4405 r1990: Fix breakage caused by the recent talloc changes. (Failure to process
an SPNEGO login from WinXP at least).

talloc_asprintf_append() lost an argument, but because TALLOC_CTX is
now a void*, this was not picked up by the compiler.

I've tested the login (asn1), but not the registry/gtk changes.

Andrew Bartlett
2007-10-10 12:58:15 -05:00
Andrew Tridgell
6ffdfd7799 r1985: take advantage of the new talloc in a few more places 2007-10-10 12:58:14 -05:00
Andrew Tridgell
03c341aca7 r1984: this change is what you should read to understand the new talloc()
It simplifies our structure handling a lot, making the code shorter
and easier to understand. Look at the diff carefully and see if you
can understand it. If you're still confused then please ask.
2007-10-10 12:58:14 -05:00
Andrew Tridgell
e35bb094c5 r1983: a completely new implementation of talloc
This version does the following:

  1) talloc_free(), talloc_realloc() and talloc_steal() lose their
     (redundent) first arguments

  2) you can use _any_ talloc pointer as a talloc context to allocate
     more memory. This allows you to create complex data structures
     where the top level structure is the logical parent of the next
     level down, and those are the parents of the level below
     that. Then destroy either the lot with a single talloc_free() or
     destroy any sub-part with a talloc_free() of that part

  3) you can name any pointer. Use talloc_named() which is just like
     talloc() but takes the printf style name argument as well as the
     parent context and the size.

The whole thing ends up being a very simple piece of code, although
some of the pointer walking gets hairy.

So far, I'm just using the new talloc() like the old one. The next
step is to actually take advantage of the new interface
properly. Expect some new commits soon that simplify some common
coding styles in samba4 by using the new talloc().
2007-10-10 12:58:14 -05:00
Simo Sorce
8be31e5c85 r1944: put ldif functions in a separate file 2007-10-10 12:58:13 -05:00
Andrew Tridgell
8925b8b219 r1941: - fixed an allocation error with querying security descriptors remotely
- print the received security_descriptor in the smbclient "acl" command

- make sure we zero the alignment data in nttrans packet sends
2007-10-10 12:58:12 -05:00
Stefan Metzmacher
0164cac6df r1910: this should not be a local var in this block
metze
2007-10-10 12:58:10 -05:00
Andrew Tridgell
2ce4028842 r1897: added a choose_called_name() function that allows us to more sanely
handle connections using the IP as the server name, while not trying
for NBT name resolution on names like "192" and "192.168.1.2".

also removed the ip address argument to smbcli_socket_connect() as it
isn't used and doesn't really make sense.
2007-10-10 12:58:09 -05:00
Andrew Tridgell
30ab38559e r1896: stricter check on packet parsing for NBT session replies 2007-10-10 12:58:09 -05:00
Andrew Tridgell
cd8887293e r1893: add a commented out lump of code to implement the "by the SPEC"
ALL_INFO queryfileinfo level. It is useful having it here as many
non-Microsoft servers implement it this way, which breaks just about
all the torture tests, so when testing against these broken systems
just change this one #if line and recompile smbtorture.
2007-10-10 12:58:08 -05:00
Volker Lendecke
7be7f25a57 r1886: Fix the build 2007-10-10 12:58:08 -05:00
Stefan Metzmacher
d3123c2e73 r1883: I don't know why this was broken...
tridge: can you please check if this is correct,
        I have only compiled it, but haven'T run it.

metze
2007-10-10 12:58:08 -05:00
Stefan Metzmacher
4c6c4d6bc8 r1881: empty structs are not allowed by all compilers
metze
2007-10-10 12:58:08 -05:00
Stefan Metzmacher
11c866d602 r1862: add invalid_creds ldap error
metze
2007-10-10 12:58:04 -05:00
Stefan Metzmacher
267edf1c0b r1856: - move asn1 functions to asn1.c
- merge some stuff from trunk

metze
2007-10-10 12:58:02 -05:00
Stefan Metzmacher
01626ed381 r1851: if we try to peek a subtag, check if the parent tag has remaining data
metze
2007-10-10 12:58:02 -05:00
Andrew Tridgell
cef94978f4 r1824: nicer handling of NBT session replies, and handling of bad packets
with the async SMB code
2007-10-10 12:58:00 -05:00
Andrew Tridgell
e53d32c65a r1819: changed "smb ports" to be a LIST parameter type in loadparm (its a classic case for a list) 2007-10-10 12:57:59 -05:00
Stefan Metzmacher
a2cd725681 r1805: ...I just forgot to say that the sasl bind actually works now:-)
metze
2007-10-10 12:57:58 -05:00
Stefan Metzmacher
d0278c6bef r1804: get a bit closer to a sasl bind
metze
2007-10-10 12:57:58 -05:00
Stefan Metzmacher
f6c4420107 r1803: more progress on sasl binds, but decoding the response still fails
metze
2007-10-10 12:57:58 -05:00
Simo Sorce
10baf58582 r1802: start to support SASL in our ldap libraries
does not work yet but we are close currently we send the right data
on wire and fail to decode the answer
2007-10-10 12:57:58 -05:00
Stefan Metzmacher
a1bfc94ab3 r1798: fix the build
metze
2007-10-10 12:57:58 -05:00
Andrew Bartlett
cb74d52b56 r1796: Enable server-side SPNEGO, now that I have fixed the server-side SMB
signing code to be able to cope.

Andrew Bartlett
2007-10-10 12:57:57 -05:00
Stefan Metzmacher
fe655d0474 r1794: fix the build MIT krb5
metze
2007-10-10 12:57:57 -05:00
Simo Sorce
d9f8f97c9e r1792: split ldap_setup_connection() and provide an ldap_bind_simple() function 2007-10-10 12:57:57 -05:00
Stefan Metzmacher
5a3a10c004 r1790: a few updates on krb5 PAC...
metze
2007-10-10 12:57:56 -05:00
Simo Sorce
44083e3178 r1785: remove unneeded dependencies on openldap client libraries 2007-10-10 12:57:56 -05:00
Stefan Metzmacher
250485b69f r1784: a few minor changes and debug the decoded PAC_DATA
metze
2007-10-10 12:57:56 -05:00
Simo Sorce
e6a6c0737a r1771: OK Let's add tests for ldap.
Thanks to Metze and Volker for their unvaluable support :)
2007-10-10 12:57:56 -05:00