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

14352 Commits

Author SHA1 Message Date
Jelmer Vernooij
601b026572 Improve MySQL library detection, add support for MySQL 4
(This used to be commit 90cbc4361e86d591e38c80092612edaa3875ea67)
2003-08-11 00:31:28 +00:00
Gerald Carter
1c722f86f3 not used
(This used to be commit b3074a893bc0bee11d628907bd83b53f596af0eb)
2003-08-10 22:11:26 +00:00
Gerald Carter
d5d9055b9b add --domain=DOMAINNAME to wbinfo
Add support for geting the sequence number, list of users, and list
of groups for a specific domain (assuming on reported back by
wbinfo -m)

	wbinfo -u --domain=DOA
(This used to be commit 34fc6e1bf97d514d3b1763a808d08d730191e03b)
2003-08-10 22:01:11 +00:00
Volker Lendecke
ce7d025b20 We get the server and workgroup list only over port 139. Fall back to that
and if NetBIOS over TCP/IP is disabled, give an error message.

Fixes Bug #284

Volker
(This used to be commit a2902a6cf8d05569d1c690436f69b4a4cedac400)
2003-08-10 21:43:28 +00:00
Jelmer Vernooij
6da5194978 Fix style
(This used to be commit ba60a11b62a093565459efca1879f2b028724af1)
2003-08-10 20:41:27 +00:00
Volker Lendecke
94bbd5c93a Store the server domain from the ntlmssp challenge in the client struct
to be able to ask a LMB for the servers in its workgroup. Against
W2k this only works on port 139....

Volker
(This used to be commit 62b04d7776852098dd768268500f36c3a362f688)
2003-08-10 20:18:05 +00:00
Gerald Carter
8829553b16 fix MS-DFS (my bug) stupid return code error that cose me more time
that I would like to admit.
(This used to be commit 082b1cf06fd3b144b9713045672028f16e20aff4)
2003-08-10 06:45:04 +00:00
Gerald Carter
c1bc3a7841 fix for BUG #267 (problem with supplementary groups).
Use winbindd to get the group list if possible since we already
know it from netsamlogon_cache.tdb. More effecient than letting
libc call getgrent() to get seconary groups.

Tested by Ken Cross.
(This used to be commit 3c537c906f29a08e75895c8c8e3ed5c5abaaa940)
2003-08-09 23:12:35 +00:00
Gerald Carter
722ce0eb95 updating smb.conf manpage to reflect changes in ./configure options
(This used to be commit ca29fdb9c28b7a61ce35eaea8864a8cd647b45cc)
2003-08-09 23:01:35 +00:00
Gerald Carter
4b5257b5b0 fix 2 bugs:
1)  don't ask trusted DC's for a list of trusted domains.  This causes
      us to treat non-transitive ones as if they were transitive.  Not
      needed anyways

  2)  Fix dc lookup bug where we would always try to use DNS to resolve
      the DC's for a domain (even if it was a trusted NT4 domain).
