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

16312 Commits

Author SHA1 Message Date
Jeremy Allison
becfb420f7 Fix wildcard identical rename.
Jeremy.
(This used to be commit 610ae1126e227f45a1affa1030ee833a341a687f)
2004-04-02 19:51:27 +00:00
Jeremy Allison
ff469fb2b2 check_path improvements found by samba4 raw-checkpath tests.
Jeremy.
(This used to be commit 4081f7ce514635f3500d29a73a44bff2661b76b1)
2004-04-02 19:05:57 +00:00
Jeremy Allison
722aa118c6 Added per-share parameter "store dos attributes". When set, will store
dos attributes in an EA. Based on an original patch from tridge, but
modified somewhat to cover all cases.
Jeremy.
(This used to be commit ed653cd468213e0be901bc654aa3748ce5837947)
2004-04-02 18:46:19 +00:00
Volker Lendecke
044c6f513d Implement NETLOGON GetDCName client side. You can ask a DC for the name of
a DC it trusts.

Volker
(This used to be commit ae6840320ff47827c2817549fe3133a57e3fe77f)
2004-04-02 12:56:18 +00:00
Steve French
620e1eaddc Fix credential file mountinf for cifs vfs
(This used to be commit 9ad22b8a3d839501b72f3b96d43a22365c15ec43)
2004-04-02 00:11:27 +00:00
Jeremy Allison
fe160f5b72 "Fixing my FORTRAN". Ensure we always have some valid char converter for the
neccessary types before we will run at all. If we can't get one, use ASCII
but complain mightily.
Jeremy.
(This used to be commit 37dd5e52f61e7ba1facb726ac70fc75e22608103)
2004-04-01 19:42:36 +00:00
Gerald Carter
2197bd26ac BUG 1023: surround get_group_from_gid() with become_unbecome_root() block
(This used to be commit 1aeeb432c75eeb67e9e1323932b37d34da416d37)
2004-04-01 15:15:13 +00:00
Volker Lendecke
56e7c149ba This restructures lib/afs.c so that the token data can be but into a
stream. This is to implement wbinfo -k that asks winbind for authentication
which then creates the AFS token for the authenticated user.

Volker
(This used to be commit 2df6750a079820826013360fb9e47f90bc8223a5)
2004-04-01 12:31:50 +00:00
Volker Lendecke
e2f355c7ea Cosmetic: Fix a const warning.
Volker
(This used to be commit c814f7c43db9700ec08a30c45521181c754df247)
2004-04-01 08:54:01 +00:00
Jeremy Allison
e869727420 Reformat in preparation for EA dosmode attributes.
Jeremy
(This used to be commit de2f149e9e687fc8cba6870d921341a6a1fd9c13)
2004-03-31 22:46:15 +00:00
Herb Lewis
70227784ba fix typo
(This used to be commit 4b737b51a5cf0a862f4c1bd67d9d3dd49cc81b65)
2004-03-31 20:24:10 +00:00
Volker Lendecke
95bd9b5ab0 Apply some const
(This used to be commit aa220cffa7b3507452ffed51c048333c7cde0ca2)
2004-03-31 15:21:48 +00:00
Volker Lendecke
9d1a4e8013 Remove some unused code
(This used to be commit 2b757b6adf0b4e5c799cc8943e8fd96cc94c24bc)
2004-03-31 14:36:25 +00:00
Jeremy Allison
d113219e78 Added support for OS/2 EA's in smbd server. Test with smbtorture eatest.
New protocol option "ea support" to turn them on (off by default). Conrad
at Apple may like this as it allows MacOS resource forks to be stored on
a file. Passes valgrind. Documentation to follow.
Jeremy.
(This used to be commit 8cc10a6c0550c017a62e8a3790afd2172d173e00)
2004-03-31 02:20:16 +00:00
Jeremy Allison
a1994d1c96 Ensure we cope correctly with ea length of zero. Detect torture fail correctly.
Jeremy.
(This used to be commit 43db249fb814cef99afecd22c20a824d2519faf9)
2004-03-30 18:38:21 +00:00
Volker Lendecke
62ae6e36f0 Merge a fix from HEAD to 3_0
Volker
(This used to be commit 6bc88d91e569541e4d4a2147e28439db96d02bd6)
2004-03-30 08:11:59 +00:00
Volker Lendecke
97b200d422 Apply some const
(This used to be commit 8037750df568e6b51b2b0cba9192468110470388)
2004-03-30 08:03:32 +00:00
Jeremy Allison
1a643a6fe9 Committed test code by mistake... removing.
Jeremy.
(This used to be commit 73433dc349698b1b1f128439ab40eea6cbfa1187)
2004-03-29 23:42:48 +00:00
Jeremy Allison
578d715755 Setting EA's to zero length deletes them.
Jeremy.
(This used to be commit 01fb8717628d1daad19725a97f6ae2d729afcac2)
2004-03-29 23:39:13 +00:00
Jeremy Allison
099974aa15 Fix get/set of EA's in client library. Added torture test for it.
Jeremy.
(This used to be commit 0d239a9c070bdc1ce2d2806fc02549c4750597aa)
2004-03-29 22:21:47 +00:00
Volker Lendecke
4ee66eb4c3 Without words...
(This used to be commit 9cb6b10efa3c7d50d3e686bda122121c61633419)
2004-03-29 11:54:34 +00:00
Volker Lendecke
f6d86af4a2 Some fixes to expand_msdfs module.
Volker
(This used to be commit 558b5bc1d81d8ccd2048b37357e4b3e5b9b4e011)
2004-03-29 11:40:43 +00:00
Andrew Tridgell
fb53eff3e1 merge tdb changes from samba4 - this means tdb is now under the LGPL, as discussed and agreed previously
(This used to be commit 9d1a08d65c4235a2a3941bba5b71631c4c35c9b7)
2004-03-28 02:19:58 +00:00
Andrew Bartlett
7c2b0d536b Let the comment match the function...
Andrew Bartlett
(This used to be commit 43c71b3202e909cca7c41c54d0b340aea1323db6)
2004-03-27 10:32:59 +00:00
Andrew Bartlett
b65d7d59c2 Revert bogus part of smb signing commit - when Win2k supports singing/SPNEGO,
it does sign the first packet.

