1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-18 17:57:55 +03:00

7642 Commits

Author SHA1 Message Date
Andrew Bartlett
2998af3746 Workaround some 'smarts' in Win2k.
Win2k kills off connections that have issued a negprot but havn't yet issued
a session setup when a second connection appears from the same host.
(This used to be commit d47e61eb468218cae631e78edbd5d02982c78ab0)
2002-01-03 07:00:18 +00:00
Andrew Bartlett
f9866e88a6 Re-add bail on failure.
(This used to be commit da9444d98f212af8f1b1e1df191adf3c31d50f6d)
2002-01-03 06:10:25 +00:00
Martin Pool
f55c47b1ff Fix talloc msg registration
(This used to be commit 9a473ecf96fca35d146756c0c313b156aba8d9d9)
2002-01-03 05:57:41 +00:00
Martin Pool
0b66e623f2 Put a name on lp_talloc pool
(This used to be commit 472121749460a73f684bdbd02b828e89fad101af)
2002-01-03 05:57:21 +00:00
Martin Pool
5c1cb14d3e Make talloctort call talloc_describe_all before exiting
(This used to be commit 4877501da92762d233e5e4f24d1cb2bdd1eab8ae)
2002-01-03 05:57:02 +00:00
Martin Pool
cfec6d4498 Cope nicely with pools with no name.
(This used to be commit 86abefc17260387b6b68c71ad5587ef0212162c0)
2002-01-03 05:52:27 +00:00
Andrew Tridgell
34b9c7cee2 fixed ERRMAPEXTRACT torture to work with win2k
(This used to be commit 27143900e76033026ecd5a7b4525c0150f3a535d)
2002-01-03 05:48:49 +00:00
Martin Pool
af643d5f1f smbd children should also register for POOL_USAGE
(This used to be commit b46d874f4736493bdc4244ec6cdf95e77347e7d5)
2002-01-03 05:41:13 +00:00
Martin Pool
86eb3e0edd Cleanup format.
(This used to be commit a9b9ae47e1a11492f036b308c408c6a239a690f6)
2002-01-03 05:36:21 +00:00
Martin Pool
e28cdc0931 talloc accounting now includes number of chunks and bytes allocated.
(This used to be commit cd25d01e42e7874bc93f6ca336c5b2cde453bb52)
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 7cb8e95f9332d4c278d2aac5416f963639609d5a)
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 53723e874885936dd67483ebf46601fc73489d17)
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 9b217dce7fe89d1e36a91d7d011c2a9fe185e0d3)
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 830a126a442bdde28fc42e23e7260c344b6534b9)
2002-01-03 03:53:41 +00:00
Tim Potter
9c1ddeca6f Fixed crash bug in display_print_info_2()
(This used to be commit b70f870cd98e30d0ce74d322391cc79d65c5f838)
2002-01-03 03:51:13 +00:00
Martin Pool
cb039d5cf1 Ignore dmalloc.log.
(This used to be commit cfa89169e0bbc9cbd7448c96139ecaf459d0af81)
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 53dd8b45397f5de7660594b9287341f8f4c91c43)
2002-01-03 03:42:33 +00:00
Martin Pool
07a6e0d311 debug output on receipt of message.
(This used to be commit 6bd5b7ce8ec54faefcf129fcc98cc4440bb355d6)
2002-01-03 03:35:02 +00:00
Martin Pool
ab48e29f62 Oops, rerun autoconf after last change.
(This used to be commit 73743c2ec9da239f5d1340b68e92bdeb00cee97d)
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 aae8cc6e450a6a0b33045ed1e6d49f8eebeb48b2)
2002-01-03 03:07:51 +00:00
Martin Pool
c3a5645121 Add instructions on using dmalloc.
(This used to be commit ee6d33a8db2afc43c8784f2e43572ae8959126e5)
2002-01-03 03:04:35 +00:00
Tim Potter
af8ed15401 Fixed crash bug in display_print_info_1()
(This used to be commit d1564fbf1f4950c12516470d4566efeca3ad79e5)
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 fe1fb6589a0a4b4cff7a0ee0267f6e09e10e2a85)
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 6c950db05a2772f11b20cc13c65a123ea8b878c2)
2002-01-03 02:36:08 +00:00
Tim Potter
428923787e Removed unused #define
(This used to be commit ab1bd916cf59e12366d9005f6ce1cf6521ff02be)
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 eb6607466565bcd5b3800492d0bc1ae8a44da4f6)
2002-01-02 23:28:55 +00:00
Gerald Carter
bb70b7811f removed stuff I wasn't using
(This used to be commit 27ffce157a655e267f225126f586847e5a0b8614)
2002-01-02 23:11:24 +00:00
Gerald Carter
93913173ee sync up ldap defaults with 2.2
(This used to be commit 59174310d419aa835031c7a318d85fe25ba28227)
2002-01-02 22:44:15 +00:00
Gerald Carter
45a475dccb ooops./ forgot one
(This used to be commit 501f3f3a8fb5ea27155f8c2fe266f1f659d7d22d)
2002-01-02 22:22:22 +00:00
Gerald Carter
8718f839be fixing compile error
(This used to be commit 999a2f5c847c6a4336df60807e2fb546a2a4894f)
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 676eea502a1bb2114a6e8055ecaf97ecab2e3a91)
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 673ece2841e8b60966a17ece3591f9f202807332)
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 92a3ab274e6cf09a8ba39b91f8bbacba6de40b37)
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 d3dd28f6c443187b8d820d5a39c7c5b3be2fa95c)
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 f6592628eb526c487069bb3fcd809aca930e668e)
2002-01-02 07:27:33 +00:00
Andrew Bartlett
493c34b8f3 Another touch of 'const'
(This used to be commit 3d812aacff98eec62c748cb89109a2e58806d92d)
2002-01-02 06:55:21 +00:00
Martin Pool
50c1b611ba Doc.
(This used to be commit b354163834e0f2da7d3caacfe8d2ac6e2a6949e8)
2002-01-02 06:29:56 +00:00
Martin Pool
05ae7ca1cb Also capture received data
(This used to be commit 93fadcd1118b390605d2504bee63a1e8b6373ac5)
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 9973b22b34dc2a88a20b821d4e69f39d2a6aa6a3)
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 37ae84f782e1de6fcea92acb2189683cdf8e7e92)
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 95abb2473bb4f93df163a0e8af79d5292e1389b3)
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 001fe3481f26e27964b3d60c067524b45f085304)
2002-01-02 00:52:30 +00:00
Simo Sorce
9d006c08f4 the pdbedit tool manpage
(This used to be commit 4aecb650e1ece234fb7359270deb74fe1c1a4a16)
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 8143052e6917d4ae774192ed463ea7359cf0a5fb)
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 024843a2cedb0b9f06a3351c5838caea372b6c5c)
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 f0089b089b319009576bb39a076397bb44aff628)
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 5cdc67d0bda8ef41305cae9c5be70d11593ffdd8)
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 6673fdda3cb6b90189d8f82274fdffa89f68101b)
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 4609edcac3b70c11025f0c5aa0ddbeed93369c84)
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 d0ba307032340a22d77cb1d8fc78b4234e1a963c)
2002-01-01 04:05:10 +00:00