1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-28 07:21:54 +03:00
Commit Graph

7383 Commits

Author SHA1 Message Date
Martin Pool
e28cdc0931 talloc accounting now includes number of chunks and bytes allocated.
(This used to be commit cd25d01e42)
2002-01-03 05:34:33 +00:00
Martin Pool
588a59b505 Send back talloc allocation information when POOL_USAGE is received.
(This used to be commit 7cb8e95f93)
2002-01-03 05:26:57 +00:00
Martin Pool
3c2b7777ed Add talloc_asprintf_append, which grows an existing string buffer to
contain new print-formatted information.  (Also
talloc_vasprintf_append.)  Idea borrowed from glib.
(This used to be commit 53723e8748)
2002-01-03 05:25:30 +00:00
Martin Pool
9c409a9e39 smbd now sends a reply to MSG_REQ_POOL_USAGE, though it's pretty
boring so far.
(This used to be commit 9b217dce7f)
2002-01-03 04:22:55 +00:00
Martin Pool
91ec6cf19f smbd should register to receive MSG_REQ_POOL_USAGE. Response should
be information about memory usage, but this is not done yet.
(This used to be commit 830a126a44)
2002-01-03 03:53:41 +00:00
Tim Potter
9c1ddeca6f Fixed crash bug in display_print_info_2()
(This used to be commit b70f870cd9)
2002-01-03 03:51:13 +00:00
Martin Pool
cb039d5cf1 Ignore dmalloc.log.
(This used to be commit cfa89169e0)
2002-01-03 03:47:09 +00:00
Martin Pool
1a09c706fc If we receive a message that is not handled then emit a gentle warning
to the log.
(This used to be commit 53dd8b4539)
2002-01-03 03:42:33 +00:00
Martin Pool
07a6e0d311 debug output on receipt of message.
(This used to be commit 6bd5b7ce8e)
2002-01-03 03:35:02 +00:00
Martin Pool
ab48e29f62 Oops, rerun autoconf after last change.
(This used to be commit 73743c2ec9)
2002-01-03 03:14:51 +00:00
Tim Potter
ba1b5383cc Welcome to preprocessor hell. Had to put a #ifndef around SAFE_FREE to
stop smb_macros.h and tdb.h from fighting with each other.

I tried to rearrange the #include file order but that breaks other stuff.
Aargh!
(This used to be commit aae8cc6e45)
2002-01-03 03:07:51 +00:00
Martin Pool
c3a5645121 Add instructions on using dmalloc.
(This used to be commit ee6d33a8db)
2002-01-03 03:04:35 +00:00
Tim Potter
af8ed15401 Fixed crash bug in display_print_info_1()
(This used to be commit d1564fbf1f)
2002-01-03 02:48:23 +00:00
Tim Potter
9164ed6220 Initialise result on success in cli_spoolss_enum_printers() so we don't get
stuck in an infinite loop.
(This used to be commit fe1fb6589a)
2002-01-03 02:47:50 +00:00
Tim Potter
71c04c5f9f The werror<->nt status code map has changed and has broken all the spoolss
commands in rpcclient.  Replacing ERROR_INSUFFICIENT_BUFFER with
NT_STATUS_BUFFER_TOO_SMALL fixes it.  Yay!

I always thought the caller (i.e cmd_spoolss.c) should take care of the
whole requested/needed buffer size thingy though...
(This used to be commit 6c950db05a)
2002-01-03 02:36:08 +00:00
Tim Potter
428923787e Removed unused #define
(This used to be commit ab1bd916cf)
2002-01-03 02:28:51 +00:00
Jeremy Allison
4178f211d1 debug statement fixups.
Merge SAFE_FREE fix in tdb from 2.2, and IRIX fix.
Jeremy.
(This used to be commit eb66074665)
2002-01-02 23:28:55 +00:00
Gerald Carter
bb70b7811f removed stuff I wasn't using
(This used to be commit 27ffce157a)
2002-01-02 23:11:24 +00:00
Gerald Carter
93913173ee sync up ldap defaults with 2.2
(This used to be commit 59174310d4)
2002-01-02 22:44:15 +00:00
Gerald Carter
45a475dccb ooops./ forgot one
(This used to be commit 501f3f3a8f)
2002-01-02 22:22:22 +00:00
Gerald Carter
8718f839be fixing compile error
(This used to be commit 999a2f5c84)
2002-01-02 22:02:11 +00:00
Jeremy Allison
bf8e91e362 We should be SHLD not LINK when creating shared libraries.
Tidyup in passdb.c
Jeremy.
(This used to be commit 676eea502a)
2002-01-02 21:54:38 +00:00
Andrew Bartlett
ed51782f83 We go to a lot of effort to avoid strcpy() in Samba, but its not much use if
people start doing using strlen(src) in strncpy() :-)