Andrew Bartlett
(This used to be commit 4b9c50db853eaf9eb8c68b85760c40c1a8f9bd94)
2004-03-27 08:51:04 +00:00
Andrew Bartlett
63f5167a28 Add a few comments explaining KEY_EXCH
Andrew Bartlett
(This used to be commit e5422d7413e22775bc81e36559cb69254aedb102)
2004-03-27 08:43:09 +00:00
Andrew Bartlett
873db3f5fd Based on the detective work of Jianliang Lu <j.lu@tiesse.com>, allow yet
another NTLMv2 combination.

We should allow the NTLMv2 response to be calculated with either the domain
as supplied, or the domain in UPPER case (as we always did in the past).

As a client, we always UPPER case it (as per the spec), but we also
make sure to UPPER case the domain, when we send it.  This should give
us maximum compatability.

Andrew Bartlett
(This used to be commit 1e91cd0cf87b29899641585f46b0dcecaefd848e)
2004-03-27 07:53:47 +00:00
Andrew Bartlett
6dbd02d056 Make it clearer that this error refers to the peer, as this code is in both
the client and server.

Andrew Bartlett
(This used to be commit 414d3fdc753b44262e9a281170d1058608d01bdf)
2004-03-27 07:51:31 +00:00
Andrew Bartlett
e9a7e67e01 Merge from HEAD the SMB signing patch that I developed a couple of weeks
ago.

This patch re-adds support for 'optional' SMB signing.  It also ensures that
we are much more careful about when we enable signing, particularly with
on-the-fly smb.conf reloads.

The client code will now attempt to use smb signing by default, and disable
it if the server doesn't correctly support it.

Andrew Bartlett
(This used to be commit e27b5cbe75d89ec839dafd52dd33101885a4c263)
2004-03-27 07:33:59 +00:00
Andrew Bartlett
59572d1297 Ensure we correctly set cli->nt_pipe_fnum on failure to correctly open the
NT session.

Andrew Bartlett
(This used to be commit 01fff20e6e0212e9f70a5a66c3e46f7079b342f1)
2004-03-27 05:39:19 +00:00
Andrew Bartlett
deee8fae47 As I raised (without objection) on the mailing list a while back, this
patch removes the 'unicode' smb.conf option.

Clients are as always free not to negotiate unicode, but Samba will always
accept unicode in smbd.

Setting 'unicode = no' caused me more client BSODs than any other option
I have seen, and I really want to protect some of our more silly users, who
will, no matter what, select and change every option...

Andrew Bartlett
(This used to be commit 3f9177bd5df68809294335a36919994893ff8ead)
2004-03-27 05:38:20 +00:00
Jeremy Allison
651d5b4683 Working (tested) client code for setting EA's by filename and fnum.
Now for parsing out the retrieved EA's.
Jeremy.
(This used to be commit 5eeeee302cec2cc1f6c130ed44be9df028f73cde)
2004-03-27 02:13:58 +00:00
Jeremy Allison
8d6aee954a Fix bug #1211. Ensure accept socket is in non-blocking state in case of network
error after select() returns true. (See accept man page on Linux). Patch from
rabies@meep.org (Richard Garnish).
Jeremy.
(This used to be commit 6ca158291cf1f533ef18b542c84f22e9780c0966)
2004-03-26 23:02:53 +00:00
Volker Lendecke
87280e9a79 Move the Client-IP based msdfs target expansion to a VFS module.
Volker
(This used to be commit 9cb6a4d76f87b28077861d3f4220541fbf704ddf)
2004-03-26 22:26:33 +00:00
Jeremy Allison
1a50cf19d0 Always use strchr_m, not strchr on unix character sets.
Jeremy.
(This used to be commit 8431b985d66e76ab187efb617639e767142b0bb5)
2004-03-26 20:40:30 +00:00
Volker Lendecke
950f0f84a5 After briefly talking to jerry, commit this:
Redirect clients to shares based on the the client's IP address. The msdfs
link has the following form:

