13 years agor2052: rewrote the talloc section of the programming guide
Andrew Tridgell [Wed, 25 Aug 2004 07:10:40 +0000 (07:10 +0000)]
r2052: rewrote the talloc section of the programming guide
(This used to be commit 7d3effccb235e6f7a342c295f70e83362fb19a27)

13 years agor2051: switched the samdb over to using the new destructor and reference
Andrew Tridgell [Wed, 25 Aug 2004 06:44:23 +0000 (06:44 +0000)]
r2051: switched the samdb over to using the new destructor and reference
count features of talloc, instead of re-implementing both those
features inside of samdb (which is what we did before).

This makes samdb considerably simpler, and also fixes some bugs, as I
found some error paths that didn't call samdb_close(). Those are now
handled by the fact that a talloc_free() will auto-close and destroy
the samdb context, using a destructor.
(This used to be commit da60987a92266734c33b81ee217081abdc4330f3)

13 years agor2050: fixed a case where code assumed you could Realloc the result of a data_blob()
Andrew Tridgell [Wed, 25 Aug 2004 06:42:08 +0000 (06:42 +0000)]
r2050: fixed a case where code assumed you could Realloc the result of a data_blob()
(This used to be commit 1fdccf8dc79ea19a37be7fb047130a7c8e2407e5)

13 years agor2049: talloc now has destructors and reference counts
Andrew Tridgell [Wed, 25 Aug 2004 06:40:58 +0000 (06:40 +0000)]
r2049: talloc now has destructors and reference counts

this means you can do:

  talloc_set_destructor(ptr, my_destructor);

and your destructor will be called with the pointer as an argument
when the pointer is about to be freed. The destructor can refuse the
free by returning -1.

You can also increase the reference count on a pointer like this:


and a talloc_free() will just reduce the reference count, only
actually freeing the memory when the count reaches zero.
(This used to be commit b5608d52d33a1d8be5a8a6751bc6cec162c7ed92)

13 years agor2048: fix memory leak found by abartlet
Stefan Metzmacher [Wed, 25 Aug 2004 06:13:08 +0000 (06:13 +0000)]
r2048: fix memory leak found by abartlet

(This used to be commit 0cab7a32f82fa10fea92bb86a1ffd5017f85e887)

13 years agor2047: Warn on 'declaration after statement' (breaks non-gcc).
Andrew Bartlett [Wed, 25 Aug 2004 05:58:33 +0000 (05:58 +0000)]
r2047: Warn on 'declaration after statement' (breaks non-gcc).

Andrew Bartlett
(This used to be commit ce96816d0eeb0b71efd15c77d10ec76303a0abb8)

13 years agor2046: fixed two server packet format errors found with the RAW-* tests
Andrew Tridgell [Wed, 25 Aug 2004 04:16:48 +0000 (04:16 +0000)]
r2046: fixed two server packet format errors found with the RAW-* tests
(This used to be commit 9fdbe60230741e11478871072a40c8bc8124b5ea)

13 years agor2045: fixed a date format push in SMBsearch
Andrew Tridgell [Wed, 25 Aug 2004 04:16:14 +0000 (04:16 +0000)]
r2045: fixed a date format push in SMBsearch
(This used to be commit a6cc0bedad98e7b9bbc27d9f31c21d5eba77146f)

13 years agor2044: fixed two unin\11
Andrew Tridgell [Wed, 25 Aug 2004 04:03:28 +0000 (04:03 +0000)]
r2044: fixed two unin\11
(This used to be commit d17e088ebbf1fd0dd2ef2d73115c7f458677d02f)

13 years agor2043: data_blob() now returns a talloc'd pointer. If everyone has been
Andrew Tridgell [Wed, 25 Aug 2004 03:23:39 +0000 (03:23 +0000)]
r2043: data_blob() now returns a talloc'd pointer. If everyone has been
following the data_blob() API properly then this will cause no
problems. I'm expecting chaos.

this is part of the general move towards using talloc for everything
in samba4
(This used to be commit 3f6b3c21e4d538aeb30b7906a75995b8f4c11223)

