1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-27 03:21:53 +03:00
Commit Graph

4283 Commits

Author SHA1 Message Date
Andrew Tridgell
df03c7480d converted a bunch more trans2 calls for unicode. This got quite tricky :(
(This used to be commit ddee550877)
2001-03-14 07:29:53 +00:00
Andrew Tridgell
be8a6ea511 fixed srvstr_push() call
(This used to be commit dca433d035)
2001-03-13 23:25:48 +00:00
Andrew Tridgell
18b7efe9b3 converted a bunch more fns to unicode
(This used to be commit fbb3bf12df)
2001-03-13 23:17:45 +00:00
Jeremy Allison
88028299c6 Fix from Jim McDonough of IBM for using Win9x user manager.
Jeremy.
(This used to be commit f1839d469e)
2001-03-13 23:16:39 +00:00
Andrew Tridgell
ff0462cde8 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
(This used to be commit a6dd666226)
2001-03-13 22:00:46 +00:00
Jeremy Allison
e532d96a26 Move to a handle database per pipe name, not per pipe.
Jeremy.
(This used to be commit a24b248a77)
2001-03-13 20:18:45 +00:00
Jeremy Allison
13a584b05a 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.
(This used to be commit 500c7bc0fe)
2001-03-13 20:13:20 +00:00
Jeremy Allison
0f710e9bdc AS/U does setuserinfo2, level 0x12 when joining a domain - identical to setuserinfo level 0x12.
Jeremy.
(This used to be commit d4ad197f71)
2001-03-13 19:21:51 +00:00
Jeremy Allison
63107eceb9 We were mismarshalling a netlogon reply for bad password to W2K.
Jeremy.
(This used to be commit 017a6a9868)
2001-03-13 19:15:48 +00:00
Gerald Carter
381e8299dc move charset_initialize() up in the food chain so that lp_load_services
and stuff will work....
(This used to be commit e652a14264)
2001-03-13 18:48:26 +00:00
Andrew Tridgell
20dd1f7489 converted reply_tcon()
(This used to be commit 1e92d340ce)
2001-03-13 06:55:47 +00:00
Andrew Tridgell
a7d2f5b063 converted a bunch more server functions to unicode
(This used to be commit a074600a09)
2001-03-13 06:37:12 +00:00
Andrew Tridgell
26f63881e2 added STR_ASCII flag to srvstr_pull()
(This used to be commit e54d379030)
2001-03-13 03:45:29 +00:00
Andrew Tridgell
93143c96a6 - convert chkpath
- devicename in tconx is always ascii
(This used to be commit 242a6a96d1)
2001-03-13 03:45:09 +00:00
Andrew Tridgell
f869164a16 converted findnext to unicode
(This used to be commit 84fc5a7795)
2001-03-13 01:51:44 +00:00
Jeremy Allison
0ef2179d23 Fixed reading of strings from big-endian RPC clients.
Jeremy.
(This used to be commit e7ecb9410f)
2001-03-13 01:44:05 +00:00
Andrew Tridgell
23e5cf060d 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.
(This used to be commit b98b1435e9)
2001-03-13 00:55:19 +00:00
Jeremy Allison
769659eb08 Ensure we never return passwords from a user query.
Jeremy.
(This used to be commit 37248e99e8)
2001-03-13 00:32:43 +00:00
Jeremy Allison
9b690629ee Ensure we return the correct names/sids on query info. AS/U showed us what
we should return here.
Jeremy.
(This used to be commit d22c606703)
2001-03-13 00:31:53 +00:00
Jeremy Allison
d3ec09326b Added ADMIN$ share as alias for IPC$ except no guest connect. AS/U wants
to do RPC calls down this treeid.
Jeremy.
(This used to be commit 83133bab0e)
2001-03-13 00:31:07 +00:00
Jeremy Allison
ea35aae3bf 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.
(This used to be commit 0185f8159d)
2001-03-12 21:09:55 +00:00
Jeremy Allison
5107a7a96a Ok - we're now sending back policy handles to bigendian AS/U correctly.
Jeremy.
(This used to be commit 67e09aea47)
2001-03-12 20:19:31 +00:00
Jeremy Allison
7c99297ea1 Looks like AS/U doesn't set the FIRST flag in a BIND packet.
Jeremy.
(This used to be commit a8df5e04b5)
2001-03-12 16:43:01 +00:00
Jeremy Allison
b840dce676 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.
(This used to be commit 46b12f2275)
2001-03-11 22:26:28 +00:00
Jeremy Allison
02fe94f865 Removed JRATEST line.
Jeremy.
(This used to be commit be9933ce35)
2001-03-11 22:03:42 +00:00
Jeremy Allison
24993180ab Dead code removal. Not used anywhere.
Jeremy.
(This used to be commit 90f334be23)
2001-03-11 22:02:48 +00:00
Jeremy Allison
b2bc2bfaf0 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.
(This used to be commit dde795154c)
2001-03-11 04:33:05 +00:00
Jeremy Allison
1f467d3200 Sync include files between 2.2 and HEAD except for acoount info.
Jeremy.
(This used to be commit 73c7ace168)
2001-03-11 01:08:10 +00:00
Jeremy Allison
a2e5dbb112 Remove "BYTE" - we already have uint8 - don't need more conflicts with
system header files...
Jeremy.
(This used to be commit 31e0ce310e)
2001-03-11 00:51:54 +00:00
Jeremy Allison
c4a84783a6 Added JF's new util.
Jeremy.
(This used to be commit 96bcfdcded)
2001-03-11 00:45:07 +00:00
Jeremy Allison
ce069f4132 Ok - everything now compiles in HEAD (at least the default stuff). We
should now be ready for the trivial winbindd port..... (Tim ? :-).
Jeremy.
(This used to be commit 85021b1638)
2001-03-11 00:44:30 +00:00
Jeremy Allison
d47ee4bffc No longer used...
Jeremy.
(This used to be commit d23b9be1ba)
2001-03-11 00:38:02 +00:00
Jeremy Allison
da3053048c 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.
(This used to be commit 0be41d5158)
2001-03-11 00:32:10 +00:00
Jeremy Allison
1af77d39fa Notused.
Jeremy.
(This used to be commit 635c4cd8e6)
2001-03-10 20:11:49 +00:00
Jeremy Allison
a9855dedea Sync up Urbans changes from 2.2 into HEAD.
Jeremy.
(This used to be commit d0fcd91443)
2001-03-10 19:50:36 +00:00
Jeremy Allison
aa567e9c75 Merge .cvsignore between 2.2 and HEAD.
Jeremy.
(This used to be commit d386b9223f)
2001-03-10 19:39:09 +00:00
Andrew Tridgell
20d3a2986e converted reply_open, reply_open_and_x and reply_fclose
(This used to be commit 2c8da0ae22)
2001-03-10 11:57:38 +00:00
Andrew Tridgell
b08b70faf8 started support for unicode on the wire in smbd. Using a very similar
method to what was used in the client I now have session setup and
tconx working.

Currently this is enabled with SMBD_USE_UNICODE environment
variable. Once the code is complete this will become a smb.conf
option.
(This used to be commit 7684c1e672)
2001-03-10 11:38:27 +00:00
Andrew Tridgell
45c2ee3ff2 to use the same macros in the client and server rename the CLISTR_
macros to STR_
(This used to be commit 95c9e4e0ba)
2001-03-10 11:35:25 +00:00
Richard Sharpe
9579f927dc More documentation in the header in doxygen format
(This used to be commit db2e712ad3)
2001-03-10 01:29:20 +00:00
Jeremy Allison
2a490ed2a0 Missed some prs_inits.
Jeremy.
(This used to be commit 7a8a7a24d4)
2001-03-09 23:58:26 +00:00
Jeremy Allison
00ab9021b0 Serious (and I *mean* serious) attempt to fix little/bigendian RPC issues.
We were reading the endainness in the RPC header and then never propagating
it to the internal parse_structs used to parse the data.
Also removed the "align" argument to prs_init as it was *always* set to
4, and if needed can be set differently on a case by case basis.
Now ready for AS/U testing when Herb gets it set up :-).
Jeremy.
(This used to be commit 0cd37c831d)
2001-03-09 23:48:58 +00:00
Gerald Carter
0bfc10011b merge of 'lanman auth' and 'min protocol' from 2.2
(This used to be commit 1d84da779a)
2001-03-09 18:59:16 +00:00
Richard Sharpe
e8fcbc5df1 More SGI type fixes ...
(This used to be commit 26d7d8af29)
2001-03-09 05:47:48 +00:00
Richard Sharpe
632ed01166 Fixes to testsmbc to ensure it will compile on SGI ...
(This used to be commit ad3a21b281)
2001-03-09 03:59:45 +00:00
Jeremy Allison
6c99c38cbf Fixed double fclose() call (I love insure :-).
Jeremy.
(This used to be commit 0a84839dc0)
2001-03-08 22:29:39 +00:00
Jeremy Allison
25db9b02ba Fix for AS/U not liking it's own assoc_gid.
Jeremy.
(This used to be commit 81fe571daf)
2001-03-08 05:01:20 +00:00
Jeremy Allison
393bede7db Sync up handle creation with 2.2 branch. We can now join AS/U domains and
authenticate against them. Big/little endian issues fixed.
Jeremy.
(This used to be commit 0e6a34510e)
2001-03-07 23:59:13 +00:00
Richard Sharpe
2b22019e42 Fix the definition and implementation of smbc_lseekdir ...
(This used to be commit e628d80d1e)
2001-03-07 04:39:31 +00:00
Richard Sharpe
5bf5952fd6 Implement smbc_lseekdir, but it will have to change ... because it has the
wrong interface defn.
(This used to be commit 317e369c3e)
2001-03-06 14:00:48 +00:00