This occured when the talloc based passdb was reverted in favor of a pstring
based one.  In the talloc version this was fine, becouse the buffer was
strlen(src) bytes long.  This no longer applies...

This doesn't seem to have broken anything, but I'm chasing up an oddity with NT
password changing from the last merge.

Test & MERGE for 2.2.3

Andrew Bartlett
(This used to be commit 673ece2841)
2002-01-02 09:02:28 +00:00
Martin Pool
4f3a2be2b9 Add prs_dump_before to dump everything from the start of the prs
buffer up to the current position, and use this to dump pipe buffers
just before parsing.
(This used to be commit 92a3ab274e)
2002-01-02 07:48:07 +00:00
Andrew Bartlett
a3f891dbd2 Actually enforce the passdb API.
Thou shalt not reference SAM_ACCOUNT members directly - always use
pdb_get/pdb_set.

This is achived by making the whole of SAM_ACCOUNT have a .private member,
where the real members live.  This caught a pile of examples, and these have
beeen fixed.

The pdb_get..() functions are 'const' (have been for some time) and this
required a few small changes to constify other functions.

I've also added some debugs to the pdb get and set, they can be removed if
requested.

I've rewritten the copy_id2x_to_sam_pass() functions to use the new passdb
interface, but I need the flags info to do it properly.

The pdb_free_sam() funciton now blanks out the LM and NT hashes, and as such
I have removed many extra 'samr_clear_sam_passwd(smbpass)' calls as a result.

Finally, any and all testing is always appriciated - but the basics seem to
work.