13 years agor2042: missed a couple of places that should be talloc_free()
Andrew Tridgell [Wed, 25 Aug 2004 02:25:48 +0000 (02:25 +0000)]
r2042: missed a couple of places that should be talloc_free()
(This used to be commit e1575a72a10252fdb88778f14bf3c44a65d72c5e)

13 years agor2041: Fix NTLMSSP RPC sealing, client -> win2k3 server.
Andrew Bartlett [Wed, 25 Aug 2004 02:25:20 +0000 (02:25 +0000)]
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
(This used to be commit 86f61568ea44c5719f9b583beeeefb12e0c26f4c)

13 years agor2040: fixed a memory handling error in clisocket (caught with valgrind)
Andrew Tridgell [Wed, 25 Aug 2004 02:07:53 +0000 (02:07 +0000)]
r2040: fixed a memory handling error in clisocket (caught with valgrind)
(This used to be commit f6dc62bf119c294db060b0870b6ca80bc28bd4a5)

13 years agor2039: got rid of the free() ptr in DATA_BLOB
Andrew Tridgell [Wed, 25 Aug 2004 02:07:20 +0000 (02:07 +0000)]
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.
(This used to be commit 957b260621c091830c01e9e8c370c199350342ec)

13 years agor2038: get rid of the optimisation in the dcerpc server that tries to avoid a
Andrew Tridgell [Wed, 25 Aug 2004 02:06:08 +0000 (02:06 +0000)]
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().
(This used to be commit 5894b5c0f32f75734151c6c915b296204b7825ac)

13 years agor2037: switched the asn.1 code to use talloc
Andrew Tridgell [Wed, 25 Aug 2004 02:05:02 +0000 (02:05 +0000)]
r2037: switched the asn.1 code to use talloc
(This used to be commit c0862278cab106a441d1049c1da945fa11353f9f)

13 years agor2036: switched the spnego code to use talloc
Andrew Tridgell [Wed, 25 Aug 2004 02:04:35 +0000 (02:04 +0000)]
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().
(This used to be commit a2ad77fb3ac9638c5ef52494bf62083ec594b9f5)

13 years agor2035: Fix spelling.
Andrew Bartlett [Wed, 25 Aug 2004 01:58:08 +0000 (01:58 +0000)]
r2035: Fix spelling.

Andrew Bartlett
(This used to be commit 4e2c5a5fb3e428ffcdeef3b95fab644a420cc20c)

13 years agor2034: Allow user-selectable hash functions on open only.
Jeremy Allison [Wed, 25 Aug 2004 01:12:59 +0000 (01:12 +0000)]
r2034: Allow user-selectable hash functions on open only.
(This used to be commit b43320ee5c9ac14c330e61ae62e0786b088e04fa)

13 years agor2031: add a check for a blank secret return in lsa secret tests
Andrew Tridgell [Wed, 25 Aug 2004 00:04:47 +0000 (00:04 +0000)]
r2031: add a check for a blank secret return in lsa secret tests
(This used to be commit eddb31d19654853189d1c3c52105a6240d100456)

13 years agor2030: quick hack to allow the simple NTVFS backend to handler base directories with...
Andrew Tridgell [Tue, 24 Aug 2004 23:58:00 +0000 (23:58 +0000)]
r2030: quick hack to allow the simple NTVFS backend to handler base directories with mixed case names
(This used to be commit efecc3306efb17f586b781112886d9416b355d65)

13 years agor2029: changed our client side dcerpc padding to match what w2k3 does - a 16
Andrew Tridgell [Tue, 24 Aug 2004 23:56:59 +0000 (23:56 +0000)]
r2029: changed our client side dcerpc padding to match what w2k3 does - a 16
byte padding of the payload portion of the packet.
(This used to be commit 271831f97f3952838557bf5034c1e435b33cb14a)

13 years agor2021: add password change fallback to SetUserInfo level 25,24,23
Stefan Metzmacher [Tue, 24 Aug 2004 16:28:08 +0000 (16:28 +0000)]
r2021: add password change fallback to SetUserInfo level 25,24,23

(This used to be commit d31405ff2f379e9627cc9ee3acaf61e2ccc0f6e4)

