1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-19 10:03:58 +03:00

9635 Commits

Author SHA1 Message Date
Andrew Tridgell
65029365ba don't use ENCTYPE_ARCFOUR_HMAC unless the kerberos lib supports it
(This used to be commit 13dc9e37d2422c45ac5005dce26b349f88dbe505)
2002-09-04 10:58:42 +00:00
Andrew Bartlett
4b27cda285 Set default ACB attributes on 'unixsam' accounts. This means that machine
accounts added first to /etc/passwd will be honered correctly.  Also, users
'upgraded' to smbpasswd will have the right flags.

Andrew Bartlett
(This used to be commit 474cc910c73e5567313bac438c7324a80e2e90d8)
2002-09-04 08:08:03 +00:00
Tim Potter
45f9cbe033 Fix typo in comment.
(This used to be commit 47b8ec632e20aa86c34f6a0a82d886fcc76f3000)
2002-09-04 04:30:41 +00:00
Tim Potter
abff9f492a Quietened some debugs.
(This used to be commit ea26b3e8efcb83e16f7eb5add031a8df99046a69)
2002-09-04 02:57:16 +00:00
Gerald Carter
2d8e2cfc79 remove inet_aton()
(This used to be commit a7616b2b942eaf3be4e16fb9d38cdb42d8b95a94)
2002-09-04 01:15:01 +00:00
Gerald Carter
59f40f31ed DeletePrinterDriver[Ex]() fixes from APP_HEAD
(This used to be commit 04874134ed83847988bad5fcad3463395dc283fb)
2002-09-04 01:14:24 +00:00
Richard Sharpe
f04ca060c2 Fix the struct_blob.
(This used to be commit ce152b33c8b08905ea863d47a620c90ca47c8566)
2002-09-03 21:35:26 +00:00
Jeremy Allison
fedc33df42 Ensure we open UNIX fifo's non-blocking like we used to do.
Jeremy.
(This used to be commit 53f411df10f1e152d8d596cd24a2f66af9eb6e51)
2002-09-03 20:10:25 +00:00
Jeremy Allison
0d9cde2737 Fix crashbug discovered by "Kim R. Pedersen" <krp@filanet.dk> where
cli struct was being deallocated in a called function.
Jeremy.
(This used to be commit e33e9defa657aa54594bb0c27f9be2f7b12aab1b)
2002-09-03 19:19:20 +00:00
Jeremy Allison
a27923691b Formatting tidyup and additon of cli_close_connection() before bugfix.
Jeremy.
(This used to be commit 3b71529c694b5b1093d99b7ef80835e72b1f8436)
2002-09-03 19:18:12 +00:00
Richard Sharpe
fd13038acf Fix the client side NTLMSSP. It now works between smbclient and smbd!
However, it does not work with Win2K over 445 with raw NTLMSSP!
(This used to be commit 53e4975337be2cab3ee89f2f62e5659855365b73)
2002-09-03 17:36:00 +00:00
Richard Sharpe
fc15341b82 Parse the NTLMSSP Challenge in cliconnect.c.
This gets us closer ... Should have the challenge now. Need to check that it works.
(This used to be commit 5784835db95baf62362d35d3beab5d534cc776e9)
2002-09-03 06:34:40 +00:00
Tim Potter
7616f86a63 Conver cli_spoolss routines to use REGISTRY_VALUE and REGVAL_CTR code. Nice one jerry!
(Hey I thought I checked this in already?)
(This used to be commit f0c6303bebe0f494d70ac5371d7f6727413fe482)
2002-09-03 05:35:47 +00:00
Tim Potter
b2e4d8e5f9 Convert to new REGISTRY_VALUE cli_spoolss routines.
(This used to be commit 100aa8c893464d65f1b2225dab9dc5b58bbcff91)
2002-09-03 05:00:17 +00:00
Tim Potter
45664627c7 Fixed enumjobs command to use new JOB_INFO_CTR structure.
(This used to be commit 9db5be03617740e705bce51784fdb80784779acb)
2002-09-03 04:58:36 +00:00
Tim Potter
9a4110d3d1 Fix setprinterdata rpcclient command to use new cli_spoolss_setprinterdata
function.  Also fixed crash bug - I don't think anyone uses this
command anymore...
(This used to be commit 82c9bf2a6f03c801e701636aff726090483cea25)
2002-09-03 04:56:39 +00:00
Richard Sharpe
629ad6941e Make sure that an NTLMSSP negotiate blob has the correct stuff in it!
(This used to be commit b28267f52c0a5c175b067d7c2d10eca83c20e640)
2002-09-03 04:10:58 +00:00
Richard Sharpe
bb30cd160b Add type A to the small MSRPC generator ...
(This used to be commit 7f8fd5f270af74dcb3fd18af74233f7db4d8f9a7)
2002-09-03 03:53:50 +00:00
Richard Sharpe
2074556104 The session key in NTLMSSP AUTH blobs is actually an empty string.
Also, the negotiate blob has two ASCI strings encoded in the same way that the
UNICODE strings are, they are just in ASCII. The PARSER and Generator will have to deal with that.
(This used to be commit aaa7a681ce4ee52edb23c73a53aeabb07fd5b7d8)
2002-09-03 03:48:28 +00:00
Tim Potter
386a416950 Implemented client function for deleteprinterdataex.
(This used to be commit 6d792c683df3a4f97e1a04a57bf4890aab35aecd)
2002-09-03 03:21:53 +00:00
Tim Potter
f02b14f7c6 Change JOB_INFO_CTR to return a pointer to an array rather than array of pointers.
(This used to be commit e9b71b354d923b2cd0f028dd197e7ca81339ec3a)
2002-09-03 03:20:21 +00:00
Tim Potter
70a132c2d9 Change JOB_INFO_CTR to return a pointer to an array rather than array of pointers.
Implemented client function for deleteprinterdataex.
(This used to be commit f7641c8fd1079c2ef444d4bca5b97b1285733d10)
2002-09-03 03:18:19 +00:00
Tim Potter
62d6c7f8f8 Display printerdata values in hex.
(This used to be commit cdd64e0860bf05b115e0d107f6cb2b9e1f6d0e9b)
2002-09-03 01:56:05 +00:00
Tim Potter
2e93f20c1b Added utility function to convert python strings to hex dump + ascii.
(This used to be commit 7a6b6a8b4871065e3178223a7da5fafd8792b0bc)
2002-09-03 01:55:21 +00:00
Tim Potter
53495225a5 A printerdata browser I whipped up in about 5 minutes. (-:
Usage: gprinterdata //win2kdc1/fooprinter
(This used to be commit a3e52367c961070ce80ac3d4bba763ad9ec1007c)
2002-09-03 01:48:24 +00:00
Tim Potter
8e56ded996 Rewrote to use gtkdictbrowser.
(This used to be commit 6f78c4181449a995b9d5b2955981a20e4fdcc829)
2002-09-03 01:32:05 +00:00
Tim Potter
86d9d827ce Ignore *.pyc files.
(This used to be commit 519d1589a9358d8c2de01bd23159e3d552554131)
2002-09-03 01:30:26 +00:00
Tim Potter
2a18e89da7 Implement deleteprinterdataex
(This used to be commit a89fe79e222b36eda123ccdbca96badb7714776e)
2002-09-03 01:10:21 +00:00
Tim Potter
611f9c899d Return dictionary of printerdata in enumprinterdataex.
(This used to be commit 348b6778d8b9e42f27da51652c7198cc42048059)
2002-09-03 00:40:06 +00:00
Tim Potter
882ff84daa Return data from enumprinterdataex by deep copying on passed in tdb context.
(This used to be commit 1f629aa54ea3733c356c21f9f707b7f6075f6429)
2002-09-03 00:26:19 +00:00
Volker Lendecke
e0a8b7e0d0 usrmgr expects unicode as ProductType.
This looks a bit like a hack ;-)

