1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-17 02:05:21 +03:00

7436 Commits

Author SHA1 Message Date
Tim Potter
9a02c6b4e8 Converted getprinterdriver to WERROR - it always returns dos error 6
(invalid handle) though.  )-:
(This used to be commit 7bfd1f35e4e194f8a2f07046e4a6c005c256c05b)
2002-01-07 03:33:46 +00:00
Tim Potter
0094af05ed Spelling fix.
(This used to be commit dfcc97a15837e2d13561e023ad5a7532faa441b8)
2002-01-07 02:58:31 +00:00
Tim Potter
105e35a6e4 Don't log the password in pam_sm_authenticate() unless DEBUG_PASSWORD is
defined.  This is done with --enable-developer mode.
(This used to be commit caff5dc1d66953cb52f94cd6407778b23e1810eb)
2002-01-07 02:57:06 +00:00
Gerald Carter
5f63565f2d sync up comments with 2.2
(This used to be commit 3d4adad1501fc02ee0c60c69c01a92bdb16a1711)
2002-01-06 23:21:23 +00:00
Tim Potter
2f25e5118f Converted enumprinters and enumports cmd functions to use WERROR
values returned from cli functions.  They are converted to NTSTATUS codes
using the error map functions.

Do buffer size loop checks by setting offered = 0 and using the return
value of needed in the next call.
(This used to be commit 4efbdda3fcfd1fad2f2b8909d250735382497836)
2002-01-06 09:03:48 +00:00
Tim Potter
b77eec91dc Converted enumprinters and enumports cli functions to return WERRORs.
Make the offered and needed buffer size into parameters.
(This used to be commit 9d9e7fb74d420913cda1c592765b498fd64384f0)
2002-01-06 09:02:14 +00:00
Tim Potter
969d82ef25 Check for winbind separator in user name for cli_session_setup()
Patch from Alexander Bokovoy <a.bokovoy@sam-solutions.net>
(This used to be commit 6c42bf208976ed3020e57efff6281f984d9fe893)
2002-01-06 04:03:26 +00:00
Tim Potter
cd0772e51e spoolss rpc client cleanup:
- converted OpenPrinterEx and ClosePrinter to WERROR instead of NT_STATUS
 - doc
(This used to be commit 248d114f856f1adb76c903b683e0927530771443)
2002-01-06 03:54:40 +00:00
Tim Potter
009d7414d2 Define a rpc_client doc group.
(This used to be commit 87bc0a71ecb0fc047fec5e0d240045fab09dd5d0)
2002-01-06 03:49:28 +00:00
Tim Potter
21881b9c35 Minor doc cleanups.
(This used to be commit 5c8f6be290e78c4e72c821abdc9f06b7150e68e7)
2002-01-06 03:48:41 +00:00
Tim Potter
bf4c3d3659 Added a get_dos_error_msg() function to mirror the get_nt_error_msg()
One day I'll get around to refactoring the DOS error handling so it mirrors
the NT error handling code.
(This used to be commit f4535721d350f3068e8dfb612331eb609ea03da0)
2002-01-06 03:41:29 +00:00
Tim Potter
84dbcd6147 Display nicer message when server name could not be resolved.
(This used to be commit 950d8e365626ecbd82e9ee965dc1724dc50c64a4)
2002-01-06 03:24:51 +00:00
Tim Potter
d1baa1fda9 DOS error 31 is ERRgeneral, General Failure. This is the WERROR equivalent
to NT_STATUS_UNSUCCESSFUL according to AB's funky new error map.
(This used to be commit 9c968fbb017d3369ac207e65348a9a22dbed0213)
2002-01-06 02:55:37 +00:00
Andrew Bartlett
b8b228d961 Get this code back to where it belongs...
Apparently (and I will doublecheck) its legal to do an annoymous session setup
when we negoitiated SPNEGO, but we can't do an authenticated one becouse we
didn't give a challange.