13 years agor2020: fix compiler warnings
Stefan Metzmacher [Tue, 24 Aug 2004 15:48:14 +0000 (15:48 +0000)]
r2020: fix compiler warnings

(This used to be commit 17268837d21c2199b87bd78c1f62b49a37b86df8)

13 years agor2019: fix compiler warnings
Stefan Metzmacher [Tue, 24 Aug 2004 15:43:57 +0000 (15:43 +0000)]
r2019: fix compiler warnings

(This used to be commit 699248fe821ffb738065002b5fef67cd59ca37f6)

13 years agor2017: fix compiler warnings
Stefan Metzmacher [Tue, 24 Aug 2004 15:38:57 +0000 (15:38 +0000)]
r2017: fix compiler warnings

(This used to be commit eb75d9323fb07fe9a19bbf77168aeb8a4b92c3b8)

13 years agor2012: --enable-developer also sets debug=yes now
Stefan Metzmacher [Tue, 24 Aug 2004 12:07:36 +0000 (12:07 +0000)]
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

(This used to be commit 479f68169466532c7903ced06907288baa1ed8e5)

13 years agor2011: remove this broken and never reached test
Stefan Metzmacher [Tue, 24 Aug 2004 12:04:11 +0000 (12:04 +0000)]
r2011: remove this broken and never reached test

as PROG_CC will set CFLAGS to the default ones

normaly "-g -O2"

(This used to be commit 424af1a9df7e67aa2194b2542794ed4589e57dbf)

13 years agor2010: trigger the config.smb_build.dump output by --enable-*developer not --enable...
Stefan Metzmacher [Tue, 24 Aug 2004 12:01:24 +0000 (12:01 +0000)]
r2010: trigger the config.smb_build.dump output by --enable-*developer not --enable-debug

(This used to be commit ffbfc410336cdf44459de5b387dd1a03b122535e)

13 years agor2005: fix compiler warnings
Stefan Metzmacher [Tue, 24 Aug 2004 10:07:49 +0000 (10:07 +0000)]
r2005: fix compiler warnings

(This used to be commit 71992c90cc35179ea8783d770c89b16618e1adc6)

13 years agor2004: remove unused file
Stefan Metzmacher [Tue, 24 Aug 2004 10:03:49 +0000 (10:03 +0000)]
r2004: remove unused file

(This used to be commit 46d5ce350aeae352a9a14b14b968c299f11272f2)

13 years agor2003: got rid of next_token_nr(), which involved some horrible globals
Andrew Tridgell [Tue, 24 Aug 2004 01:32:12 +0000 (01:32 +0000)]
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
(This used to be commit 126fec6169f9412932c82e7675840476132bce87)

13 years agor2000: remove unused var
Stefan Metzmacher [Mon, 23 Aug 2004 09:00:06 +0000 (09:00 +0000)]
r2000: remove unused var

(This used to be commit 5d5b65173949e51c88c5e9ef8768d4e1c14be17c)

13 years agor1999: fix compiler warning
Stefan Metzmacher [Mon, 23 Aug 2004 08:50:54 +0000 (08:50 +0000)]
r1999: fix compiler warning

(This used to be commit 8c9c702bc3328c3826985711c4a30b878cf8b02e)

13 years agor1998: fix compiler warning
Stefan Metzmacher [Mon, 23 Aug 2004 08:49:55 +0000 (08:49 +0000)]
r1998: fix compiler warning

(This used to be commit bf06f476dbdfbcb38ccbd8606e622097015c2b3d)

13 years agor1997: fix compiler warning
Stefan Metzmacher [Mon, 23 Aug 2004 07:28:15 +0000 (07:28 +0000)]
r1997: fix compiler warning

(This used to be commit eb9de893b8b93857c648f4df907aac9e9cb199dc)

13 years agor1996: fix compiler warnings
Stefan Metzmacher [Mon, 23 Aug 2004 07:22:31 +0000 (07:22 +0000)]
r1996: fix compiler warnings

(This used to be commit dd8d68f3ecb78a2acdec74aa14e1922ad29cabf7)