(This used to be commit 4d3acce5066d3adf53ee8fbaa627c42523b3cbc3)
2003-08-08 23:53:13 +00:00
Jeremy Allison
ac8c6e4746 Format tidyup.
Jeremy.
(This used to be commit 049e77d636c5abd0fdd8840c3c4c465708354ed7)
2003-08-08 23:09:09 +00:00
Jeremy Allison
9df23b22cf Turn on client ntlmv2 by default.
Jeremy.
(This used to be commit 729b468f7e0e5522dfdede481947826851842483)
2003-08-08 22:19:09 +00:00
Jeremy Allison
38b3ee6467 RPC fix from Ronan Waide <waider@waider.ie>. Tested with rpcecho.
Jeremy.
(This used to be commit 68590b9e2266cf76b46a68cca0acaa47733811fe)
2003-08-08 17:08:35 +00:00
Gerald Carter
56bb027696 need to be able to connect to a domain member as a local account; don't always map to the domain name
(This used to be commit 20b6e64da2669e5dfc7265cae331ec9c89aa02dc)
2003-08-08 05:11:11 +00:00
Gerald Carter
2a091c4e89 need to make sure that the connection struct mem_ctx is initialized and destroyed
(This used to be commit e0c061b94d4cb181afcd70c5d6398e0c2f446449)
2003-08-08 05:10:12 +00:00
Jeremy Allison
11bf0c0b23 Added by request of "Stefan (metze) Metzmacher" <metze@metzemix.de>.
Jeremy.
(This used to be commit 80e14b176526a3038ea03214fc3dd0fd00fef922)
2003-08-08 00:53:46 +00:00
Jeremy Allison
4d48737782 Test modules for shadow copy by "Stefan (metze) Metzmacher" <metze@metzemix.de>.
Jeremy.
(This used to be commit 3f8c77b116b96b01fd333c4b45d84666ef108fe9)
2003-08-07 21:49:01 +00:00
Jeremy Allison
a83bac7571 Shadow copy API - Original work by "Ken Cross" <kcross@nssolutions.com>, adapted
into a patch by "Stefan (metze) Metzmacher" <metze@metzemix.de>.
Jeremy.
(This used to be commit ce5c91d35dabc5ff6fb3df2b259ed186d6a7e0da)
2003-08-07 21:47:46 +00:00
Jeremy Allison
3bbe9c0869 An oplock break reply from the client causes the sequence number to be
updated by 2 if there is no open reply outstanding, else by one....
Yes - this makes no sense....
Jeremy.
(This used to be commit b43ce1ff6109f6422a621329ceb713b42df40040)
2003-08-07 05:36:08 +00:00
Gerald Carter
a3513090e7 adding generic docs for defining VFS module options
(This used to be commit 6168d3da670f7bb75e34b65a91c76728576f8607)
2003-08-07 05:00:51 +00:00
Jeremy Allison
110abf10d2 Turns out I had my packet sequences wrong for oplock break code.
I was storing the mid of the oplock break - I should have been
storing the mid from the open. There are thus 2 types of deferred
packet sequence returns - ones that increment the sequence number
(returns from oplock causing opens) and ones that don't (change notify
returns etc). Running with signing forced on does lead to some
interesting tests :-).
Jeremy.
(This used to be commit 85907f02cec566502d9e4adabbd414020a26064d)
2003-08-07 02:59:52 +00:00
Jeremy Allison
4461109416 Cosmetic fix from waider@waider.ie.
Jeremy.
(This used to be commit cb326c2dbff1fad87d5c72df4a004d5a42d17472)
2003-08-07 01:04:57 +00:00
Jeremy Allison
8d94de787e Patch from waider@waider.ie to print out Port Type.
Jeremy.
(This used to be commit 8516baf58d333a54bcbe1c1a08eee499b3dd2636)
2003-08-07 00:55:35 +00:00
Jeremy Allison
ef65d26556 Ensure smbclient obeys -s smb.conf option.
Jeremy.
(This used to be commit 7950f7d6b2c5e8247bce1e96ddd1a9ec1045f7f9)
2003-08-06 22:45:46 +00:00
Jeremy Allison
e602bca52f Reversed replacement. Oops.
Jeremy.
(This used to be commit 520bee397d946766cef8ab9f0d7d89064106f510)
2003-08-06 21:31:11 +00:00
Jeremy Allison
33f6eb9a17 Anal formatting tidyup :-).
Jeremy.
(This used to be commit 9c0197471366ad1acf922e02bb694769863054a6)
2003-08-06 20:01:31 +00:00
Jeremy Allison
17a713d1b9 Get rid of MAXPATHLEN, move to standard PATH_MAX.
Jeremy.
(This used to be commit 455ed2d51d86f39ce0fa6e6abca31a5425d2ea17)
2003-08-06 19:30:42 +00:00
Gerald Carter
44e6c30f71 fix bug #208; have to get the gid of the user's primary group for %G
(This used to be commit 575483a1efe18a90055490117ba6894512ae568a)
2003-08-06 19:16:17 +00:00
Gerald Carter
df2337692a rework winbindd_accountdb_init() to reduce error messages in the log
(This used to be commit d98a68e0ebaf2fbd360b826f5df472bc3f94285b)
2003-08-06 18:01:39 +00:00
Volker Lendecke
923cb1b731 When doing 'net groupmap add', default to algorithmic mapping for the rid.
Volker
(This used to be commit 7ce94d39add6e056e3b1deea21bf0438ba61e4cc)
2003-08-06 09:24:11 +00:00
Tim Potter
74be920b0e Spelling.
(This used to be commit 7d009ebf66c82b254828bac267102eb6e6a4a75e)
2003-08-06 01:14:51 +00:00
Gerald Carter
269bcd91a3 oops; fix typo. Noticed by gcc warning
(This used to be commit 4c36ef65e5101899f730adaeacf754f5f3647d89)
2003-08-06 00:06:37 +00:00
Gerald Carter
055b7df499 fix bug #245; local_lookupsid() needed to make a getpwuid() call to get the username instead of making up unix_user.##
(This used to be commit b947fc3eed464d7a64914f3965964d29be031614)
2003-08-05 23:24:14 +00:00
Volker Lendecke
a4954bd3d2 Changes to make gss-spnego ntlmssp client work against W2k AD.
Now I know where the mechListMIC changes came from: Ethereal ;-)

Volker
(This used to be commit 4e9eed1273035d09ac3b427b9711327ba8c6ebfc)
2003-08-04 13:10:43 +00:00
Tim Potter
05540b48f0 Fix unused variable warning.
(This used to be commit 73d02e3a2b0f9e84ab6d8685e4ad6a03ef9249b2)
2003-08-04 06:16:03 +00:00
Tim Potter
cdf562f5b2 Memory leak fix for create_rpc_bind_req()
(This used to be commit 4d26feabd75d5b298276b0c5880b9765507bb6ae)
2003-08-04 02:51:30 +00:00
Tim Potter
5216cb0f36 More patches from Brett:
- remove 'if(mem_ctx)' tests prior to 'talloc_destroy' call to make
consistent with other modules; 'talloc_destroy' already test for NULL
anyway.

  - initialize PyObject* result pointers to NULL in function
