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

21682 Commits

Author SHA1 Message Date
Jeremy Allison
ca256664aa r21846: Try and fix the Darwin build which seems to have a strange krb5.
Jeremy.
(This used to be commit 1e32b44bfc)
2007-10-10 12:18:37 -05:00
Jeremy Allison
edccfc9192 r21845: Refactor the sessionsetupX code a little to allow us
to return a NT_STATUS_TIME_DIFFERENCE_AT_DC error to
a client when there's clock skew. Will help people
debug this. Prepare us for being able to return the
correct sessionsetupX "NT_STATUS_MORE_PROCESSING_REQUIRED"
error with associated krb5 clock skew error to allow
clients to re-sync time with us when we're eventually
able to be a KDC.
Jeremy.
(This used to be commit c426340fc7)
2007-10-10 12:18:37 -05:00
Steve French
3cb9ce7668 r21840: mount.cifs compile on old libc missing bind mount #define
Thanks to Thomas Jarosch for pointing this out.
(This used to be commit bd9439cc7d)
2007-10-10 12:18:37 -05:00
Volker Lendecke
f56da0890f r21831: Back out r21823 for a while, this is going into a bzr tree first.
Volker
(This used to be commit fd0ee6722d)
2007-10-10 12:18:37 -05:00
Herb Lewis
93128b863b r21825: add debug prefix timestamp to allow "short timestamps" to be
added to debug messages
(This used to be commit 4af2795e65)
2007-10-10 12:18:37 -05:00
Volker Lendecke
aa6055debd r21823: Let secrets_store_machine_password() also store the account name. Not used
yet, the next step will be a secrets_fetch_machine_account() function that
also pulls the account name to be used in the appropriate places.

Volker
(This used to be commit f94e5af72e)
2007-10-10 12:18:36 -05:00
Günther Deschner
0e702698f9 r21822: Adding experimental krb5 lib locator plugin.
This is a starting point and may get changed. Basically we need follow the
exact same path to detect (K)DCs like other Samba tools/winbind do. In
particular with regard to the server affinity cache and the site-awarness for
DNS SRV lookups.

To compile just call "make bin/smb_krb5_locator.so", copy to
/usr/lib/plugin/krb5/ (Heimdal HEAD) or /usr/lib/krb5/plugins/libkrb5/ (MIT)
and you should immediately be able to kinit to your AD domain without having
your REALM with kdc or kpasswd directives defined in /etc/krb5.conf at all.

Tested with todays Heimdal HEAD and MIT krb5 1.5.

Guenther
(This used to be commit 34ae610bd5)
2007-10-10 12:18:36 -05:00
Volker Lendecke
e6ccc787d9 r21819: Wrap all steps in secrets_store_machine_password into one single
transaction. Succeed all or store nothing.

Volker
(This used to be commit 4efc7b4598)
2007-10-10 12:18:36 -05:00
Volker Lendecke
c55d05b03c r21818: Remove some unused code
(This used to be commit f88eab91c4)
2007-10-10 12:18:36 -05:00
Andrew Tridgell
a2d9f07d4c r21814: use ndr_push_error in the ndr layer, not just a NTSTATUS failure
(This used to be commit 05bd5cb6ee)
2007-10-10 12:18:36 -05:00
Andrew Tridgell
5e74df4202 r21813: fixed an integer overflow error in the ndr push code.
Jerry, you might like to consider this for 3.0.25
(This used to be commit 4b1c4cd25a)
2007-10-10 12:18:35 -05:00
Lars Müller
668da636e3 r21804: Create a reference after proto_exits was called once. Else we link the
binaries again with each make.  Thx Volker to point my chesty at this.
(This used to be commit 0cb6634d94)
2007-10-10 12:18:35 -05:00
Jeremy Allison
a5dd4355cd r21803: Missed part of patch to make self-referrals work.
Jeremy.
(This used to be commit b1fa55e513)
2007-10-10 12:18:35 -05:00
Volker Lendecke
81c820d77d r21801: Fix Coverity ID # 342
(This used to be commit 8700cd71bb)
2007-10-10 12:18:35 -05:00
Jeremy Allison
24cdd7c733 r21800: Check-in the DFS rewrite. I am still testing this but it
works from smbclient and Windows, and I am promising to
support and fix both client and server code moving forward.
Still need to test the RPC admin support but I haven't
changed that code.
Jeremy.
(This used to be commit 7a7862c01d)
2007-10-10 12:18:34 -05:00
Jeremy Allison
59c071f707 r21792: Fix crash bug triggered by Excel reported by Jerry.
Bad cut-n-paste on rewrite of timestamps.
Jeremy.
(This used to be commit 1809e0866a)
2007-10-10 12:18:34 -05:00
Volker Lendecke
77a4b25113 r21785: Avoid an unnecessary gettimeofday() call
Volker
(This used to be commit a0af6ff736)
2007-10-10 12:18:34 -05:00
Volker Lendecke
0d91334fe7 r21784: Replace smb_register_idle_event() with event_add_timed(). This fixes winbind
who did not run the idle events to drop ldap connections.