13 years agor1995: a ndrdump file from abartlet make it clear that this isn't a pointer
Stefan Metzmacher [Mon, 23 Aug 2004 07:12:13 +0000 (07:12 +0000)]
r1995: a ndrdump file from abartlet make it clear that this isn't a pointer
to a uint32, there're two uint32 with 0x00000000

(This used to be commit 80f27766cb6d2c4e00232f7e3d5cde75ad84d094)

13 years agor1994: fix compiler warning
Stefan Metzmacher [Mon, 23 Aug 2004 07:08:07 +0000 (07:08 +0000)]
r1994: fix compiler warning

(This used to be commit a3a4b9c9ea2692b3ca85d9a4a094e36609831f19)

13 years agor1993: Allow WinXP domain logon to progress a bit further (it seems broken for me).
Andrew Bartlett [Mon, 23 Aug 2004 05:51:38 +0000 (05:51 +0000)]
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
(This used to be commit 486215edc1148ad754632be37760dc0d38b0340d)

13 years agor1992: Make the NTLMSSP torture test show more detail, and return failure etc.
Andrew Bartlett [Sun, 22 Aug 2004 05:37:39 +0000 (05:37 +0000)]
r1992: Make the NTLMSSP torture test show more detail, and return failure etc.

Andrew Bartlett
(This used to be commit a8e76085a7414068aa96b6544b28afc1e1e1010c)

13 years agor1991: After finding a talloc inconsistancy is a very good time to smb_panic(),
Andrew Bartlett [Sun, 22 Aug 2004 05:35:43 +0000 (05:35 +0000)]
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
(This used to be commit b2d93d0010d80f158760f53273853de2439c3062)

13 years agor1990: Fix breakage caused by the recent talloc changes. (Failure to process
Andrew Bartlett [Sun, 22 Aug 2004 05:33:07 +0000 (05:33 +0000)]
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
(This used to be commit 4294be44057124568fe1d176702056bb62ad3214)

13 years agor1989: fixed a couple of bugs in code that assumes sizeof(time_t) == sizeof(int)
Andrew Tridgell [Sat, 21 Aug 2004 18:15:07 +0000 (18:15 +0000)]
r1989: fixed a couple of bugs in code that assumes sizeof(time_t) == sizeof(int)
(This used to be commit cc3d420c33152c8e9026dc39a7322d11edb3c774)

13 years agor1988: Let Samba use all POSIX features available on VOS.
Paul Green [Sat, 21 Aug 2004 12:23:02 +0000 (12:23 +0000)]
r1988: Let Samba use all POSIX features available on VOS.

(This used to be commit a489ea5ebec852c33c4d659893144b0577ee8af1)

13 years agor1986: Janitor for myself. Merge -r1907:1908 from SAMBA_3_0 branch.
Tim Potter [Sat, 21 Aug 2004 11:48:46 +0000 (11:48 +0000)]
r1986: Janitor for myself.  Merge -r1907:1908 from SAMBA_3_0 branch.
(This used to be commit 99f7feec0ab545271f49ea3ab811eb3022aa03db)

13 years agor1985: take advantage of the new talloc in a few more places
Andrew Tridgell [Sat, 21 Aug 2004 07:43:29 +0000 (07:43 +0000)]
r1985: take advantage of the new talloc in a few more places
(This used to be commit 6ffdfd779936ce8c5ca49c5f444e8da2bbeee0a8)

13 years agor1984: this change is what you should read to understand the new talloc()
Andrew Tridgell [Sat, 21 Aug 2004 02:07:12 +0000 (02:07 +0000)]
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.
(This used to be commit 03c341aca7f09cb1f0d33ec65e074e6a00caa30f)

13 years agor1983: a completely new implementation of talloc
Andrew Tridgell [Sat, 21 Aug 2004 01:54:46 +0000 (01:54 +0000)]
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().
(This used to be commit e35bb094c52e550b3105dd1638d8d90de71d854f)

13 years agor1982: i is not initialised or used
Andrew Tridgell [Sat, 21 Aug 2004 01:20:51 +0000 (01:20 +0000)]
r1982: i is not initialised or used
(This used to be commit db4bc88f9aeaa59f08b9b447a8b2256c9c9c5fb0)

13 years agor1973: for systems that don't have strtoull() try strtouq(). This should fix
Andrew Tridgell [Fri, 20 Aug 2004 22:50:33 +0000 (22:50 +0000)]
r1973: for systems that don't have strtoull() try strtouq(). This should fix
the build for some BSD varients.
(This used to be commit 73e9ee791472bb212efe0eb4744daa91678263ad)

13 years agor1972: cmdline_auth_info does not need to be declared global
Andrew Tridgell [Fri, 20 Aug 2004 22:49:45 +0000 (22:49 +0000)]
r1972: cmdline_auth_info does not need to be declared global
(This used to be commit d07dbdb22acc4c9cafb7141486fbf162d9f8164e)

13 years agor1961: print out the dcerpc fault code, when we got NT_STATUS_NET_WRITE_FAULT
Stefan Metzmacher [Fri, 20 Aug 2004 15:00:22 +0000 (15:00 +0000)]
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)

