1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-16 09:57:47 +03:00

8885 Commits

Author SHA1 Message Date
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
Jeremy Allison
b4b5b0d92d Fix from Andrew Esh for coredump...
Jeremy.
(This used to be commit aad40894404d000b925024e2f63977f87ecb5a6b)
2002-07-04 21:32:08 +00:00
Gerald Carter
26d161ff85 fixed the geyed out registry keys. Stupid typo on my part.
Now on to plug in the printing tdbs to the registry view....

jerry
(This used to be commit 2a68e4529ad884e8c3800f9006bb1c2b18cfada4)
2002-07-04 13:18:56 +00:00
Andrew Bartlett
e48b3fe83c More code from "Kai Krueger" <kai@kruegernetz.de>, this time starting to make
the 'user cannot change password' button work.  Needs help from a future SAM
backend, but at least this parses the data, and returns an error.

Andrew Bartlett
(This used to be commit 0c4afe075aa018ec2be10f36fd3f0a5af2a032f1)
2002-07-04 13:11:54 +00:00
Gerald Carter
fafecde33a * fix seg fault caused by missing DLIST_REMOVE in free_fn()
* fixed constant vaolued returned by REG_UNKNOWN_1A
(This used to be commit 3b934e6a8550a03028eed9fe65c28401f429d591)
2002-07-04 12:51:26 +00:00
Andrew Bartlett
cd383bdc30 Patch to add security descriptors to the SAMR pipe.
This is not the final solution, I think this will probably changed with the
move to the new SAM subsystem, but it allows some research and gives us
somthing to start with.

It should also help with getting proper NT_TOKEN passing set-up.

Original patch by "Kai Krueger" <kai@kruegernetz.de>, which I have modified to
pass back NTSTATUS returns in more places and to use a little more common code.

Andrew Bartlett
(This used to be commit 43b72493708e74e089989db42a003a3862c793e6)
2002-07-04 08:45:45 +00:00
Andrew Bartlett
ba89facada Always free_conn() after all the DEBUG()s etc.
(This used to be commit 06529c0433bf75790aad27dd3cecf7005612c694)
2002-07-04 08:39:06 +00:00
Tim Potter
bc418dbbc0 Fixed incorrect debug.
(This used to be commit dd46ff7619129782963ec6ea727e5d731370ee7d)
2002-07-04 03:32:36 +00:00
Gerald Carter
a3c3960edc first cut at implementing support for browsing printer and driver driver
via regedt32.exe.  The regsitry.tdb is only a framework.  It is not
intended to store values, only key/subkey structure.  The data
will be retrieved from nt*tdb (for printers) creating a virtual view
of the data.

You can currently connect to a Samba box using regedt32.exe (haven't
tried regedit.exe).  Some basic keys are created in registry.tdb
for use.

There are two problems....

  * something is getting freed in the winreg code that causes heap
    corruption later on.  As long as you don't play with the winreg
    server functionality, I don't think you'll be bitten by this.

  * no access controls are currently implemented

  * I can't browse HKLM because regedt32 greys out the SYSTEM subkey.

ok so that was three....
(This used to be commit 542d3c93a998083c07b2afa91a7c927c376caf54)
2002-07-03 19:15:26 +00:00
Andrew Bartlett
8e52737efc Break up the passdb objects (to allow RPC clients to link without brining in
*.o) and implment new enum_dom_users code in the SAMR RPC subsystem.

Incresingly, we are using the pdb_get_{user,group}_sid() functions, in the
eventual hope that we might one day support muliple domains off a single
passdb.  To extract the RID, we use sid_peek_check_rid(), and supply an
'expected' domain SID.

The id21 -> SAM_ACCOUNT and id23 -> SAM_ACCOUNT code has been moved to
srv_samr_util.c, to ease linking in passdb users.

Compatiblity code that uses 'get_global_sam_sid()' for the 'expected' sid is in
pdb_compat.c

Andrew Bartlett
(This used to be commit 5a2a6f1ba316489d118a8bdd9551b155226de94f)
2002-07-03 07:37:54 +00:00
Andrew Bartlett
a19c823c3c Make these functions static. These are not mentioned in the external header,
and appear to be functions for internal use.

Richard:  please check.

