1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-25 06:04:04 +03:00

8971 Commits

Author SHA1 Message Date
Andrew Bartlett
224e73803b This makes smbcacls a bit easier to use and debug.
Allow connection in the form of //server/share instead of just \\server\share
and show the reason for failure from cli_full_connection().

Andrew Bartlett
(This used to be commit 4687fac69d995e49a0f3701fb170d64af1ba4a47)
2002-07-13 09:03:41 +00:00
Andrew Tridgell
f5b6ef1b65 fix directory listing on win9x.
it turns out this is tricky to get right for both win9x and w2k with
and without unicode. This patch seems to do the trick.
(This used to be commit 01ebe5fff2b3cb29f083afb224b1257364ac5d80)
2002-07-13 08:37:06 +00:00
Richard Sharpe
3faee01c7c Some fix ups but committing so Andrew can look at the problem I have.
(This used to be commit 146ba3eb49bade732d57691d8ce181ef6608e0cb)
2002-07-13 07:18:43 +00:00
Richard Sharpe
92c597a9b0 Fix up the include file that had problems as well.
(This used to be commit 753df0b89767261420f242da21d5dfb5403c966b)
2002-07-13 05:43:34 +00:00
Richard Sharpe
5c682b7337 Add these two files I forgot.
(This used to be commit 5706e6af168b14a40cb1e306c2911182260ff0d3)
2002-07-13 05:13:02 +00:00
Richard Sharpe
1e8952c684 Fix some multibyte problems that I forgot about.
(This used to be commit 481a70f4f005a778a24e2193f8e760217ee3c946)
2002-07-13 05:11:58 +00:00
Andrew Tridgell
a0489b36c1 fixed a stdin bug in XFILE that prevented 'print -' from working
(This used to be commit e66e354421b8be64a1b6774bde4d187532ee7690)
2002-07-13 04:28:01 +00:00
Andrew Tridgell
ebfff1a475 - fixed a crash bug for 'print -'
- removed an unused variable
(This used to be commit 66af95716de470600b0db58bdf8a1f0c15dba036)
2002-07-13 03:51:28 +00:00
Jeremy Allison
e40abc248f The changes in make_sec_desc to make us match W2K broke the marshalling/unmarshalling of
security descriptors. We need to calculate the maximum offset and set the offset
back after reading/writing every field in the SEC_DESC.
This was *nasty* to find....
Jeremy.
(This used to be commit 175d43980e57c25582d8ab859f5730283e82f3b2)
2002-07-12 21:09:24 +00:00
Jeremy Allison
8ba2c4e55d We must ZERO_STRUCT before using the buffer in copy_unistr2.
Fixes addprinterdriverex.
Jeremy.
(This used to be commit d3c73e59708eeb1ee4642fb31fcfc0ec2fd28070)
2002-07-12 18:10:24 +00:00
Andrew Tridgell
695b346ab5 fix setting machine passwords in the case where a user account of the
same name as the machine name exists. (we ended up setting the users
password, not the machines password!)
(This used to be commit fe1e6233c6f0a5654bcc3ab34f65bb570efc69b1)
2002-07-12 02:28:27 +00:00
Richard Sharpe
669358c05f Commit Tom Jansen's changes to head.
(This used to be commit d3fdce07ab5955abd1f923127ae9eb5006aea505)
2002-07-11 23:33:00 +00:00
Tim Potter
46deff915e Regenerated.
(This used to be commit 7ead9602ce8c30a57cb83d56fb76228945a7599f)
2002-07-11 23:18:41 +00:00
Tim Potter
e4722d2fcb Usage fixes from APPLIANCE_HEAD.
(This used to be commit 952d722a3bba15b7a10b4cbabb5548f4dde682d7)
2002-07-11 23:11:42 +00:00
Tim Potter
246ec5ad07 Another compile fix.
(This used to be commit ef5c9698b06c5df99ec07ee781cc54d2e348ba8a)
2002-07-11 23:08:51 +00:00
Tim Potter
cad934c8e9 Compile fix for flags field to cli_full_connection()
(This used to be commit 802f30a1b34888823c1fc80121b3917cb6825119)
2002-07-11 22:19:31 +00:00
Tim Potter
2dc9d4cfa1 Merge of init_domain_list() fix from APPLIANCE_HEAD.
(This used to be commit 66c9cab369e38284c71572bfb3643538e253a451)
2002-07-11 17:31:49 +00:00
Gerald Carter
fca23fab8a added copyright
(This used to be commit 0bb3d0f1ca9504d2430471558e1a0125d72ee82f)
2002-07-11 13:27:32 +00:00
Gerald Carter
bdfe11eaea added copyright
(This used to be commit dcb6d70706a0e86881588c3828ff5bd4d63d415f)
2002-07-11 13:17:57 +00:00
Andrew Tridgell
5d82785756 this implements a completely new strategy for fetching group
membership from an ADS server. We now use a 'member' query on the
group and do a separate call to convert the resulting distinguished
name to a name, rid etc. This is *much* faster for very large numbers
of groups (on a quantum test system with 10000 groups it drops the
time from an hour to about 35 seconds).