(This used to be commit d965f84f69ada2a10e9159aa1743c0bee7790488)

13 years agor1957: add cmdline_set_* functions
Stefan Metzmacher [Fri, 20 Aug 2004 13:24:28 +0000 (13:24 +0000)]
r1957: add cmdline_set_* functions

and let smbclient use the cmdline _* functions

(This used to be commit ffb87ebc33e728bf8506383f95b80605adec3c68)

13 years agor1952: change the _RPC levels into _SAMR
Stefan Metzmacher [Fri, 20 Aug 2004 10:22:22 +0000 (10:22 +0000)]
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

(This used to be commit 741f95909b42eb55a251e5de991e5b3185714e3e)

13 years agor1951: add 'net password set' call
Stefan Metzmacher [Fri, 20 Aug 2004 09:55:21 +0000 (09:55 +0000)]
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

(This used to be commit b660e5b9e6236c996550973e9bde1e80a8eed775)

13 years agor1950: implement libnet_SetPassword_rpc()
Stefan Metzmacher [Fri, 20 Aug 2004 09:52:37 +0000 (09:52 +0000)]
r1950: implement libnet_SetPassword_rpc()

this currently tries only SetUserInfo26
the fallback is not yet done

(This used to be commit af6b5673b05e7fc1c876a248f99bc71faeec9538)

13 years agor1949: provide functions to access the username, userdomain and userpassword
Stefan Metzmacher [Fri, 20 Aug 2004 09:48:25 +0000 (09:48 +0000)]
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

(This used to be commit d14a01533c5d465ff3709c48576b798b3be807e0)

13 years agor1947: fix cup & paste errors
Stefan Metzmacher [Fri, 20 Aug 2004 09:12:53 +0000 (09:12 +0000)]
r1947: fix cup & paste errors

(This used to be commit 1c72f30650655b03fb04a34188a959dfe917b5ec)

13 years agor1944: put ldif functions in a separate file
Simo Sorce [Fri, 20 Aug 2004 07:39:19 +0000 (07:39 +0000)]
r1944: put ldif functions in a separate file
(This used to be commit 8be31e5c854e4462163b97b897ff41de95f181c4)

13 years agor1943: don't use the with --enable-*developer selected flags for
Stefan Metzmacher [Fri, 20 Aug 2004 06:52:31 +0000 (06:52 +0000)]
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

(This used to be commit 35624842c7b25c404e6203564005e3098e4249b4)

13 years agor1941: - fixed an allocation error with querying security descriptors remotely
Andrew Tridgell [Fri, 20 Aug 2004 00:03:13 +0000 (00:03 +0000)]
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
(This used to be commit 8925b8b2193905d084e1bfaaa3235ed7f9d1eb55)

13 years agor1929: CHeck if cpp on AIX likes /* */ better then //
Jelmer Vernooij [Thu, 19 Aug 2004 16:01:23 +0000 (16:01 +0000)]
r1929: CHeck if cpp on AIX likes /* */ better then //
(This used to be commit 8bf6841a8e9c7fa6d12c6631c9c845edbe52a455)

