1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-04 17:47:26 +03:00

18696 Commits

Author SHA1 Message Date
Volker Lendecke
ff886436b7 r21851: Obvious typos... 2007-10-10 12:18:38 -05:00
Jeremy Allison
1a2be06d4a r21850: After Jerry explained to me the HORRIBLE way in which
the MIT gss libraries *SUCK*, move the frees to the end
of the function so MIT doesn't segfault.....
Add a comment so that another engineer knows why I did
this.
Jeremy.
2007-10-10 12:18:38 -05:00
Gerald Carter
54a114fa75 r21848: add a comment about gss_import_name() and when to free the krb5 principal data 2007-10-10 12:18:38 -05:00
Jeremy Allison
89bdd30e4b r21847: Fix memory leaks in error paths (and in main code path in one case...)
in sasl bind. Wonder why coverity didn't find these ?
Jeremy.
2007-10-10 12:18:37 -05:00
Jeremy Allison
1e32b44bfc r21846: Try and fix the Darwin build which seems to have a strange krb5.
Jeremy.
2007-10-10 12:18:37 -05:00
Jeremy Allison
c426340fc7 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.
2007-10-10 12:18:37 -05:00
Steve French
bd9439cc7d r21840: mount.cifs compile on old libc missing bind mount #define
Thanks to Thomas Jarosch for pointing this out.
2007-10-10 12:18:37 -05:00
Volker Lendecke
fd0ee6722d r21831: Back out r21823 for a while, this is going into a bzr tree first.
Volker
2007-10-10 12:18:37 -05:00
Herb Lewis
4af2795e65 r21825: add debug prefix timestamp to allow "short timestamps" to be
added to debug messages
2007-10-10 12:18:37 -05:00
Volker Lendecke
f94e5af72e 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
2007-10-10 12:18:36 -05:00
Günther Deschner
34ae610bd5 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
2007-10-10 12:18:36 -05:00
Volker Lendecke
4efc7b4598 r21819: Wrap all steps in secrets_store_machine_password into one single
transaction. Succeed all or store nothing.

Volker
2007-10-10 12:18:36 -05:00
Volker Lendecke
f88eab91c4 r21818: Remove some unused code 2007-10-10 12:18:36 -05:00
Andrew Tridgell
05bd5cb6ee r21814: use ndr_push_error in the ndr layer, not just a NTSTATUS failure 2007-10-10 12:18:36 -05:00
Andrew Tridgell
4b1c4cd25a r21813: fixed an integer overflow error in the ndr push code.
Jerry, you might like to consider this for 3.0.25
2007-10-10 12:18:35 -05:00
Lars Müller
0cb6634d94 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.
2007-10-10 12:18:35 -05:00
Jeremy Allison
b1fa55e513 r21803: Missed part of patch to make self-referrals work.
Jeremy.
2007-10-10 12:18:35 -05:00
Volker Lendecke
8700cd71bb r21801: Fix Coverity ID # 342 2007-10-10 12:18:35 -05:00
Jeremy Allison
7a7862c01d 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.
2007-10-10 12:18:34 -05:00
Jeremy Allison
1809e0866a r21792: Fix crash bug triggered by Excel reported by Jerry.
Bad cut-n-paste on rewrite of timestamps.
Jeremy.
2007-10-10 12:18:34 -05:00
Volker Lendecke
a0af6ff736 r21785: Avoid an unnecessary gettimeofday() call
Volker
2007-10-10 12:18:34 -05:00
Volker Lendecke
af3308ce5a 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
2007-10-10 12:18:33 -05:00
Jeremy Allison
d88bc59cb4 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.
2007-10-10 12:18:33 -05:00
Volker Lendecke
a2dc1f62fd r21782: Fix a memleak 2007-10-10 12:18:33 -05:00
Herb Lewis
6bcbf23e2a 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.
2007-10-10 12:18:32 -05:00
James Peach
4f6c2826aa r21779: I missd a call to krb5_get_init_creds_opt_alloc in r21778. 2007-10-10 12:18:32 -05:00
James Peach
c29c69d2df 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.
2007-10-10 12:18:32 -05:00
Jeremy Allison
2f1c95ac77 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.
2007-10-10 12:18:32 -05:00
Simo Sorce
319fcb4ea8 r21776: fix bugs #4438 #4440 2007-10-10 12:18:31 -05:00
Herb Lewis
f57e4f8ada r21775: make messages more understandable - don't leave part dangling after newline 2007-10-10 12:18:31 -05:00
Günther Deschner
39d54738db r21774: Fix the build with Fedora Core 6.
tridge/vl: please check.

Guenther
2007-10-10 12:18:31 -05:00
Jeremy Allison
c74bcf7677 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.
2007-10-10 12:18:31 -05:00
Jeremy Allison
33a67fd39e 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.
2007-10-10 12:18:31 -05:00
Jeremy Allison
1c9e10569c 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.
2007-10-10 12:18:30 -05:00
James Peach
7e862b9080 r21767: Revert all the bits I accidentally committed in r21766. 2007-10-10 12:18:30 -05:00
James Peach
f82ac78b2f r21766: Fix compiler warning. 2007-10-10 12:18:29 -05:00
James Peach
04cb34ff9d r21765: Fix the build for HP-UX. 2007-10-10 12:18:29 -05:00
Jeremy Allison
12c29a8e9b r21764: Fix warning in debug comment.
Jeremy.
2007-10-10 12:18:29 -05:00
James Peach
262e4e1fd8 r21763: Add support for the UNIX_INFO2 infolevel. 2007-10-10 12:18:29 -05:00
Jeremy Allison
321a136dbc r21759: Fix the same bug in a more elegant way, strrchr_m
is an expensive call....
Jeremy.
2007-10-10 12:18:28 -05:00
Jeremy Allison
1722ea20db 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.
2007-10-10 12:18:28 -05:00
James Peach
16cb22d6b8 r21757: Add SMB_VFS_CHFLAGS operation. 2007-10-10 12:18:28 -05:00
Jeremy Allison
698159c0ee r21756: An invarient the dfs code depended on for POSIX paths
is no longer true, so fix it.
Jeremy.
2007-10-10 12:18:28 -05:00
Jeremy Allison
02d08ca0be r21755: Memory leak fixes from Zack Kirsch <zack.kirsch@isilon.com>.
Jeremy.
2007-10-10 12:18:28 -05:00
Jeremy Allison
cdf0fdb104 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.
2007-10-10 12:18:28 -05:00
Volker Lendecke
c1cfeb61a1 r21753: Enable building ndrdump with the builtin popt. Jelmer, please check! 2007-10-10 12:18:27 -05:00
Jeremy Allison
6dd5f0ef0f r21750: Sync up with SAMBA_3_0_25. Only client changes are in libsmbclient
right now.
Jeremy.
2007-10-10 12:18:27 -05:00
Volker Lendecke
0b94af112b 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
2007-10-10 12:18:27 -05:00
Volker Lendecke
ecc781f1a2 r21747: Cosmetic checkin to bring ntcreate and nttranscreate closer together 2007-10-10 12:18:27 -05:00
James Peach
7246b31696 r21738: Remove unused file. 2007-10-10 12:18:27 -05:00