temp1 -> msdfs:@/data/tmp/redir@\temp

The file /data/tmp/redir has the contents:

192.168.234.128 closest
192.168.234 close
        default

Everything in between the @-signs in the link target is replaced by the
substituion in the file.

Jerry, errors in the filename expansion are now answered with
NT_STATUS_OBJECT_NAME_NOT_FOUND

Volker
(This used to be commit 8e237d533eded8d218cc9c77e056823702f390f8)
2004-03-26 17:58:30 +00:00
Gerald Carter
bfa1b2a8bd source code fix for bug 1095 -- honor the '-l' option
(This used to be commit ab48af6993b427f525c36aa0ffd57c612c100561)
2004-03-26 15:40:06 +00:00
Jim McDonough
2732b702fb Use timegm, or our already existing replacement instead of timezone, as
some platforms (FreeBSD in this case) don't define timezone according to
posix.  This is what I wanted to do anyway.

Spotted by Andrzej Tobola <san@iem.pw.edu.pl>
(This used to be commit bc13e35db0b8b265f87553d4df1c7326710cb3fa)
2004-03-25 18:25:41 +00:00
Gerald Carter
073d1c1964 jra's patch -- fix anonymous self referral code to check that a share is an msdfs root first
(This used to be commit 641c2acd92b358fab4441071df411adbbd934ae8)
2004-03-25 14:41:56 +00:00
Tim Potter
7850250445 Path for bugzilla #1152 from Timur Bakeyev. Allow python modules to
build despite libraries added to LDFLAGS instead of LDPATH.
(This used to be commit 98a25dcda8e53e22b48930131ff394414056f6a1)
2004-03-24 23:52:11 +00:00
Gerald Carter
cc98a35689 fixes for prnadmin.dll API
* force the PRINTER_ATTRIBUTE_LOCAL (nor PRINTER_ATTRIBUTE_NETWORK)
  * ensure that we return the sec_desc in smb_io_printer_info_2
    (allows prnui.dll to restore security descriptors from a data file).
(This used to be commit c335cb80d2e4c687279b7a6038a97518770ccae9)
2004-03-24 19:15:17 +00:00
Jim McDonough
9a8e30d04b Fix bugzilla # 1208
Winbind tickets expired.  We now check the expiration time, and acquire
new tickets.  We couln't rely on renewing them, because if we didn't get
a request before they expired, we wouldn't have renewed them.  Also, there
is a one-week limit in MS on renewal life, so new tickets would have been
needed after a week anyway.   Default is 10 hours, so we should only be
acquiring them that often, unless the configuration on the DC is changed (and
the minimum is 1 hour).
(This used to be commit c2436c433afaab4006554a86307f76b6689d6929)
2004-03-24 17:32:55 +00:00
Stefan Metzmacher
7d7b6190b0 change my email address to the samba.org one
metze
(This used to be commit 5bf8f1b31b7b37317e78bbb9fbf3cd25290027b5)
2004-03-24 13:41:06 +00:00
Jeremy Allison
90f64838f4 Added cli_set_ea(), cli_get_ea next...
Jeremy.
(This used to be commit b0c109c40335a2f59406e1d2845d676d211faf14)
2004-03-24 03:48:08 +00:00
Gerald Carter
e763369851 adding commit messages for recent changes
(This used to be commit ab509c74ba80d4f4e9a7355b8afb3b800825aac0)
2004-03-22 23:12:07 +00:00
Gerald Carter
f2e853d345 remove unused variable
(This used to be commit 170c443b19604c3ec997ae494954c473e356e59d)
2004-03-22 23:05:02 +00:00
Gerald Carter
e9e03e9900 missed one on BUG 1195; make sure to set the private * to NULL
(This used to be commit 97a24d13892e292d31a1a6d7a1c96893508d6222)
2004-03-22 22:57:21 +00:00
Gerald Carter
63f8fe3d49 BUG 1185: use 'winbind cache time' as the reconnect period when seq_num == -1 rather than multiplying it by 8 (the default cache time is 5 minutes now)
(This used to be commit 8d6e370313b62556ba13d88e1ab5ff468ac103c8)
2004-03-22 22:50:27 +00:00
Gerald Carter
14dd75d181 bug 1195: add flag to ADS_STRUCT so we know who owns the main structure's memory (not the members though)
(This used to be commit 4449e0e251190b741f51348819669453f0758f36)
2004-03-22 22:49:40 +00:00
Andrew Bartlett
f58e6a9977 Given how often a panic has to do with malloc() problems, don't tempt
things more by calling SAFE_FREE() just before we exit our panic handler.

Andrew Bartlett
(This used to be commit d0b820562b8a7f8e5d0224926d46590b9f1ca9a3)
2004-03-21 08:43:41 +00:00