13 years agor1928: give up on NT_STATUS_PASSWORD_RESTRICTION
Stefan Metzmacher [Thu, 19 Aug 2004 15:27:07 +0000 (15:27 +0000)]

(NOTE: this code pass isn't called yet,
       because pidl mixes the NTSTATUS of transport and request layer,
       and will be fixed soon)

(This used to be commit 84c06d9ab0366772f71be088c53da9618e2555fe)

13 years agor1927: allow the domain to be a ip address
Stefan Metzmacher [Thu, 19 Aug 2004 15:22:02 +0000 (15:22 +0000)]
r1927: allow the domain to be a ip address

(This used to be commit d0e518e7d0edcf64a3d7173ff8d38f221db1ce6e)

13 years agor1926: fallback to other SAMR ChangePasswordUser levels
Stefan Metzmacher [Thu, 19 Aug 2004 15:06:06 +0000 (15:06 +0000)]
r1926: fallback to other SAMR ChangePasswordUser levels

1. ChangePasswordUser3
2. ChangePasswordUser2
3. OemChangePasswordUser2
4. ChangePasswordUser (not implemented complete)

(This used to be commit eb93d38de0dab0d0ad5adf8cfb69623bc35e942a)

13 years agor1925: now we lookup the domain controller
Stefan Metzmacher [Thu, 19 Aug 2004 15:04:14 +0000 (15:04 +0000)]
r1925: now we lookup the domain controller
and fallback to a workstation name

(This used to be commit 2012d90f268f69a3a4e5890a0f3615237853bd0b)

13 years agor1920: This needs more inspection by the IDL experts. Reverting my last change.
Volker Lendecke [Thu, 19 Aug 2004 13:36:22 +0000 (13:36 +0000)]
r1920: This needs more inspection by the IDL experts. Reverting my last change.

(This used to be commit 5d9b5a2e58cb271ea38de96e2b4b252ded2b1cdf)

13 years agor1919: paasword change basicly works now:-)
Stefan Metzmacher [Thu, 19 Aug 2004 13:32:06 +0000 (13:32 +0000)]
r1919: paasword change basicly works now:-)

but we need to find the real pdc for the users domain
and fallback to other levels

(This used to be commit f1b9c1f3dd0fb927c065541da900ae43e0018a62)

13 years agor1917: Attempt to push the AIX machine a bit further in the compile. I'm not sure,
Volker Lendecke [Thu, 19 Aug 2004 13:05:36 +0000 (13:05 +0000)]
r1917: Attempt to push the AIX machine a bit further in the compile. I'm not sure,
but pidl there says "syntax error".

(This used to be commit c26dc367e4ef2619016d8063a9dfcc7a94be865b)

13 years agor1916: return a more clear error, we are miss configure in this case
Stefan Metzmacher [Thu, 19 Aug 2004 12:50:41 +0000 (12:50 +0000)]
r1916: return a more clear error, we are miss configure in this case

(This used to be commit a908f831cb9dd265f9b183512053f9e608feec3d)

13 years agor1915: use popt's cmdline_auth_info to fill the net_context
Stefan Metzmacher [Thu, 19 Aug 2004 12:36:05 +0000 (12:36 +0000)]
r1915: use popt's cmdline_auth_info to fill the net_context
and print the user domain when prompting for a new password

(This used to be commit aedb2e9e1c418a7ac3cc18299707ae9146e4047a)

13 years agor1914: use common popt stuff in net
Stefan Metzmacher [Thu, 19 Aug 2004 12:24:58 +0000 (12:24 +0000)]
r1914: use common popt stuff in net

(This used to be commit 52b866c40332ab408c57a0eab415e0755e4b5081)

13 years agor1913: add --version back
Stefan Metzmacher [Thu, 19 Aug 2004 12:23:57 +0000 (12:23 +0000)]
r1913: add --version back

(This used to be commit a1bb734009571c7a052a15507a70137ac31911ba)

13 years agor1912: move popt_common.h
Stefan Metzmacher [Thu, 19 Aug 2004 12:18:07 +0000 (12:18 +0000)]
r1912: move popt_common.h

(This used to be commit ecf6be894fc47f9e00f46531e06ef20e11115c0f)

