bbaumbach/samba-autobuild/.git
16 years agor1999: fix compiler warning
Stefan Metzmacher [Mon, 23 Aug 2004 08:50:54 +0000 (08:50 +0000)]
r1999: fix compiler warning

metze
(This used to be commit 8c9c702bc3328c3826985711c4a30b878cf8b02e)

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

metze
(This used to be commit bf06f476dbdfbcb38ccbd8606e622097015c2b3d)

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

metze
(This used to be commit eb9de893b8b93857c648f4df907aac9e9cb199dc)

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

metze
(This used to be commit dd8d68f3ecb78a2acdec74aa14e1922ad29cabf7)

16 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

metze
(This used to be commit 80f27766cb6d2c4e00232f7e3d5cde75ad84d094)

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

metze
(This used to be commit a3a4b9c9ea2692b3ca85d9a4a094e36609831f19)

16 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)

16 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)

16 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)

16 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)

16 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)

16 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.

paulg
(This used to be commit a489ea5ebec852c33c4d659893144b0577ee8af1)

16 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)

16 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)

16 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)

16 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)

16 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)

16 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)

16 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)

16 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)

metze
(This used to be commit d965f84f69ada2a10e9159aa1743c0bee7790488)

16 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

metze
(This used to be commit ffb87ebc33e728bf8506383f95b80605adec3c68)

16 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

metze
(This used to be commit 741f95909b42eb55a251e5de991e5b3185714e3e)

16 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

metze
(This used to be commit b660e5b9e6236c996550973e9bde1e80a8eed775)

16 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

metze
(This used to be commit af6b5673b05e7fc1c876a248f99bc71faeec9538)

16 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

metze
(This used to be commit d14a01533c5d465ff3709c48576b798b3be807e0)

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

metze
(This used to be commit 1c72f30650655b03fb04a34188a959dfe917b5ec)

16 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)

16 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

metze
(This used to be commit 35624842c7b25c404e6203564005e3098e4249b4)

16 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)

16 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)

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

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

metze
(This used to be commit 84c06d9ab0366772f71be088c53da9618e2555fe)

16 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

metze
(This used to be commit d0e518e7d0edcf64a3d7173ff8d38f221db1ce6e)

16 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)

metze
(This used to be commit eb93d38de0dab0d0ad5adf8cfb69623bc35e942a)

16 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

metze
(This used to be commit 2012d90f268f69a3a4e5890a0f3615237853bd0b)

16 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.

Volker
(This used to be commit 5d9b5a2e58cb271ea38de96e2b4b252ded2b1cdf)

16 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

metze
(This used to be commit f1b9c1f3dd0fb927c065541da900ae43e0018a62)

16 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".

Volker
(This used to be commit c26dc367e4ef2619016d8063a9dfcc7a94be865b)

16 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

metze
(This used to be commit a908f831cb9dd265f9b183512053f9e608feec3d)

16 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

metze
(This used to be commit aedb2e9e1c418a7ac3cc18299707ae9146e4047a)

16 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

metze
(This used to be commit 52b866c40332ab408c57a0eab415e0755e4b5081)

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

metze
(This used to be commit a1bb734009571c7a052a15507a70137ac31911ba)

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

metze
(This used to be commit ecf6be894fc47f9e00f46531e06ef20e11115c0f)

16 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

metze
(This used to be commit 1fc0100e44a8640cfc15effb99f5824cb7817da8)

16 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

metze
(This used to be commit 0164cac6df46ca5996aae30b8c48a602999f7e0b)

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

metze
(This used to be commit e9e5fb2cb0b428de11d8e91da8b44394b6221a43)

16 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

metze
(This used to be commit c358f11406e8aca68325a40c6bbed78c53ac024f)

16 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

metze
(This used to be commit 11495a42b97b62b1f54cfb98909e937d370fdd4a)

16 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

metze
(This used to be commit b3cae309ae3afddfded7ef224d2c67ebbcd90d8a)

16 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

metze
(This used to be commit 64d61ef4a5b44e76c90914ebaeaafac58228d78c)

16 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

metze
(This used to be commit edde7497e9e06be0e51e886981725271a85bd9e5)

16 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>

metze
(This used to be commit 5e5681e2830bfd487d7e783249fe069b41be1f37)

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

metze
(This used to be commit a60b528b344132083a25f0a8d8718a4d4701198c)

16 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)

16 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 "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.
(This used to be commit 2ce4028842556328da4da0de9bee942bed02cc62)

16 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)