Andrew Bartlett
(This used to be commit 08a5c5bf940fac7a779be01db01ae7d97df80f79)
2002-01-06 01:37:14 +00:00
Andrew Bartlett
b283dba09d Some more SPNEGO fixes.
(This used to be commit 0e564cb32acc70c1fc43f1be5ceb3637f0dc7361)
2002-01-06 00:49:23 +00:00
Andrew Tridgell
cba3586456 fixed another DATA_BLOB constructor
(This used to be commit c6affae4bf749a67c90468702eb6d4eeb97a4363)
2002-01-05 23:34:06 +00:00
Andrew Tridgell
b0e4827b97 simple fix for creating blank data blobs
(This used to be commit 08bb2dfec2ca0282e9268d09da2b966d3bdf493a)
2002-01-05 23:30:59 +00:00
Gerald Carter
ca0ccee23f merge from 2.2
(This used to be commit 67c6a24344e31c417c8c6f5db27697e268524401)
2002-01-05 19:27:26 +00:00
Andrew Bartlett
341f87090b Fix up the SPNEGO segfault.
(This used to be commit 17b1c83dd02035048bd38b305460c96c6c09343a)
2002-01-05 12:04:33 +00:00
Gerald Carter
40cddb6588 yeah! I think I figured it out now
(This used to be commit 9713bce0354009fb4d9c06989ff86900101eae0c)
2002-01-05 06:11:29 +00:00
Andrew Bartlett
2e28f8ff0e I've decided to move the auth code around a bit more...
The auth_authsupplied_info typedef is now just a plain struct - auth_context,
but it has been modified to contain the function pointers to the rest
of the auth subsystem's components.

(Who needs non-static functions anyway?)

In working all this mess out, I fixed a number of memory leaks and moved the
entire auth subsystem over to talloc().

Note that the TALLOC_CTX attached to the auth_context can be rather long-lived,
it is provided for things that are intended to live as long.  (The
global_negprot_auth_context lasts the whole life of the smbd).

I've also adjusted a few things in auth_domain.c, mainly passing the domain as
a paramater to a few functions instead of looking up lp_workgroup().  I'm
hopign to make this entire thing a bit more trusted domains (as PDC) freindly
in the near future.

Other than that, I moved a bit of the code around, hence the rather messy diff.

Andrew Bartlett
(This used to be commit 12f5515f556cf39fea98134fe3e2ac4540501048)
2002-01-05 04:55:41 +00:00
Andrew Bartlett
5a9c2f74ab Add a talloc varient of the data_blob functions.
Also change the structure so it has its own (optional) 'free' pointer - so we
don't free() a talloc'ed version.

also split out the data_blob_clear() functionaility.

Andrew Bartlett
(This used to be commit 207ee8aac42cf4b35f07e496b15fdeabe50950bc)
2002-01-05 04:23:12 +00:00
Andrew Bartlett
aa045c08b2 Add a comment on how this error map was derrived.
This applies only to the NT->Dos map, I'm still trying to come up with a way to
do the reverse.
(This used to be commit 323dd422bd4bdeeee72c9200821e28f86d3072c8)
2002-01-05 04:04:03 +00:00
Gerald Carter
5ff40271a5 forgot a few files
(This used to be commit 9844ec33995316843567fc32d2ea276c565cf56c)
2002-01-05 03:53:42 +00:00
Gerald Carter
7d3cc61d26 merge from 2.2 and regenerate docs
(This used to be commit f7d900873c3553dde88d42d903b74dc49c9a6c71)
2002-01-05 03:52:39 +00:00
Andrew Bartlett
69d6c9fe1a One line fix to get smbmount working again.
This just turns of SPNGO becouse Win2k breaks if you attempt this and DOS
errors at the same time.