Volker
(This used to be commit af3308ce5a)
2007-10-10 12:18:33 -05:00
Jeremy Allison
5214cb6782 r21783: Add in the "create info" field to the reply
from POSIX_OPEN and POSIX_MKDIR as specified
by Stevef in the wikki (extra 4 byte field).

Also fix horrible bug in James's code (James
you should review this for your Apple patch
tree) where he failed to allocate the correct
return memory size when returning a INFO2
struct. Added #define for the size of the
INFO2 struct and made sure we allocate the
correct size for return.

Jeremy.
(This used to be commit d88bc59cb4)
2007-10-10 12:18:33 -05:00
Volker Lendecke
8a05fe78c9 r21782: Fix a memleak
(This used to be commit a2dc1f62fd)
2007-10-10 12:18:33 -05:00
Herb Lewis
ec5167efa9 r21780: let smbcontrol use POPT_COMMON_SAMBA options to allow setting debug
level. Fix calculation of argc after options are stripped. I couldn't
find a popt function that returned this.
(This used to be commit 6bcbf23e2a)
2007-10-10 12:18:32 -05:00
James Peach
98e58694ee r21779: I missd a call to krb5_get_init_creds_opt_alloc in r21778.
(This used to be commit 4f6c2826aa)
2007-10-10 12:18:32 -05:00
James Peach
3adeb42742 r21778: Wrap calls to krb5_get_init_creds_opt_free to handle the different
calling convention in the latest MIT changes.  Apparantly Heimdal
is also changing to this calling convention.
(This used to be commit c29c69d2df)
2007-10-10 12:18:32 -05:00
Jeremy Allison
257d2e0d2a r21777: As Stevef requested and the Apple guys agreed, make
mode_t in posix_open/posix_mkdir -> 8 bytes to match
the SET_UNIX_INFO_BASIC call. Steve is updating the
Wikki.
Jeremy.
(This used to be commit 2f1c95ac77)
2007-10-10 12:18:32 -05:00
Simo Sorce
10820162f1 r21776: fix bugs #4438 #4440
(This used to be commit 319fcb4ea8)
2007-10-10 12:18:31 -05:00
Herb Lewis
b1fc114fdc r21775: make messages more understandable - don't leave part dangling after newline
(This used to be commit f57e4f8ada)
2007-10-10 12:18:31 -05:00
Günther Deschner
f6c9f87e05 r21774: Fix the build with Fedora Core 6.
tridge/vl: please check.