declarations; enables removal of redundant NULL assignments.

  - use local scope TALLOC_CTX in lsa_lookup_names to prevent unbounded
memory growth during python policy object lifetime.

  - change context name string used in lsa_lookup_sids from
'lsa_open_policy' to 'lsa_lookup_sids' (cut'npaste oversight from
previous patch)

  - change docstring to match module name (apparently another cut'npaste
situation)
(This used to be commit 98cac74c67c454f636df5c1ea2baa029c482e402)
2003-08-04 00:50:00 +00:00
Tim Potter
5d070d89a8 Fix memory leak in py_smb_set_setdesc()
Consistency fixups in py_smb_query_secdesc()

Thanks to Brett A. Funderburg for these patches.
(This used to be commit 6c33189e50ae3704275198e324fcdb7facd209f7)
2003-08-04 00:48:49 +00:00
Jeremy Allison
99a4bb07a9 Fix up #defines around utmp_host and utmp_name. Noticed by Cord.Hockemeyer@uni-graz.at
Jeremy.
(This used to be commit 07c5ecb945c1189fd6e8628f5e989b90dd15163b)
2003-08-03 18:50:00 +00:00
Jeremy Allison
8d992a7102 Output message saying "signed connect" instead of just connect when signing
is active.
Jeremy.
(This used to be commit c6674fa62865b64aa788a1903db118e4d773bcae)
2003-08-03 07:20:05 +00:00
Jeremy Allison
a8646708e3 Fix oplock break detection code on incoming oplock break responses. This
fixes signing for oplocks.
Jeremy.
(This used to be commit 69c56ee8bce122839a8fec4e59198f84b0757166)
2003-08-03 07:12:46 +00:00
John Terpstra
9bc4214014 Removed duplicated file, no longer in use. Note: profiles.1.xml is still
present and relevant.
(This used to be commit 7b24759c270ffbc914aa0a45c8b7facbf6217c69)
2003-08-03 05:10:57 +00:00
John Terpstra
12afe71835 Changed "winbind uid/gid" to "idmap uid/gid"
(This used to be commit d205dd963bb306935d3c02c94684fa1143436158)
2003-08-03 05:09:19 +00:00
Gerald Carter
b1fc491251 make sure to initialize the backend methods when enumerating sequence numbers; reported by Ken Cross
(This used to be commit 10c7a1af67e556c17d4b3495934a2dad19728d77)
2003-08-02 18:15:33 +00:00
Jeremy Allison
b925d197f5 Ensure we don't leak any sign records on cancel of pending requests.
Jeremy.
(This used to be commit 9a8ffc239c0f1aada713de7e9e007066738d8874)
2003-08-02 08:48:01 +00:00
Jeremy Allison
9482f14b2c Only look for mid sign records on incoming packets for oplock break replies.
Otherwise we find spurious mid sign records on reply_ntcancel calls (they cancel
by mid). That took a *lot* of tracking down. I still need to remove the mid
records from the sign state on reply_ntcancel to avoid leaking memory....
Jeremy.
(This used to be commit 270bf20fe3e226ab5cfc689bd20ed4c22b2fa7e6)
2003-08-02 08:38:34 +00:00
Jeremy Allison
099bd33a99 More fixes for client and server side signing. Ensure sequence numbers
are updated correctly on returning an error for server trans streams.
Ensure we turn off client trans streams on error.
Jeremy.
(This used to be commit 3a789cb7f01115c37404e5a696de363287cb0e5f)
2003-08-02 07:07:38 +00:00
Jeremy Allison
a202afb881 Leave the packet sequence checkers enabled whilst I track down a smbclient -> smbd
sequence number problem.
Jeremy.
(This used to be commit 844898dbd8e99837ef1621aa73024714aa819ce4)
2003-08-02 03:12:39 +00:00
Jeremy Allison
760e58cf80 Add the same signing code to the server. Ensure we use identical session
numbers and MIDs when in trans/trans2/nttrans code.
Jeremy.
(This used to be commit 901544b29b4d815709b3dbad3012f1d2c419d904)
2003-08-02 03:06:07 +00:00
Jeremy Allison
2443f7ffa2 Correct fix (removed the earlier band-aid) for what I thought was a signing
bug with w2k. Turns out that when we're doing a trans/trans2/nttrans call
the MID and send_sequence_number and reply_sequence_number must remain constant.
This was something we got very wrong in earlier versions of Samba. I can now
get a directory listing from WINNT\SYSTEM32 with the older earlier parameters
for clilist.c
This still needs to be fixed for the server side of Samba, client appears to
be working happily now (I'm doing a signed smbtar download of an entire W2K3
image to test this :-).
Jeremy.
(This used to be commit 2093a3130d4087d0659b497eebd580e7a66e5aa3)
2003-08-02 00:29:45 +00:00