strangely enough, this actually *increases* the amount of ldap
traffic, its just that the MS LDAP server answers these queries much
faster.
(This used to be commit 5538048e4f6dd224b2990f3c6a3e99fd07065f77)
2002-07-11 05:28:08 +00:00
Gerald Carter
137570cb03 last check in for tonight.
* DeletePrinterDriverEx() now has the ability to delete
    driver files.  I need to do some more testing
    tro veriofy that we are in fact not deleting a file out from
    under another driver, but it looks ok so far.

  * DeletePrinterDriver() noiw deletes all versions of the
    specified driver (cversion == 0, 1, 2, 3)
(This used to be commit 17bb780e1327663fa2fcd6a3cb25dd461a29c537)
2002-07-11 04:53:39 +00:00
Andrew Tridgell
8fb570e6e0 this fixes the ads dump code
a char** isn't quite the same thing as a struct berval**  :)
(This used to be commit a92834ea9460bc49be99d6d5b0d41a817e6f0824)
2002-07-11 03:41:09 +00:00
Gerald Carter
0aadcff8ec all that is left to do is to actually perform the
file deletion now.  I have the file list.
One more commit should do it.
(This used to be commit 7207662504f585352b0ceeb99f8998ef58db7f15)
2002-07-11 03:27:12 +00:00
Gerald Carter
496e85dd81 intermediate work on DeletePrinterDriverEx(). This call
will actually delete driver files ( not yet though I don't think).
Just wanted to get it in since Jeremy and I are both
working on nt_printing.c
(This used to be commit 3fa6c3132950c9ff1c6a532d8264ee34a6b2b0ff)
2002-07-11 01:54:26 +00:00
Jeremy Allison
b60bb290e0 Up the printing tdb version number to 5 as I've changed it.
Jeremy.
(This used to be commit f4eff4a99edd49ab11d0fc061fdb4efe96e713f5)
2002-07-11 01:00:45 +00:00
Jeremy Allison
25148a148c *Experimental* new large-scaling printer code. Splits printing.tdb into
a separate tdb per printer, but only keeps (currently one) tdb open at
a time (although this is easily changed by changing a #define). Needs
scalability testing with large numbers of printers now....
Jeremy.
(This used to be commit b0909cfa14fc7ef29d2b98b56d52723570da782a)
2002-07-11 00:06:29 +00:00
Andrew Bartlett
78722434a6 If we get a SID from group mapping, no need to check it's prefix.
Just set it directly.

Andrew Bartlett
(This used to be commit 202202bc475f3b8500423b1a9ccf0adc80a4dc49)
2002-07-10 07:26:35 +00:00
Simo Sorce
fe23e902c6 some support functions to ease the next commit.
(This used to be commit 4be1c882be56ae0fe18bb134a1513e0e6f6965b0)
2002-07-09 23:59:46 +00:00
Gerald Carter
51eeaa494c 8-byte alignment needed for beginning driver_info_level_6.
Verified by looking at NT4 and 2k servers.  First time
for everything I guess.
(This used to be commit f57640720e4758176116bc2e1b578cf0e867f95f)
2002-07-09 23:23:19 +00:00
Tim Potter
8d26bc3581 Documented -I option to rpcclient.
(This used to be commit 9e64d6973b4a4015a1f0282b11654ed9716786bd)
2002-07-09 19:13:11 +00:00
Tim Potter
d2707f1059 Added -I option to rpcclient.
(This used to be commit 2674adf1b5c54da03e8a445ec1e12d382294d1c1)
2002-07-09 19:11:26 +00:00
Andrew Tridgell
5ae8fa2df1 make sure we disable referrals in all ldap searches - they are badly
broken
(This used to be commit 022073d140bae960613127a6d9422e443a8098c6)
2002-07-09 15:06:51 +00:00
Andrew Tridgell
3593e5baf7 fix declaration of global_in_nmbd
(This used to be commit 07de8418369dad1f015369e70e9303fea4130295)
2002-07-09 14:47:03 +00:00
Andrew Tridgell
7f42c53971 the last WINS update broke self registration when we are a WINS
server. The real problem is all the special cases we had for when we
are a wins server as opposed to when we are using a 'real' wins
server.

This patch removes the special cases. We now accept non-broadcast
packets from ourselves and we use ourselves as a wins server when we
are one. This gets rid of the special cases and simplifies things
quite a bit.

It all seems to work, but there are bound to be problems found later.
(This used to be commit 3e843d30158d05cdfba716bac7e5c0a75ae7a79c)
2002-07-09 14:17:26 +00:00
Andrew Bartlett
71b04673bb Make it clear that the debug comment is the same as the command being tested
for failure.

Andrew Bartlett
(This used to be commit 6e22f39df8c386781a4f51207a3ccd9c94d151f1)
2002-07-09 13:12:27 +00:00
Gerald Carter
f7ed521501 fixup ADDPRINTERDRIVEREX some more. unknown uint32 for now.
(This used to be commit b0f178f452a816c6a77b0f5a77fdd8930da98cac)
2002-07-08 22:01:51 +00:00
Jim McDonough
83060558c9 Fix length in snprintf invocation to account for "dn:" in sasl gssapi bind.
Also remove unused line which incremented pointer by the wrong length anyway.

Provided by Anthony Liguori (aliguori@us.ibm.com).
(This used to be commit 47b7a3e0f3d101a3bcffd33db6ef4c0672b57ae0)
2002-07-08 20:46:54 +00:00
Gerald Carter
18742edd2a fix typo
(This used to be commit be926c3a1a7fc79af62dd1830c56e9503f89f9dd)
2002-07-08 20:30:54 +00:00
Gerald Carter
e247cb8239 added parsing routines for SPOOLSS_ADDPRINTERDRIVEREX and
SPOOLSS_DELETEPRINTERDRIVEREX.  Ran them through some testing.
I know I'm off by 2 x uint32's in the former RPC.
(This used to be commit 55fbfd02ba917b74fd4df7a1aa8cc8c5a91e3e07)
2002-07-08 20:15:47 +00:00
Gerald Carter
100b8986ea * basic implementation of SPOOLSS_DELETEPRINTERDATAEX and
SPOOLSS_DELETEPRINTERKEY
* stub funnctions for SPOOLSS_ADDPRINTERDRIVEREX and
  SPOOLSS_DELETEPRINTERDRIVEREX
(This used to be commit d675974d0c04a68d48d90492005056d96697c96c)
2002-07-08 18:34:55 +00:00
Jeremy Allison
429400e449 Fix for LPRng from James Henstridge james@daa.com.au.
Jeremy.
(This used to be commit 9c93f8908919a02099884d393312ef27d4a2d24e)
2002-07-08 18:24:59 +00:00
Andrew Bartlett
21b9280cf5 Kill off const warnings - add a pile of const to various places.
(This used to be commit 1de04ec4735c19ec21cdef6e679cea17c734c5f6)
2002-07-08 02:14:57 +00:00
Andrew Bartlett
363de3ca12 Fix const warning
(This used to be commit 3d2f0635ed060fca0fa97c97ef850e57641aef19)
2002-07-08 01:40:35 +00:00
Andrew Bartlett
b2be8917e0 Jerry: Sorry if I am stepping on toes here, but this should fix the compile on
solaris CC (void* arithmatic) and fixes the other warnings (global variable
shadows) that gcc has with this file.

Andrew Bartlett
(This used to be commit 7ac6517bec0f425f99f419f6efd2a673b4ec0f83)
2002-07-08 01:06:38 +00:00
Andrew Bartlett
8dc39c1112 (this should have been part of the previous commit)
Add a function to display 'sid types' as strings - makes rpcclient outptut
and DEBUG() logs much eaiser to understand.

Move the enum for SID types to smb.h, becouse is really isn't LSA specific any
more.

Andrew Bartlett
(This used to be commit fc9739861104df4ddc93efab3275275307e4fbb9)
2002-07-08 00:40:57 +00:00
Andrew Bartlett
d29d29e4a2 Updates to the 'name -> sid' code:
Correct the 'none mapped' behaviour, (so that it matches Win2k) and  add a
function to make the SID types appear as text strings in logs/rpcclient.

Also, remove a silly case that would cause 'failure' to be 'success'.  (Might
look at this a bit more in future).

Andrew Bartlett
(This used to be commit c20d057f8821d13d3de61b319de44db23773516b)
2002-07-07 03:34:24 +00:00
Andrew Bartlett
48316a8c0e Copy the NT_TOKEN to the pipe, so the SAMR can use it for access control.
Andrew Bartlett
(This used to be commit 685a205445f5505c105ea421712c4b0468bbc127)
2002-07-06 05:08:35 +00:00
Andrew Bartlett
a7a6da4928 Increse the maximum non-unix-account ID (becouse the Compaq Test Drive systems
have a lot of users ;-).

Andrew Bartlett
(This used to be commit 2f164e28c349b8e20700e0e2fca204ed08228316)
2002-07-06 04:12:40 +00:00
Tim Potter
b1aec128e4 Remove C++ comments.
(This used to be commit 180374c4440765f3d08e5690967beb387ae3b54d)
2002-07-05 04:08:32 +00:00
Andrew Bartlett
4d37c48274 Fix debug comment.
(This used to be commit f32980c807adf8287436be0d5a223b9b1ce399b8)
2002-07-05 01:51:49 +00:00