Guenther
(This used to be commit 39d54738db)
2007-10-10 12:18:31 -05:00
Jeremy Allison
dd011f453e r21770: For old DOS style searches we must remember if
the initial search had a wildcard in order to
correctly return no error on end of search.
Found by Samba4 torture tester.
Jeremy.
(This used to be commit c74bcf7677)
2007-10-10 12:18:31 -05:00
Jeremy Allison
12c617af08 r21769: Attempt to fix bug #4384 in old search code.
We were accessing a pathname that hadn't gone
through unix_convert ! That's a big no-no...
Jeremy.
(This used to be commit 33a67fd39e)
2007-10-10 12:18:31 -05:00
Jeremy Allison
540911001d r21768: Fix the client dfs code such that smbclient can
process deep dfs links (ie. links that go to non root
parts of a share). Make the directory handling conanonical
in POSIX and Windows pathname processing.
dfs should not be fully working in client tools. Please
bug me if not.
Jeremy.
(This used to be commit 1c9e10569c)
2007-10-10 12:18:30 -05:00
James Peach
a39f08eec2 r21767: Revert all the bits I accidentally committed in r21766.
(This used to be commit 7e862b9080)
2007-10-10 12:18:30 -05:00
James Peach
41c8f3da97 r21766: Fix compiler warning.
(This used to be commit f82ac78b2f)
2007-10-10 12:18:29 -05:00
James Peach
872cd741ca r21765: Fix the build for HP-UX.
(This used to be commit 04cb34ff9d)
2007-10-10 12:18:29 -05:00
Jeremy Allison
7b85ad755d r21764: Fix warning in debug comment.
Jeremy.
(This used to be commit 12c29a8e9b)
2007-10-10 12:18:29 -05:00
James Peach
30b9b9acae r21763: Add support for the UNIX_INFO2 infolevel.
(This used to be commit 262e4e1fd8)
2007-10-10 12:18:29 -05:00
James Peach
70d5f417ab r21762: Fix the build by enabling shared modules and adding the config.*
files. Add norify_watch and chflags operations. Fix a bunch of
warnings.
(This used to be commit 1106db7ea1)
2007-10-10 12:18:29 -05:00
Jeremy Allison
db32963181 r21759: Fix the same bug in a more elegant way, strrchr_m
is an expensive call....
Jeremy.
(This used to be commit 321a136dbc)
2007-10-10 12:18:28 -05:00
Jeremy Allison
c4ea95fd30 r21758: Fix a very specific dfs bug when passing in POSIX
pathnames. When we're working out how much we've
consumed we need to backtrack by either a '/' or '\\'
component, as both are valid separators.
Jeremy.
(This used to be commit 1722ea20db)
2007-10-10 12:18:28 -05:00
James Peach
6e5ea70e9e r21757: Add SMB_VFS_CHFLAGS operation.
(This used to be commit 16cb22d6b8)
2007-10-10 12:18:28 -05:00
Jeremy Allison
286d8554aa r21756: An invarient the dfs code depended on for POSIX paths
is no longer true, so fix it.
Jeremy.
(This used to be commit 698159c0ee)
2007-10-10 12:18:28 -05:00
Jeremy Allison
aab1dd4ddb r21755: Memory leak fixes from Zack Kirsch <zack.kirsch@isilon.com>.
Jeremy.
(This used to be commit 02d08ca0be)
2007-10-10 12:18:28 -05:00
Jeremy Allison
7b2c2e4155 r21754: Volker is completely correct. There's no need for
the RESOLVE_DFSPATH macros and their varients
any more. Fix reporting profile bug with all
error returns.
Jeremy.
(This used to be commit cdf0fdb104)
2007-10-10 12:18:28 -05:00
Volker Lendecke
b7d96fdc04 r21753: Enable building ndrdump with the builtin popt. Jelmer, please check!
(This used to be commit c1cfeb61a1)
2007-10-10 12:18:27 -05:00
Jeremy Allison
b81b6b31c5 r21750: Sync up with SAMBA_3_0_25. Only client changes are in libsmbclient
right now.
Jeremy.
(This used to be commit 6dd5f0ef0f)
2007-10-10 12:18:27 -05:00
Volker Lendecke
062a22be47 r21748: More cosmetic alignment. One change to call_nt_transact_create(): We were
asking open_file_ntcreate for a batch oplock if the client asked us to do so,
even if it did not ask for an oplock in the first place. Did not test it, but
I think this is bogus anyway.

Volker
(This used to be commit 0b94af112b)
2007-10-10 12:18:27 -05:00
Volker Lendecke
5309fd6d13 r21747: Cosmetic checkin to bring ntcreate and nttranscreate closer together
(This used to be commit ecc781f1a2)
2007-10-10 12:18:27 -05:00
James Peach
47c9fe3980 r21738: Remove unused file.
(This used to be commit 7246b31696)
2007-10-10 12:18:27 -05:00
Jeremy Allison
0a78e20bf0 r21734: Fix bug #4369. Patch from David Leonard <dleonard@vintela.com>.
Jeremy.
(This used to be commit 62a5c22a13)
2007-10-10 12:18:27 -05:00
Jeremy Allison
235b0f97f2 r21731: Fix long-standing bug in our chain processing code.
Should fix a bug with WinPE. Probably a candidate
for the Vista patchset.
Jeremy.
(This used to be commit ef32de6b59)
2007-10-10 12:18:26 -05:00
Jeremy Allison
cda247e9d4 r21726: Fix stupid cut-n-paste typo. Thanks to volker for
being on the ball..... :-).
Jeremy.
(This used to be commit 84ed7bcbe6)
2007-10-10 12:18:26 -05:00