1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-27 14:04:05 +03:00

1583 Commits

Author SHA1 Message Date
Andrew Tridgell
f6dc62bf11 r2040: fixed a memory handling error in clisocket (caught with valgrind) 2007-10-10 12:58:19 -05:00
Andrew Tridgell
957b260621 r2039: got rid of the free() ptr in DATA_BLOB
I plan on replacing the concept by adding a generic destructor in all talloc ptrs, so you can do:

  talloc_set_destructor(ptr, my_destructor);

to setup a function that will be called on free.
2007-10-10 12:58:19 -05:00
Andrew Tridgell
5894b5c0f3 r2038: get rid of the optimisation in the dcerpc server that tries to avoid a
data copy by playing internal games with DATA_BLOB and free().
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
Andrew Bartlett
4e2c5a5fb3 r2035: Fix spelling.
Andrew Bartlett
2007-10-10 12:58:19 -05:00
Jeremy Allison
b43320ee5c r2034: Allow user-selectable hash functions on open only.
Jeremy.
2007-10-10 12:58:18 -05:00
Andrew Tridgell
eddb31d196 r2031: add a check for a blank secret return in lsa secret tests 2007-10-10 12:58:18 -05:00
Andrew Tridgell
efecc3306e r2030: quick hack to allow the simple NTVFS backend to handler base directories with mixed case names 2007-10-10 12:58:18 -05:00
Andrew Tridgell
271831f97f r2029: changed our client side dcerpc padding to match what w2k3 does - a 16
byte padding of the payload portion of the packet.
2007-10-10 12:58:18 -05:00
Stefan Metzmacher
d31405ff2f r2021: add password change fallback to SetUserInfo level 25,24,23
metze
2007-10-10 12:58:18 -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
eb75d9323f r2017: fix compiler warnings
metze
2007-10-10 12:58:17 -05:00
Stefan Metzmacher
479f681694 r2012: --enable-developer also sets debug=yes now
and we how set the CFLAGS="-g -Wall" and the rest only
if the compiler supports it.

CFLAGS is now not empty when we call PROG_CC
so there won't be a "-O2" in the final CFLAGS

metze
2007-10-10 12:58:17 -05:00
Stefan Metzmacher
424af1a9df r2011: remove this broken and never reached test
as PROG_CC will set CFLAGS to the default ones

normaly "-g -O2"

metze
2007-10-10 12:58:17 -05:00
Stefan Metzmacher
ffbfc41033 r2010: trigger the config.smb_build.dump output by --enable-*developer not --enable-debug
metze
2007-10-10 12:58:17 -05:00
Stefan Metzmacher
71992c90cc r2005: 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 Tridgell
126fec6169 r2003: got rid of next_token_nr(), which involved some horrible globals
and nasy pointer tricks.

this involved fixing some of the internals of smbclient
2007-10-10 12:58:16 -05:00
Stefan Metzmacher
5d5b651739 r2000: remove unused var
metze
2007-10-10 12:58:16 -05:00
Stefan Metzmacher
8c9c702bc3 r1999: fix compiler warning
metze
2007-10-10 12:58:16 -05:00
Stefan Metzmacher
bf06f476db r1998: fix compiler warning
metze
2007-10-10 12:58:16 -05:00
Stefan Metzmacher
eb9de893b8 r1997: fix compiler warning
metze
2007-10-10 12:58:16 -05:00
Stefan Metzmacher
dd8d68f3ec r1996: fix compiler warnings
metze
2007-10-10 12:58:16 -05:00
Stefan Metzmacher
80f27766cb r1995: a ndrdump file from abartlet make it clear that this isn't a pointer
to a uint32, there're two uint32 with 0x00000000

metze
2007-10-10 12:58:16 -05:00
Stefan Metzmacher
a3a4b9c9ea r1994: fix compiler warning
metze
2007-10-10 12:58:15 -05:00
Andrew Bartlett
486215edc1 r1993: Allow WinXP domain logon to progress a bit further (it seems broken for me).
Fix indent, and add a few more useful debug messages.

Send a fault, if the bind is not accepted - don't just leave the client hanging.

Andrew Bartlett
2007-10-10 12:58:15 -05:00
Andrew Bartlett
a8e76085a7 r1992: Make the NTLMSSP torture test show more detail, and return failure etc.
Andrew Bartlett
2007-10-10 12:58:15 -05:00
Andrew Bartlett
b2d93d0010 r1991: After finding a talloc inconsistancy is a very good time to smb_panic(),
it can only indicate programmer error, and doing a smb_panic() ensures
an automatic backtrace (and eventually an abort()).

Andrew Bartlett
2007-10-10 12:58:15 -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
cc3d420c33 r1989: fixed a couple of bugs in code that assumes sizeof(time_t) == sizeof(int) 2007-10-10 12:58:15 -05:00
Paul Green
a489ea5ebe r1988: Let Samba use all POSIX features available on VOS.
paulg
2007-10-10 12:58:15 -05:00
Tim Potter
99f7feec0a r1986: Janitor for myself. Merge -r1907:1908 from SAMBA_3_0 branch. 2007-10-10 12:58:14 -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
Andrew Tridgell
db4bc88f9a r1982: i is not initialised or used 2007-10-10 12:58:14 -05:00
Andrew Tridgell
73e9ee7914 r1973: for systems that don't have strtoull() try strtouq(). This should fix
the build for some BSD varients.
2007-10-10 12:58:14 -05:00
Andrew Tridgell
d07dbdb22a r1972: cmdline_auth_info does not need to be declared global 2007-10-10 12:58:14 -05:00
Stefan Metzmacher
d965f84f69 r1961: print out the dcerpc fault code, when we got NT_STATUS_NET_WRITE_FAULT
(this need to be done more generic for all dcerpc calls,
 but for now I just need it in this 2 places)

metze
2007-10-10 12:58:13 -05:00
Stefan Metzmacher
ffb87ebc33 r1957: add cmdline_set_* functions
and let smbclient use the cmdline _* functions

metze
2007-10-10 12:58:13 -05:00
Stefan Metzmacher
741f95909b r1952: change the _RPC levels into _SAMR
because we may have other rpc levels in future

add more comments about what's going on

check the rsult of samr_OpenUser

metze
2007-10-10 12:58:13 -05:00
Stefan Metzmacher
b660e5b9e6 r1951: add 'net password set' call
use it like:
net password set user
net password set DOM\\user
net password set user pass
net password set DOM\\user pass
net password set -U DOM\\Administrator%admpass DOM\\user pass

metze
2007-10-10 12:58:13 -05:00
Stefan Metzmacher
af6b5673b0 r1950: implement libnet_SetPassword_rpc()
this currently tries only SetUserInfo26
the fallback is not yet done

metze
2007-10-10 12:58:13 -05:00
Stefan Metzmacher
d14a01533c r1949: provide functions to access the username, userdomain and userpassword
now you're prompted when cmdline_get_userpassword() is called
and the password is not yet known

metze
2007-10-10 12:58:13 -05:00
Stefan Metzmacher
1c72f30650 r1947: fix cup & paste errors
metze
2007-10-10 12:58:13 -05:00
Simo Sorce
8be31e5c85 r1944: put ldif functions in a separate file 2007-10-10 12:58:13 -05:00
Stefan Metzmacher
35624842c7 r1943: don't use the with --enable-*developer selected flags for
the configure tests.

and test if the compiler really understand the options,
and clear them when not

this means we can maybe use --enable-developer on the build farm now

metze
2007-10-10 12:58:12 -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