16 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)

16 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)

16 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)

16 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)

16 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)

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

metze
(This used to be commit 874d4506094123a1f42c32c3ad37f6374f5958e8)

16 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.

metze
(This used to be commit d3123c2e7357d8db4dce9e0253ac405318d05c48)

16 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

metze
(This used to be commit 4c6c4d6bc8927b93f29beecf44aef5c228533a43)

16 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?

metze
(This used to be commit 6ad57a86c8583df90a93fdf36b7184010d2054bc)

16 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)

metze
(This used to be commit 939da063cdf18a5ab7e7f0490ac58d1f138cf0f0)

16 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()

metze
(This used to be commit d48050ae906ecf8d4f78c224042f8f9fe584ad39)

16 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

metze
(This used to be commit 97fe38183b6a03c01f6ac2d28a958d632eb4ff8a)

16 years agor1876: rewrite net command completely
Stefan Metzmacher [Wed, 18 Aug 2004 09:33:54 +0000 (09:33 +0000)]
r1876: rewrite net command completely
and add it to the build

metze
(This used to be commit 14b9858800f6944bf78bee34338242cd3292b297)

16 years agor1875: - move 'net' code into a subdir
Stefan Metzmacher [Wed, 18 Aug 2004 07:56:35 +0000 (07:56 +0000)]
r1875: - move 'net' code into a subdir
- and remove all unneeded files

we'll reimplement the stuff step by step using the functions from
libnet/ which will do the hard work for us

metze
(This used to be commit 8b2d5ec973fde980389bfe03cbcd70274b98b2dc)

16 years agor1874: add dcerpc_errstr() function to display a fault code by name,
Stefan Metzmacher [Wed, 18 Aug 2004 07:51:10 +0000 (07:51 +0000)]
r1874: add dcerpc_errstr() function to display a fault code by name,
this should be used in the torture  tests when we got NT_STATU_NET_WRITE_FAULT

metze
(This used to be commit 964748389bb7560ba141d71bb9256a8552c7db92)

16 years agor1872: revert -r 1845 because the caling function should look at the fault_code
Stefan Metzmacher [Wed, 18 Aug 2004 06:14:47 +0000 (06:14 +0000)]
r1872: revert -r 1845 because the caling function should look at the fault_code
when it gets NT_STATUS_NET_WRITE_FAULT

metze
(This used to be commit 084845c1ab5e8acdb91f1d93b87d3f58e5de1bfd)

16 years agor1867: Add README file in build/pidl/
Jelmer Vernooij [Tue, 17 Aug 2004 19:25:07 +0000 (19:25 +0000)]
r1867: Add README file in build/pidl/
(This used to be commit 189ed098408b52965ccdf652d78ec678bbe0462e)

16 years agor1862: add invalid_creds ldap error
Stefan Metzmacher [Tue, 17 Aug 2004 14:34:01 +0000 (14:34 +0000)]
r1862: add invalid_creds ldap error

metze
(This used to be commit 11c866d602fb4daefc1dced349606bd8ccd38ef2)

16 years agor1856: - move asn1 functions to asn1.c
Stefan Metzmacher [Tue, 17 Aug 2004 11:22:44 +0000 (11:22 +0000)]
r1856: - move asn1 functions to asn1.c
- merge some stuff from trunk

metze
(This used to be commit 267edf1c0bb1ed73f1ba19148e6412b9a1c41979)

16 years agor1855: fix compiler warning and output fromatting
Stefan Metzmacher [Tue, 17 Aug 2004 11:04:12 +0000 (11:04 +0000)]
r1855: fix compiler warning and output fromatting

metze
(This used to be commit 59f3d417449f55d247604966b6e9fa2fa97c5124)

16 years agor1851: if we try to peek a subtag, check if the parent tag has remaining data
Stefan Metzmacher [Tue, 17 Aug 2004 10:04:25 +0000 (10:04 +0000)]
r1851: if we try to peek a subtag, check if the parent tag has remaining data

metze
(This used to be commit 01626ed381bdc9cab3e94e80220c916bb61acf30)

16 years agor1850: when we have a username and use sign or seal on a dcerpc over np
Stefan Metzmacher [Tue, 17 Aug 2004 10:02:54 +0000 (10:02 +0000)]
r1850: when we have a username and use sign or seal on a dcerpc over np

use dcerpc auth instead off smb auth

metze
(This used to be commit 6b429234968da7e51de95b6ede2afe3c1605debb)