13 years agor1911: merge a few popt parameters from 3.0 move some to better places
Stefan Metzmacher [Thu, 19 Aug 2004 12:16:48 +0000 (12:16 +0000)]
r1911: merge a few popt parameters from 3.0 move some to better places
and deal with users DOMAIN and lp_workgroup() of the local workstation

(This used to be commit 1fc0100e44a8640cfc15effb99f5824cb7817da8)

13 years agor1910: this should not be a local var in this block
Stefan Metzmacher [Thu, 19 Aug 2004 11:37:36 +0000 (11:37 +0000)]
r1910: this should not be a local var in this block

(This used to be commit 0164cac6df46ca5996aae30b8c48a602999f7e0b)

13 years agor1909: nicer format
Stefan Metzmacher [Thu, 19 Aug 2004 10:10:16 +0000 (10:10 +0000)]
r1909: nicer format

(This used to be commit e9e5fb2cb0b428de11d8e91da8b44394b6221a43)

13 years agor1907: init the configuration
Stefan Metzmacher [Thu, 19 Aug 2004 09:50:54 +0000 (09:50 +0000)]
r1907: init the configuration

and fix compiler warning

(This used to be commit c358f11406e8aca68325a40c6bbed78c53ac024f)

13 years agor1905: add -Werror-implicit-function-declaration with --enable-developer
Stefan Metzmacher [Thu, 19 Aug 2004 07:59:08 +0000 (07:59 +0000)]
r1905: add -Werror-implicit-function-declaration with --enable-developer

(This used to be commit 11495a42b97b62b1f54cfb98909e937d370fdd4a)

13 years agor1904: catch the common gtk function prototypes with make proto
Stefan Metzmacher [Thu, 19 Aug 2004 07:58:02 +0000 (07:58 +0000)]
r1904: catch the common gtk function prototypes with make proto

(This used to be commit b3cae309ae3afddfded7ef224d2c67ebbcd90d8a)

13 years agor1903: hmm a better solution is to include popt.h where it is needed
Stefan Metzmacher [Thu, 19 Aug 2004 07:56:55 +0000 (07:56 +0000)]
r1903: hmm a better solution is to include popt.h where it is needed

(This used to be commit 64d61ef4a5b44e76c90914ebaeaafac58228d78c)

13 years agor1902: we need to include popt.h before popt_common.h
Stefan Metzmacher [Thu, 19 Aug 2004 07:54:38 +0000 (07:54 +0000)]
r1902: we need to include popt.h before popt_common.h

(This used to be commit edde7497e9e06be0e51e886981725271a85bd9e5)

13 years agor1901: add missing include of <fnmatch.h>
Stefan Metzmacher [Thu, 19 Aug 2004 07:51:51 +0000 (07:51 +0000)]
r1901: add missing include of <fnmatch.h>

(This used to be commit 5e5681e2830bfd487d7e783249fe069b41be1f37)

13 years agor1900: fix function prototypes
Stefan Metzmacher [Thu, 19 Aug 2004 07:49:45 +0000 (07:49 +0000)]
r1900: fix function prototypes

(This used to be commit a60b528b344132083a25f0a8d8718a4d4701198c)

13 years agor1898: Check the context we are going to return.
Simo Sorce [Wed, 18 Aug 2004 21:22:07 +0000 (21:22 +0000)]
r1898: Check the context we are going to return.
(This used to be commit d721b122b5c443363b8f8ec2e1ef4b798378b658)

13 years agor1897: added a choose_called_name() function that allows us to more sanely
Andrew Tridgell [Wed, 18 Aug 2004 20:13:08 +0000 (20:13 +0000)]
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 "".

also removed the ip address argument to smbcli_socket_connect() as it
isn't used and doesn't really make sense.
(This used to be commit 2ce4028842556328da4da0de9bee942bed02cc62)

13 years agor1896: stricter check on packet parsing for NBT session replies
Andrew Tridgell [Wed, 18 Aug 2004 20:07:44 +0000 (20:07 +0000)]
r1896: stricter check on packet parsing for NBT session replies
(This used to be commit 30ab38559e8c52ecdaf7ca9b124875ade82c5c66)

