1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-28 17:47:29 +03:00

5051 Commits

Author SHA1 Message Date
Jeremy Allison
0d6c7dedd2 Tidyup return of zero-permissions (map to ACE_DENIED, GENERIC_ALL, Everyone).
Jeremy.
-
Jeremy Allison
45e96777d0 Last tweak (I promise :-). Fallback to returning our SID if we're a domain
member but can't get the domain sid.
Jeremy.
-
Jeremy Allison
58dd295882 Final ! Fix.
Jeremy.
-
Jeremy Allison
f2680842d7 Last attempt at fix...
Jeremy.
-
Jeremy Allison
c202ebe3b6 Return correct error message if we can't get the SID secret.
Jeremy.
-
Gerald Carter
161842a3e0 make proto -
Gerald Carter
6aaac37663 more updates. several spoolss commands added as placeholders
to be filled in one at a time.
-
Jeremy Allison
b318a754e7 Fixed a Dr. Watson when viewing permissions - we were missing the "standalone
server" case.
Jeremy.
-
Jeremy Allison
28a0bc5f57 AS/U on a sparc now joins and authenticates against a Samba PDC !
Jeremy.
-
Gerald Carter
b28d51c8e8 last make proto got messed up it seems -
Gerald Carter
04d74c20bc make proto -
Gerald Carter
d98ac8852a set of changes in the beginning of bringing rpcclient changes
back to working order.  The main change is that the cli_*() RPC
functions from libsmb/*.c now should accept a struct cli_state*.

The reason for this is that rpcclient should establish the
connection to the server at startup so that it is not necessary
to keep the clear test or password hash in memory for each command.

enumports and enumprinters now works as well.  lsa* functions
have been tested.  SAMR calls may or may not work (one of the core
dumps I know), but it compiles :-)



jerry
-
Gerald Carter
af3f2a30c6 patches from Simo. Couple of snity things -
Andrew Tridgell
d5b39a1d43 don't need srvstr_push_size or srvstr_pull_size -
Andrew Tridgell
34a0821e08 simpler clistr interface which handles individual packets having
unicode bit set differently to capabilities
-
Andrew Tridgell
54bde1b3ae converted the smb messaging code to unicode -
Andrew Tridgell
ddee550877 converted a bunch more trans2 calls for unicode. This got quite tricky :( -
Andrew Tridgell
dca433d035 fixed srvstr_push() call -
Andrew Tridgell
fbb3bf12df converted a bunch more fns to unicode -
Jeremy Allison
f1839d469e Fix from Jim McDonough of IBM for using Win9x user manager.
Jeremy.
-
Andrew Tridgell
a6dd666226 simpler and more correct srvstr_push()
it now uses outbuf not inbuf for the unicode flag, which
allows for some server fns to be ascii and means one less
parameter in push calls
-
Jeremy Allison
a24b248a77 Move to a handle database per pipe name, not per pipe.
Jeremy.
-
Jeremy Allison
500c7bc0fe rpc_parse/parse_samr.c: Removed unneeded deubg.
rpc_server/srv_netlog_nt.c: Ensure we marshall a bad password return correctly
to a w2k client.
Jeremy.
-
Jeremy Allison
d4ad197f71 AS/U does setuserinfo2, level 0x12 when joining a domain - identical to setuserinfo level 0x12.
Jeremy.
-
Jeremy Allison
017a6a9868 We were mismarshalling a netlogon reply for bad password to W2K.
Jeremy.
-
Gerald Carter
e652a14264 move charset_initialize() up in the food chain so that lp_load_services
and stuff will work....
-
Andrew Tridgell
1e92d340ce converted reply_tcon() -
Andrew Tridgell
a074600a09 converted a bunch more server functions to unicode -
Andrew Tridgell
e54d379030 added STR_ASCII flag to srvstr_pull() -
Andrew Tridgell
242a6a96d1 - convert chkpath
- devicename in tconx is always ascii
-
Andrew Tridgell
84fc5a7795 converted findnext to unicode -
Jeremy Allison
e7ecb9410f Fixed reading of strings from big-endian RPC clients.
Jeremy.
-
Andrew Tridgell
b98b1435e9 this patch does a number of things:
- removes SMB_ALIGNMENT. That macro caused all sorts of problems with
  getting unicode aligned right in sub-protocols (such as SMBtrans and
  SMBtrans2). I believe the performance reasons for having
  SMB_ALIGNMENT has gone away with the new variants of the SMB
  protocol anyway, as newer commands tend to have their own internal
  alignment.

- fix the locations where we set smb_flg2 to absolute values. We must
  never do this if we want a hope of coping with unicode.

- add initial support for unicode on the wire in smbd. Currently
  enabled using SMBD_USE_UNICODE environment variable.
-
Jeremy Allison
37248e99e8 Ensure we never return passwords from a user query.
Jeremy.
-
Jeremy Allison
d22c606703 Ensure we return the correct names/sids on query info. AS/U showed us what
we should return here.
Jeremy.
-
Jeremy Allison
83133bab0e Added ADMIN$ share as alias for IPC$ except no guest connect. AS/U wants
to do RPC calls down this treeid.
Jeremy.
-
Jeremy Allison
0185f8159d We copy the RPC header directly from the incoming client - remember to
set little-endian flag on marshalling. AS/U now correctly tries to join
our domain !
Jeremy.
-
Jeremy Allison
67e09aea47 Ok - we're now sending back policy handles to bigendian AS/U correctly.
Jeremy.
-
Jeremy Allison
a8df5e04b5 Looks like AS/U doesn't set the FIRST flag in a BIND packet.
Jeremy.
-
Jeremy Allison
46b12f2275 Moved cruft out of smb.h into ntdomain.h where it belongs. dc struct
now in pipe struct (where used) rather than user_struct.
Secured machine account password changing in srv_netlog_nt.c - ensure
that only the given machine can change its own password. May need to
free this up later for NT admin tools, but this is a fail-safe secure
position for now.
Jeremy.
-
Jeremy Allison
be9933ce35 Removed JRATEST line.
Jeremy.
-
Jeremy Allison
90f334be23 Dead code removal. Not used anywhere.
Jeremy.
-
Jeremy Allison
dde795154c Ensure we're checking for the "FIRST" flag in other types of PDU than "REQUEST"
(ie. BIND, BINDRESP and ALTERCONTEXT) - if we don't do this then we don't set
the endianness flag correctly for these PDU's.
Herb - this should fix the bug you reported to me today.
Jeremy.
-
Jeremy Allison
73c7ace168 Sync include files between 2.2 and HEAD except for acoount info.
Jeremy.
-
Jeremy Allison
31e0ce310e Remove "BYTE" - we already have uint8 - don't need more conflicts with
system header files...
Jeremy.
-
Jeremy Allison
96bcfdcded Added JF's new util.
Jeremy.
-
Jeremy Allison
85021b1638 Ok - everything now compiles in HEAD (at least the default stuff). We
should now be ready for the trivial winbindd port..... (Tim ? :-).
Jeremy.
-
Jeremy Allison
d23b9be1ba No longer used...
Jeremy.
-
Jeremy Allison
0be41d5158 Merge of new 2.2 code into HEAD (Gerald I hate you :-) :-). Allows new SAMR
RPC code to merge with new passdb code.
Currently rpcclient doesn't compile. I'm working on it...
Jeremy.
-
Jeremy Allison
635c4cd8e6 Notused.
Jeremy.
-