Andrew Bartlett
(This used to be commit cb61e61a113dede4a0b0f5d31d0ec89c4b6ecd65)
2002-07-03 07:22:45 +00:00
Andrew Bartlett
4a0fab59cb Add my copyright (which I should have added months ago...)
(This used to be commit 2d7eccbeb258b4fdd14323a40f9537eb265f73e1)
2002-07-03 07:21:07 +00:00
Andrew Bartlett
58bc831cc3 Fix the spelling in the LDAP attributes
(This used to be commit dab26f8891a77640ce382ce1785ca5dd22d43c22)
2002-07-03 06:55:31 +00:00
Andrew Bartlett
dd118a176a Fix the forword prototype to be a static for this static function.
(This used to be commit bb1aa5e1d2e4f71dfaab0ade24ed15d1b5fdfc33)
2002-07-03 06:48:52 +00:00
Andrew Bartlett
343c04e92f Remove invalid comment - these are all 'unix' strings now.
(This used to be commit 537d33735d65c40490aab2210c1d331d940bf4f8)
2002-07-03 00:47:39 +00:00
Andrew Bartlett
0df1e25542 Kill off codepage related stuff, now we don't use codepages any more.
Andrew Bartlett
(This used to be commit d1ca2b9f23ce701eb6b6becafb1acd813fc8fc3a)
2002-07-03 00:44:39 +00:00
Gerald Carter
09b2af9a64 fix typo in unix extensions description
(This used to be commit 0e10ba465daada29cf57337fbb929c480bbce488)
2002-07-02 14:17:42 +00:00
Jeremy Allison
82176f4d85 Address the string_sub problem by changing len = 0 to mean "no expand".
Went through and checked all string_subs I could to ensure they're being
used correctly.
Jeremy.
(This used to be commit 17cae0d683be404be69554cd0e84117bdcc56c87)
2002-07-02 06:34:27 +00:00
Andrew Tridgell
9674ec6987 fixed our winreg parsing to handle a diifferent form given to us by
WinXP. This fixes setting security decsriptors from XP Professional.
(This used to be commit 80c3c68de20a686ced38356fd68f80a53e6f1626)
2002-07-02 04:22:59 +00:00
Tim Potter
5106ead0e0 Merge of constant renames from APPLIANCE_HEAD.
(This used to be commit daf4c6a013ffa474d768055e73a1cb31ee941e80)
2002-07-02 04:07:32 +00:00
Andrew Tridgell
3e63f3e106 fixed a prototype problem in client.c
(This used to be commit 922ab73c3c8f510fdbcb8b64d54b512d32c47b75)
2002-07-02 01:35:07 +00:00
Andrew Tridgell
9930b0b065 used findstatic.pl to make some variables static and remove some dead
code
(This used to be commit 91ad9041e9507d36eb3f40c23c5d4df61f139ef0)
2002-07-01 09:12:41 +00:00
Andrew Tridgell
859b135773 ads_mod_ber should be static, not public
this fixes the huge number of struct berval warnings on non-ads
compiles
(This used to be commit e7f588d8156856109623b5f5a3841c5d096b1185)
2002-07-01 07:30:40 +00:00
Andrew Tridgell
d4c3fd3d0d fixed multi-homed re-registration of names when we are a WINS
server. We were rejecting them, leaving the name unregistered!
(This used to be commit 2dc539ed33f9893cbe9e16c386994933121b71e9)
2002-07-01 07:19:12 +00:00
Andrew Tridgell
cf634de37b don't start the async dns process unless we actually need it!
(ie. check for lp_dns_proxy())
(This used to be commit 84d3b09b8542518a4684d07e975bcc9eaa1f6b69)
2002-07-01 07:15:13 +00:00
Andrew Tridgell
3563257247 bias the lookup sorting towards directly reachable IPs
(This used to be commit 514b91827a970a0041314af341b8c66a01668e4a)
2002-07-01 05:39:32 +00:00
Andrew Tridgell
2e917ea040 sort name query responses by how far they are from our interface
broadcast addresses. This makes it far more likely that we will try to
talk to an interface that is routable from one of our interfaces.
(This used to be commit bc1a0506868266088ae585a7a5dcb1ac8ca3474d)
2002-07-01 05:09:29 +00:00
Andrew Tridgell
fd8d5e56af fixed a bug handling startup when the ads server is not contactable
(This used to be commit dbfd4e5101599bcb85600e4c5c93ce5390b9aa91)
2002-07-01 04:47:29 +00:00
Christopher R. Hertel
4b12f559b9 The 17-bit length field in the header contains the number of
bytes which follow the header, not the full packet size.

    [Yes, the length field is either 17-bits, or (per the RFCs) it is a
    16-bit length field preceeded by an 8-bit flags field of which only
    the low-order bit may be used.  If that bit is set, then add 65536 to
    the 16-bit length field.  (In other words, it's a 17-bit unsigned
    length field.)
    ...unless, of course, the transport is native TCP [port 445] in which
    case the length field *might* be 24-bits wide.]

Anyway, the change is a very minor one.  We were including the four bytes
of the header in the length count and, as a result, sending four bytes of
garbage at the end of the SESSION REQUEST packet.

Small fix in function cli_session_request().
(This used to be commit cd2b1357066a712efcf87ac61922ef871118e8de)
2002-07-01 03:42:04 +00:00
Andrew Tridgell
3c6a7c73fb fixed a makefile syntax error that was breaking the build on some
systems
(This used to be commit 4eda1801493a79a27ad49e141e6adf8c8d4db85b)
2002-06-30 03:47:46 +00:00
Jeremy Allison
e7a866dd3d Shut down printing tdb correctly - this will be more important when I go
to a tdb per-queue for scalability.
Jeremy.
(This used to be commit e808eb2758ff4ad1eed7b50a02865b87ba0c068e)
2002-06-28 23:11:31 +00:00
Jeremy Allison
f201450f39 Added limit on SPOOLSS pipes from 2.2.x
Jeremy.
(This used to be commit b35fc30c37fa894acea3fcb7b48ee9841d1bd5e8)
2002-06-28 19:41:17 +00:00
Jeremy Allison
2d6570904e Test how many pipes we can open.
Jeremy.
(This used to be commit 95d22f18d7a2bb06804a6a336b243face4b496a1)
2002-06-28 19:28:58 +00:00
Jim McDonough
f90e74afba Const cleanup...should only be 2 warnings left from calling lib/util_str.c
str_list_copy().  Perhaps its proto should be fixed.
(This used to be commit b81bc2b34b620c24a148435d9913bd1a1528c983)
2002-06-28 19:25:11 +00:00
Jeremy Allison
04f1c60c0a STRING was being redefined...
Jeremy.
(This used to be commit f631f7e0fc7ff655d56ad17606134784f401f171)
2002-06-28 18:17:11 +00:00
Andrew Tridgell
310e85d7fb don't backup to a newer file
(This used to be commit ae2f8aa9d0678aa0014d96fc8b1b52f42cba8349)
2002-06-28 03:52:22 +00:00
Andrew Tridgell
01eec58243 make net join a bit less verbose
these errors happen all the time, so they shouldn't be level 0
(This used to be commit abc2aed26c6cb12a86987a3846ca5c9f7df9a5ae)
2002-06-28 03:51:31 +00:00