16 years agor1849: use LIBNDR_STRING_BYTESIZE here
Stefan Metzmacher [Tue, 17 Aug 2004 09:31:36 +0000 (09:31 +0000)]
r1849: use LIBNDR_STRING_BYTESIZE here

metze
(This used to be commit 6e6bfd6dd290b5e1cd3e90ebf20cd2207f94342e)

16 years agor1848: fix LIBNDR_STRING_FLAGS to include LIBNDR_STRING_BYTESIZE
Stefan Metzmacher [Tue, 17 Aug 2004 09:30:46 +0000 (09:30 +0000)]
r1848: fix LIBNDR_STRING_FLAGS to include LIBNDR_STRING_BYTESIZE

metze
(This used to be commit 7f1fceeb7f7e2e51fb67f48b1513a32564b7cdff)

16 years agor1847: add STR_BYTESIZE flag, to handle cases where
Stefan Metzmacher [Tue, 17 Aug 2004 09:14:46 +0000 (09:14 +0000)]
r1847: add STR_BYTESIZE flag, to handle cases where
the size is in bytes not in unicode chars

metze
(This used to be commit 6d094d60d377479de28790bad8ceb4c083c902cd)

16 years agor1846: add helpstring
Stefan Metzmacher [Tue, 17 Aug 2004 09:09:01 +0000 (09:09 +0000)]
r1846: add helpstring

metze
(This used to be commit b1c8611d730c8fd3927576faaa4b8fed8ad5b1fe)

16 years agor1845: map DCERPC_FAULT_LOGON_FAILURE to NT_STATUS_LOGON_FAILURE
Stefan Metzmacher [Tue, 17 Aug 2004 09:07:44 +0000 (09:07 +0000)]
r1845: map DCERPC_FAULT_LOGON_FAILURE to NT_STATUS_LOGON_FAILURE

metze
(This used to be commit 0cf0c3646038574e73c77a0b7adbdf6d04fe7207)

16 years agor1844: fix the build,
Stefan Metzmacher [Tue, 17 Aug 2004 08:28:15 +0000 (08:28 +0000)]
r1844: fix the build,

jelmer: you forgot lookupsid.c

metze
(This used to be commit 2d4b806156842af84dd6de217a8652f4c9b0e090)

16 years agor1843: return DCERPC_FAULT_LOGON_FAILURE when the auth fails
Stefan Metzmacher [Tue, 17 Aug 2004 07:45:42 +0000 (07:45 +0000)]
r1843: return DCERPC_FAULT_LOGON_FAILURE when the auth fails

metze
(This used to be commit a6ce6ee878c896cfc256989894fd2b35707e3da0)

16 years agor1842: add fault code that happens with wrong password
Stefan Metzmacher [Tue, 17 Aug 2004 07:40:02 +0000 (07:40 +0000)]
r1842: add fault code that happens with wrong password
or when signing or sealing fails

DCERPC_FAULT_LOGON_FAILURE      = 0x00000005;

metze
(This used to be commit 6ed2ce4edca9dbdb30e52e83d62227656d671a29)

16 years agor1838: Updates from the airplane:
Jelmer Vernooij [Mon, 16 Aug 2004 19:03:22 +0000 (19:03 +0000)]
r1838: Updates from the airplane:
 - IDL fixes + adding comments
 - Start working on dcom infrastructure
(This used to be commit ef0fc269f06c82594c34ad8673c76c5ea099250e)

16 years agor1836: - as abartlet said to me, we need to contact the users domain pdcfor doing a
Stefan Metzmacher [Mon, 16 Aug 2004 16:52:57 +0000 (16:52 +0000)]
r1836: - as abartlet said to me, we need to contact the users domain pdcfor doing a
  password change
- add start of libnet_SetPassword
- use KRB5 and LDAP instead of ADS as ADS isn't a protocol
- add start of lib_rpc_connect()

metze
(This used to be commit 05c40dca8ad1ab020aa75282da046f1dbce2a52a)

16 years agor1826: Implement some stub functions: ndr_pull_{save,restore,set_offset}()
Tim Potter [Mon, 16 Aug 2004 04:08:36 +0000 (04:08 +0000)]
r1826: Implement some stub functions: ndr_pull_{save,restore,set_offset}()

Implement ndr_pull_relative()

Call ndr_pull_uintX() for ndr_pull_intX()

Generate warnings for unimplemented functions pulling NTTIME and HYPER_T.

Implement ndr_pull_dom_sid2()