Andrew Bartlett
(This used to be commit d3dd28f6c4)
2002-01-02 07:41:54 +00:00
Jeremy Allison
71f982c9f2 Make user enumeration work for w2k and win9x.
This means different return sizes depending on client bugs. This sucks :-(.
Jeremy.
(This used to be commit f6592628eb)
2002-01-02 07:27:33 +00:00
Andrew Bartlett
493c34b8f3 Another touch of 'const'
(This used to be commit 3d812aacff)
2002-01-02 06:55:21 +00:00
Martin Pool
50c1b611ba Doc.
(This used to be commit b354163834)
2002-01-02 06:29:56 +00:00
Martin Pool
05ae7ca1cb Also capture received data
(This used to be commit 93fadcd111)
2002-01-02 06:08:02 +00:00
Martin Pool
f23cc6ab25 struct cli_state remembers the pipe name that it's talking to, if any,
so that we can print it in later debug messages.

Call prs_dump to dump out requests sent by the client at sufficiently
high debug levels.
(This used to be commit 9973b22b34)
2002-01-02 05:39:49 +00:00
Martin Pool
8d5f5825c4 struct cli_state remembers the pipe name that it's talking to, if any,
so that we can print it in later debug messages.
(This used to be commit 37ae84f782)
2002-01-02 05:38:09 +00:00
Andrew Bartlett
1f9c32e738 Minor update to make the output 'real C'. (The output is intended to be a C
format table for inclusion back into Samba).

Andrew Bartlett
(This used to be commit 95abb2473b)
2002-01-02 03:54:40 +00:00
Tim Potter
f7b29c59ba Removed reference to rpc_client/cli_netlogon.o from dependencies for
samsync.  The libsmb version should do fine.
(This used to be commit 001fe3481f)
2002-01-02 00:52:30 +00:00
Simo Sorce
9d006c08f4 the pdbedit tool manpage
(This used to be commit 4aecb650e1)
2002-01-02 00:40:47 +00:00
Andrew Tridgell
1425c6ec32 try to handle broken const in headers on cray unicos
(This used to be commit 8143052e69)
2002-01-01 06:55:33 +00:00
Andrew Bartlett
8d09eecf69 This brings the NT->DOS error mapping into better line with what NT does.
I'll post the changes to the actual map to the list for comment, but this fixes
the 'unknown' case.

Andrew Bartlett
(This used to be commit 024843a2ce)
2002-01-01 06:16:43 +00:00
Andrew Bartlett
02ad29785b Add a function to convert 'NT_STATUS...' strings back into their actual error
code.

Andrew Bartlett
(This used to be commit f0089b089b)
2002-01-01 05:52:02 +00:00
Andrew Bartlett
03aea8fc90 Allow usernames in the form of 'NT_STATUS_....' to map to that as the error
when using the 'name_to_ntstatus' auth module.

This could be useful in testing.

Andrew Bartlett
(This used to be commit 5cdc67d0bd)
2002-01-01 05:51:03 +00:00
Andrew Bartlett
62d528520b Now that winbind doesn't rely on this, we may as well remove it...
Andrew Bartlett
(This used to be commit 6673fdda3c)
2002-01-01 05:49:27 +00:00
Andrew Bartlett
2de935d89f Further rpc_client removal, this time from winbindd.
Also removed the dependency on auth_util.o, which makes things nicer.

Finally, this kills off the NECESSARY_BECAUSE_SAMBA_DEPENDENCIES_ARE_SO_BROKEN_OBJ
makefile variable - becouse Samba dependencies are starting to be sane again!

Andrew Bartlett
(This used to be commit 4609edcac3)
2002-01-01 04:50:45 +00:00
Andrew Tridgell
c0fb3e1396 renamed ans1.h to asn_1.h to prevent conflict caused by krb5 headers
on some platforms using "" instead of <> in include statements
(This used to be commit d0ba307032)
2002-01-01 04:05:10 +00:00
Andrew Bartlett
4a6d1318bd A farily large commit:
- Move rpc_client/cli_trust.c to smbd/change_trust_pw.c
  - It hasn't been used by anything else since smbpasswd lost its -j

 - Add a TALLOC_CTX to the auth subsytem.  These are only valid for the length
   of the calls to the individual modules, if you want a longer context hide it
   in your private data.

   Similarly, all returns (like the server_info) should still be malloced.

 - Move the 'ntdomain' module (security=domain in oldspeak) over to use the new
   libsmb domain logon code.  Also rework much of the code to use some better
   helper functions for the connection - getting us much better error returns
   (the new code is NTSTATUS).

   The only remaining thing to do is to figure out if tpot's 0xdead 0xbeef for
   the LUID feilds is sufficient, or if we should do random LUIDs as per the old
   code.

   Similarly, I'll move winbind over to this when I get a chance.

This leaves the SPOOLSS code and some cli_pipe code as the only stuff still in
rpc_client, at least as far as smbd is concerned.

While I've given this a basic rundown, any testing is as always appriciated.

Andrew Bartlett
(This used to be commit d870edce76)
2002-01-01 03:10:32 +00:00
Andrew Bartlett
ef40945a5b Add a specialised version of tpot's libsmb samlogon code for use with
presupplied challange-response pairs, and only using the 'network' version.

This will be used to move the auth subsystem over to a libsmb (rather than
rpc_client) base.

Andrew Bartlett
(This used to be commit fe9d777915)
2002-01-01 02:34:29 +00:00
Andrew Bartlett
b5666e2874 Fix up C99 comment.
// -> /* */
(This used to be commit a308abbab7)
2002-01-01 02:31:32 +00:00
Andrew Bartlett
6694109c04 Named constants are always much better than magic numbers...
(I defined the constants when I put in 'net rpc shutdown')

Andrew Bartlett
(This used to be commit 4d90cc1d99)
2002-01-01 00:18:47 +00:00
Jeremy Allison
38851c64d9 last_enum not used.
Jeremy.
(This used to be commit efbec935fe)
2001-12-31 23:24:48 +00:00
Jeremy Allison
120607cab1 Fixed enumeration of a large (<1500) users from a Samba PDC to a W2k
member server. Firstly, use the same max enumeration size (0x400) as W2K
uses, otherwise W2K won't ask for any more. Secondly, if a enumeration
request with a non-zero offset comes in on a handle that hasn't started
an enumeration, don't bitch about it (return NT_STATUS_UNSUCCESSFUL),
just load the db on that handle and return at that offset.
Jeremy.
(This used to be commit 0b7da4a50e)
2001-12-31 22:37:51 +00:00
Andrew Tridgell
927e860477 added a simple test to see whether building shared libraries actually
works
(This used to be commit 3aeefbca4f)
2001-12-31 22:10:24 +00:00
Simo Sorce
7a3cac39a5 ops, froget to set the values.
jerry, can you look at theis where we use standard_sub_advanced() fns?
I think this structure should be backported to 2.2 because we do not know if the SAM_ACCOUNT strings have enough space to contain the "substituted" string.
(Yes, just now we know they are pstrings, but we may change them into alloced one, I'm a strong suported of alloced strings as 1024 bytes are not always enough and are often too much)
(This used to be commit 29b3b5e929)
2001-12-31 16:01:04 +00:00
Simo Sorce
f30dd2ec5b const religion
(This used to be commit c0904d9617)
2001-12-31 15:48:32 +00:00