13 years agor1895: added a note about OPEN_BY_FILE_ID to the ntcreatex interface definition
Andrew Tridgell [Wed, 18 Aug 2004 20:04:56 +0000 (20:04 +0000)]
r1895: added a note about OPEN_BY_FILE_ID to the ntcreatex interface definition
(This used to be commit e50fc00671ace0085632f35ec99ad1125cd4d546)

13 years agor1894: Convert // to /* */
Volker Lendecke [Wed, 18 Aug 2004 19:57:49 +0000 (19:57 +0000)]
r1894: Convert // to /* */
(This used to be commit 5dc793b2b4b5c54df4aa3b0c98c248bdd671bbb1)

13 years agor1893: add a commented out lump of code to implement the "by the SPEC"
Andrew Tridgell [Wed, 18 Aug 2004 18:31:23 +0000 (18:31 +0000)]
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.
(This used to be commit cd8887293e7735d8ee1cc2daebda233673801775)

13 years agor1892: this adds talloc_get_context(), which is something I discussed at the
Andrew Tridgell [Wed, 18 Aug 2004 18:25:02 +0000 (18:25 +0000)]
r1892: this adds talloc_get_context(), which is something I discussed at the
team meeting at CIFS04. It allows you to find the talloc context given
any pointer allocated with talloc.
(This used to be commit 01dc4ed9b4f9390930d3c235cf2ccf9a9028392d)

13 years agor1886: Fix the build
Volker Lendecke [Wed, 18 Aug 2004 14:11:11 +0000 (14:11 +0000)]
r1886: Fix the build
(This used to be commit 7be7f25a57422fea3e763479629e18dc9a204aba)

13 years agor1884: remove empty header file
Stefan Metzmacher [Wed, 18 Aug 2004 13:49:22 +0000 (13:49 +0000)]
r1884: remove empty header file

(This used to be commit 874d4506094123a1f42c32c3ad37f6374f5958e8)

13 years agor1883: I don't know why this was broken...
Stefan Metzmacher [Wed, 18 Aug 2004 13:43:53 +0000 (13:43 +0000)]
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.

(This used to be commit d3123c2e7357d8db4dce9e0253ac405318d05c48)

13 years agor1881: empty structs are not allowed by all compilers
Stefan Metzmacher [Wed, 18 Aug 2004 13:01:10 +0000 (13:01 +0000)]
r1881: empty structs are not allowed by all compilers

(This used to be commit 4c6c4d6bc8927b93f29beecf44aef5c228533a43)

13 years agor1880: bugger, now I have used gcc 3.4.1 myself and have statements before declarations
Stefan Metzmacher [Wed, 18 Aug 2004 13:00:28 +0000 (13:00 +0000)]
r1880: bugger, now I have used gcc 3.4.1 myself and have statements before declarations

Does any knows if there are flags to let gcc 3.4.1 fail with that?

(This used to be commit 6ad57a86c8583df90a93fdf36b7184010d2054bc)

13 years agor1879: - add a user sub struct in net_context
Stefan Metzmacher [Wed, 18 Aug 2004 12:47:08 +0000 (12:47 +0000)]
r1879: - add a user sub struct in net_context

- add 'net password change' command
  (it doesn'T work yet because libnet_rpc_connect() isn't implemented yet,
   and we don't fill in the net_context user substruct yet)

(This used to be commit 939da063cdf18a5ab7e7f0490ac58d1f138cf0f0)

13 years agor1878: implemet libnet_context_{init,destroy}
Stefan Metzmacher [Wed, 18 Aug 2004 11:01:06 +0000 (11:01 +0000)]
r1878: implemet libnet_context_{init,destroy}

and implement libnet_Change_Password_generic()

(This used to be commit d48050ae906ecf8d4f78c224042f8f9fe584ad39)

13 years agor1877: since make proto catches all functions
Stefan Metzmacher [Wed, 18 Aug 2004 10:35:46 +0000 (10:35 +0000)]
r1877: since make proto catches all functions

the inlcude has to move to includes.h

(This used to be commit 97fe38183b6a03c01f6ac2d28a958d632eb4ff8a)