We now dissect a lot more of the samr torture test without errors.
(This used to be commit 197fb3a264536ee84d4b02a8a349c6b21e91b1f5)

16 years agor1824: nicer handling of NBT session replies, and handling of bad packets
Andrew Tridgell [Sat, 14 Aug 2004 18:24:33 +0000 (18:24 +0000)]
r1824: nicer handling of NBT session replies, and handling of bad packets
with the async SMB code
(This used to be commit cef94978f43a8326b6cf1888c15ca8c568ebe9f8)

16 years agor1823: No real changes, I just did not like the ^M's an the line ends :-)
Volker Lendecke [Sat, 14 Aug 2004 16:40:51 +0000 (16:40 +0000)]
r1823: No real changes, I just did not like the ^M's an the line ends :-)

Volker
(This used to be commit ea73426e6557cbc35d38a312b0251e3979692efc)

16 years agor1821: fixed reference to "status" that should be "result"
Andrew Tridgell [Sat, 14 Aug 2004 16:08:32 +0000 (16:08 +0000)]
r1821: fixed reference to "status" that should be "result"
(This used to be commit bdf7d66d299b0956fbf17b38291089585b2b54bf)

16 years agor1820: added a strcmp_safe() that handles NULL pointers. Needed for the
Andrew Tridgell [Sat, 14 Aug 2004 05:57:43 +0000 (05:57 +0000)]
r1820: added a strcmp_safe() that handles NULL pointers. Needed for the
search torture test, as some servers return really bad entries.
(This used to be commit c900ebb3ac18d77ab334d3bf5259b3bba547b09c)

16 years agor1819: changed "smb ports" to be a LIST parameter type in loadparm (its a classic...
Andrew Tridgell [Sat, 14 Aug 2004 05:56:12 +0000 (05:56 +0000)]
r1819: changed "smb ports" to be a LIST parameter type in loadparm (its a classic case for a list)
(This used to be commit e53d32c65ab0751b3e01f4f699f5d0e1892369ae)

16 years agor1818: _really_ fixed epmapper this time, it was using more than one old rpc interfac...
Andrew Tridgell [Sat, 14 Aug 2004 05:53:53 +0000 (05:53 +0000)]
r1818: _really_ fixed epmapper this time, it was using more than one old rpc interface method.
(This used to be commit ec41c73ae136bffea4285ade8be322b3c4cf3629)

16 years agor1817: fixed fault code generation for unimplemented functions in epmapper
Andrew Tridgell [Sat, 14 Aug 2004 05:29:16 +0000 (05:29 +0000)]
r1817: fixed fault code generation for unimplemented functions in epmapper

thanks to volker for spotting these!
(This used to be commit b2152912caee1020fa2e2ea13728fc78a875bc5d)

16 years agor1816: here's the initial idea of libnet
Stefan Metzmacher [Sat, 14 Aug 2004 03:32:42 +0000 (03:32 +0000)]
r1816: here's the initial idea of libnet

metze
(This used to be commit dcb3ea32da6d7cf93e6bdda9b839faf604ba3b6a)

16 years agor1815: Update parser for recent changes to perl parser.
Tim Potter [Sat, 14 Aug 2004 01:26:11 +0000 (01:26 +0000)]
r1815: Update parser for recent changes to perl parser.
(This used to be commit 1d0bde1c77f511a3de5815c2d0e5319c74daf18a)

16 years agor1814: Fix the build.
Volker Lendecke [Sat, 14 Aug 2004 01:11:34 +0000 (01:11 +0000)]
r1814: Fix the build.

Tridge, in rpc_epmapper.c there's a whole bunch of "return
NT_STATUS_NOT_IMPLEMENTED". You told me that's wrong, you should generate the
correct fault pdu. Or is epmapper special in that respect?

Volker
(This used to be commit 48df39c133cd08f1eb8007c7986a675f129d0cae)

16 years agor1805: ...I just forgot to say that the sasl bind actually works now:-)
Stefan Metzmacher [Fri, 13 Aug 2004 07:10:46 +0000 (07:10 +0000)]
r1805: ...I just forgot to say that the sasl bind actually works now:-)

metze
(This used to be commit a2cd725681fa7b10a5cca337554be17f628465c0)

16 years agor1804: get a bit closer to a sasl bind
Stefan Metzmacher [Fri, 13 Aug 2004 07:04:45 +0000 (07:04 +0000)]
r1804: get a bit closer to a sasl bind

metze
(This used to be commit d0278c6bef622feeda8da7a120e3d1abce4a74e5)