Andrew Bartlett
(This used to be commit 2c09907b537147189e77810f586558be6004733b)
2002-01-05 03:45:50 +00:00
Jeremy Allison
86b3aeb42a Added DEBUG in set_share_mode to track down logic insanity.
Jeremy.
(This used to be commit 32f4f3a45d473b3be1ae07f6c60897c12323d60c)
2002-01-05 02:37:23 +00:00
Andrew Bartlett
f358c51618 Add a touch of const
(This used to be commit b2af4372b1dac2e8f283184191fbb0231409a625)
2002-01-05 01:33:45 +00:00
Andrew Tridgell
9c7b042f31 print the timezone in the same format as 'date +%z' - much better for scripting
(This used to be commit faa1b222f170abe34f6930bb3493cbe8b4df4082)
2002-01-04 23:02:14 +00:00
Jeremy Allison
e86102e868 Missed error return is can_rename fails.
Jeremy.
(This used to be commit 2db99fa49b538e230f2c606d1004871111ea2bf6)
2002-01-04 22:30:00 +00:00
Jeremy Allison
eb61d92ca7 Re-wrote the guts of the rename_internals code to cope with a reported
bug (renaming name -> name was failing, on W2K it succeeds). Simplified
the common case, did a lot of work to ensure NT error codes are correctly
reported back to client.
Jeremy.
(This used to be commit e6b27f3d8069ae304baaebe09341c58d46b05fe4)
2002-01-04 21:11:35 +00:00
Gerald Carter
8942e906f0 sync with 2.2
(This used to be commit 9e3b432c57747e6fd876c53a576858ef1227ba8e)
2002-01-04 00:05:23 +00:00
Jeremy Allison
02b23d9d2c Added WERROR for non local domain.
Jeremy.
(This used to be commit 6c51d90f13a40359baef08424f7ea1940f93d511)
2002-01-03 23:26:00 +00:00
Jeremy Allison
eca99f5c22 Fixed nasty cast of tdb_delete in traversals.
Jeremy.
(This used to be commit a0cdec3acc82d1ce0292fadd4b8dac23638450f3)
2002-01-03 22:48:48 +00:00
John Terpstra
b4e634f436 Note: This does NOT work yet. More work is in progress - please wait before using.
(This used to be commit 72bda5e82173a95af58c58f8b454850f8794c356)
2002-01-03 22:26:54 +00:00
Jeremy Allison
35fff73f10 Don't use static memory, malloc it...
Jeremy.
(This used to be commit 8aee8211cddb6705c9aa545fc57ece2c721ef448)
2002-01-03 21:48:17 +00:00
Jeremy Allison
894e87cb32 Fix the fix.... (sigh).
Jeremy.
(This used to be commit 73cf9d04f6a35aa3b6bdb4e921de34e0021b5a2c)
2002-01-03 21:37:45 +00:00
Jeremy Allison
41dd759a50 Ensure modtime is set correctly on destination files in copy command.
Jeremy.
(This used to be commit fb1ab02553e01df0464f0df3eea7ae6a66b4104b)
2002-01-03 20:49:06 +00:00
Jeremy Allison
791433434e Fixed embarressing 16k strack trashing bug :-(.
Jeremy.
(This used to be commit b52c3219d6f46df6e98742447d65ecda2ecbac65)
2002-01-03 19:57:12 +00:00
Andrew Tridgell
9e0297b3ed added nTSecurityDescriptor field to host acct dump
(This used to be commit f383e19e095eab975bf3d4e622a5c1d1f823171b)
2002-01-03 11:59:33 +00:00
Andrew Bartlett
80437a4cc0 Update the NT_STATUS -> DOS error table.
This new table is rather different to the old one (see diff posted to the
list for a sorted list of differences) and needs a *lot* of testing.

It does however seem to line up much better with what NT is using, as
exampled by the change to the OBJECT_NAME_COLLISION DOS error, it now matches
win2k where it didn't before.

I can't see any critical errors we now get wrong, and I know that the auth
errors are correct as per my on-the-wire observations.

This table was produced (and I hope to comment this better later) by
using the ERRMAPEXTRACT smbtorture tool, a Win2k domain member and the
'name_to_ntstatus' auth module on the HEAD PDC.  This module returned
the username as the error, and the NT box was forced to give me a dos
error becouse thats all I negotiated on that connection.  Hence the map.

Andrew Bartlett
(This used to be commit a855dfb2e0b899d03087860e5462c2aed3ca4cad)
2002-01-03 08:36:47 +00:00
Martin Pool
092f962b9c Clarify doc for SAFE_FREE.
(This used to be commit 269a7d3c9ba8ca1444653c1aa56b843b8b1df08b)
2002-01-03 07:49:07 +00:00
Andrew Bartlett
8f88157dce Make a couple more of the warnings also be C comments
(This used to be commit 8f343beae7455141ce6a5e27e46ed2970aed8e7f)
2002-01-03 07:42:15 +00:00
Andrew Bartlett
a8f356a71f A few changes to always output the erorr mapping even when the error was
'squashed' or the session setup succeeded.  (How the latter occurs I don't know).
(This used to be commit d879d2ffffc47ce161afb3d96bc5c4b92de662c3)
2002-01-03 07:36:26 +00:00
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