Volker
(This used to be commit f673eac06ab4af97a4d28427f7444696402ae680)
2002-09-02 13:47:51 +00:00
Jelmer Vernooij
d38ab3857f Fix typo - Thanks Kai
(This used to be commit 8fb4534212e49d2f64f45cbeb481b9f4a69f3158)
2002-09-02 10:58:03 +00:00
Volker Lendecke
618b02416d small typo, kai is german :-)
(This used to be commit f435bf0095694a283db47e33c9eb1b5b6df13d03)
2002-09-02 09:02:40 +00:00
Tim Potter
1f914af0ec Add a 'key' field to printer data dictionary.
Implemented getprinterdataex, setprinterdataex and enumprinterdataex
(doesn't quite work yet).
(This used to be commit fb0f4f7bfe81923adfe71549973da2be57f0e71f)
2002-09-02 07:47:42 +00:00
Tim Potter
7ee13d88a1 make proto
(This used to be commit 88a97d2174eee884de52e848d30bc2c459bf28bb)
2002-09-02 07:44:48 +00:00
Tim Potter
fc8c6e7cf0 Added methods for getprinterdataex, setprinterdataex and enumprinterdataex.
(This used to be commit ac84b220aa2910abec309f2dc048adb84f609786)
2002-09-02 07:44:00 +00:00
Tim Potter
d75fc27fa1 Fix transposed args in open_pipe_creds() function.
(This used to be commit 63e59b0b737a1cd4ccc588b27e86be8262296052)
2002-09-02 07:42:39 +00:00
Tim Potter
f76bdfdcaa Implemented some more client side spoolss functions:
- getprinterdataex(), setprinterdataex(), enumprinterdataex()

Pass data type down to setprinterdata() fn instead of hardcoding REG_SZ.

Did some trickyness to get enumprinterdataex replies unmarshalled
properly.  The code seems to have been written to require the number
of entries returned before unpacking said entries.  Skip to the end of
the response and read the number of entries then jump back and process
the printer data.
(This used to be commit 6a1953f2431cc848abf210bdecd7080738991296)
2002-09-02 07:41:12 +00:00
Tim Potter
45fc6b503e Implemented some more client side spoolss functions:
- getprinterdataex(), setprinterdataex(), enumprinterdataex()

Pass data type down to setprinterdata() fn instead of hardcoding REG_SZ
(This used to be commit 62a60782533851b3380aa0db300fa16dfe6ca72e)
2002-09-02 07:37:35 +00:00
Simo Sorce
098b0b40fe wrong way to handle things, bug found by kai
(This used to be commit 58f912da47d18a6a548c50dc9d4298c6bec7ea0d)
2002-09-01 10:24:34 +00:00
Volker Lendecke
21a58f5a64 Fix segfault in net command
(This used to be commit 26bee60a419593a5afe4e48614f7f3fc414596a5)
2002-09-01 07:52:54 +00:00
Richard Sharpe
4cb4534dd6 Convert M_DEBUG(0 to M_DEBUG(10 for non-error cases ...
(This used to be commit d5c10e7dc76216db793319f9beb99dd12441e76b)
2002-08-31 16:17:36 +00:00
Andrew Bartlett
110954e8e1 Add a dash of static.
(This used to be commit e3af3adac1a01842bc5242e68393196497a1d71c)
2002-08-31 08:51:38 +00:00
Andrew Bartlett
7aca67c3e9 Add a bit of 'const' and move a lot of our 'repeditive' DEBUG() statements to
'DEBUGADD', so we don't repeat headers.  (Makes them much easier to read).

(Based on patch by kai)

Andrew Bartlett
(This used to be commit 9deada345c5f89f338530c4de62835cc1eeb3d0e)
2002-08-31 06:59:00 +00:00
Andrew Bartlett
40e9d9a54e Avoid writing unitialised bytes to the wire (and consequent valgrind warnings)
by zeroing them out if they don't have meaning.

Andrew Bartlett
(This used to be commit 52db44b5c01e16923393b0ec9a8d0f530be7bb2d)
2002-08-31 06:38:27 +00:00
Andrew Bartlett
724d1c3d2d Add a fix for 'query_disp_info level 2', which should return all machines in
the DC's SAM.  We were only returning workstations, not PDCs or BDCs.

Win2k's 'Computer Manager' tool uses this to list all computers in the domain
(as opposed to using NetBIOS).

Andrew Bartlett
(This used to be commit 004090edffef6cc04c286b9924b8c47ea3260ef2)
2002-08-30 23:56:37 +00:00
Jeremy Allison
35b7dfaa20 Fix bug with stat mode open being done on read-only open with
truncate.
Jeremy.
(This used to be commit 18b9cbd857177a911ef95c9322bdf0709161cd84)
2002-08-30 19:29:59 +00:00
Jeremy Allison
8e33a5d6cc Correct error message.
Jeremy.
(This used to be commit e9392c4a2e1e1ce44fcd1a1105477c17a3410f14)
2002-08-30 19:06:07 +00:00
Jeremy Allison
fcdecb7c29 Correctly fail opens with mismatching SYSTEM or HIDDEN attributes if we
are mapping system or hidden.
Jeremy.
(This used to be commit bd1e3df9ffa0717f26696a222e5ec6a0198b3352)
2002-08-30 18:57:23 +00:00
Herb Lewis
39e21d4ef2 off by one in writing to malloced array. this fixes smbd crash I saw at
the CIFS conference - finally got purify working
(This used to be commit cf9bb66aa9c3217cb8394058c65c84ffc6ae269a)
2002-08-30 18:56:46 +00:00