1
0
mirror of https://github.com/samba-team/samba.git synced 2025-11-22 16:23:49 +03:00
Commit Graph

1964 Commits

Author SHA1 Message Date
Volker Lendecke
4863ff2899 r24223: Convert reply_echo to the new API 2007-10-10 12:29:17 -05:00
Volker Lendecke
824eb26738 r24133: Explicitly pass flags2 down to push_string_fn
This needs a bit closer review, it also touches the client libs
2007-10-10 12:29:10 -05:00
Volker Lendecke
804be77e46 r23991: Some const 2007-10-10 12:28:53 -05:00
Volker Lendecke
dc6f4bdb7f r23986: Some const 2007-10-10 12:28:52 -05:00
Stefan Metzmacher
a3b97cdce7 r23893: add dummy callbacks for LDAP SASL wrapping,
they're not used yet...

metze
2007-10-10 12:28:39 -05:00
Stefan Metzmacher
00909194a6 r23888: move elements belonging to the current ldap connection to a
substructure.

metze
2007-10-10 12:28:38 -05:00
Andrew Tridgell
87c91e4362 r23801: The FSF has moved around a lot. This fixes their Mass Ave address. 2007-10-10 12:28:27 -05:00
Andrew Tridgell
c676a97114 r23798: updated old Temple Place FSF addresses to new URL 2007-10-10 12:28:26 -05:00
Andrew Tridgell
1b78cace50 r23790: LGPLv3+ conversion for our LGPLv2+ library code 2007-10-10 12:28:25 -05:00
Andrew Tridgell
b0132e94fc r23784: use the GPLv3 boilerplate as recommended by the FSF and the license text 2007-10-10 12:28:22 -05:00
Jeremy Allison
407e6e695b r23779: Change from v2 or later to v3 or later.
Jeremy.
2007-10-10 12:28:20 -05:00
Volker Lendecke
836782b07b r23726: Explicitly pass down the FLAGS2 field to srvstr_pull_buf. The next
checkin will pull this up to srvstr_get_path. At that point we can get more
independent of the inbuf, the base_ptr in pull_string will only be used
to satisfy UCS2 alignment constraints.
2007-10-10 12:23:49 -05:00
Simo Sorce
b35038fa4e r23723: Alexander Larsson pointed me at a missing mapping in clierror.c
When renaming a file across 2 filesystem a samba server returns
NT_STATUS_NOT_SAME_DEVICE but thius is not translated to EXDEV,
and the generic EINVAL is returned instead.
This should fix it, Jeremy or Derrel please check if this is ok.
2007-10-10 12:23:48 -05:00
Volker Lendecke
afd7febd98 r23710: Remove some code duplication, we do have a random number generator 2007-10-10 12:23:47 -05:00
Günther Deschner
accb40446a r23651: Always, always, always compile before commit...
Guenther
2007-10-10 12:23:41 -05:00
Günther Deschner
b9d7a2962a r23650: Fix remaining callers of krb5_kt_default().
Guenther
2007-10-10 12:23:41 -05:00
Günther Deschner
19020d19dc r23649: Fix the build (by moving smb_krb5_open_keytab() to clikrb5.c).
Guenther
2007-10-10 12:23:41 -05:00
Günther Deschner
e9a7512a9f r23627: Allow to pass down the lookup-level to rpccli_lsa_lookup_names().
Guenther
2007-10-10 12:23:38 -05:00
Günther Deschner
837b0a14c4 r23624: Merge dos error code from samba4 (returned from dfs_Enum against w2k3 as soon
as a one DFS_VOLUME_FLAVOR_AD_BLOB dfsroot exists).

Guenther
2007-10-10 12:23:37 -05:00
Günther Deschner
eb1ec508ac r23609: Removing more redundant codepaths out of smb_krb5_renew_ticket().
Thanks Volker for the pointer hint :)

Guenther
2007-10-10 12:23:36 -05:00
Günther Deschner
277e07c855 r23588: Some more cleanups and error checks in the krb5 renew function.
Guenther
2007-10-10 12:23:33 -05:00
Günther Deschner
0b9acc8610 r23587: Cleanup redundant code in the krb5 renew function.
Guenther
2007-10-10 12:23:33 -05:00
Günther Deschner
1e4a7af993 r23586: Fix heimdal path in the krb5 renew routine when we need to compose the tgt
string ourselves.

Guenther
2007-10-10 12:23:33 -05:00
Günther Deschner
aa3511a5b5 r23582: Fix event based krb5 ticket refreshing in winbindd.
We were incorrectly using the renew_till timestamp instead of the renewed
ticket's endtime to calculate the next refreshing date.

Guenther
2007-10-10 12:23:32 -05:00
Jeremy Allison
073fdc5a58 r23554: Fix bug #4711 by makeing cli_connect return an NTSTATUS.
Long overdue fix....
Jeremy.
2007-10-10 12:23:28 -05:00
James Peach
171dc060e2 r23510: Tidy calls to smb_panic by removing trailing newlines. Print the
failed expression in SMB_ASSERT.
2007-10-10 12:23:23 -05:00
Jeremy Allison
4524ee2dbc r23347: Fix Coverity 363. Dead code elimination.
Jeremy.
2007-10-10 12:23:08 -05:00
Volker Lendecke
52545d1192 r23224: Move map_nt_error_from_unix to lib/errmap_unix.c. This function is
useful even in binaries that don't link in libsmb
2007-10-10 12:22:56 -05:00
Volker Lendecke
9b10dbbd5d r23183: Check in a change made by Tridge:
This replaces the internal explicit dev/ino file id representation by a
"struct file_id". This is necessary as cluster file systems and NFS
don't necessarily assign the same device number to the shared file
system. With this structure in place we can now easily add different
schemes to map a file to a unique 64-bit device node.

Jeremy, you might note that I did not change the external interface of
smb_share_modes.c.

Volker
2007-10-10 12:22:52 -05:00
Jeremy Allison
2524d85465 r23148: Fix old old bug in cli_smbwrite() (not incrementing
data being sent). Patch from mnix@wanm.com.au.
Jeremy.
2007-10-10 12:22:48 -05:00
Günther Deschner
37ae7f4197 r23127: Fill in some more netlogon dsgetdcname flavours (netr_DsRGetDCNameEx,
netr_DsRGetDCNameEx2) and add new ds request and reply flags, also add some
more WERROR codes.

Guenther
2007-10-10 12:22:48 -05:00
Derrell Lipman
6675c8acf1 r23001: - Fix but #4634. Type of the size parameter to getpeername was wrong. 2007-10-10 12:22:13 -05:00
Jeremy Allison
a398bdf08d r22950: Fix the issue Volker reported here :
"Attempt to fix some build farm failures: On port 139 the first
successful packet gives len==0 from the server, so the = in

        if (len <= 0) {

in line 136 of clientgen.c throws a failure."

The irritating thing is that I already had it correct in
SAMBA_3_0_26 and forgot to merge the change across.

len == 0 is a valid return - I messed that up when
converting client_receive_smb() to return a length
rather than a BOOL.

Doh !

Jeremy.
2007-10-10 12:22:11 -05:00
Volker Lendecke
0bdf4f1a59 r22930: Next attempt to get the build farm in line.
Jeremy, please check this and merge if appropriate.
2007-10-10 12:22:10 -05:00
Volker Lendecke
9c5111d8c5 r22929: Attempt to fix some build farm failures: On port 139 the first
successful packet gives len==0 from the server, so the = in

        if (len <= 0) {

in line 136 of clientgen.c throws a failure.

Jeremy, please fix this properly, I'm not merging this to 3_0_26 so that
you can filter it when you merge.

Volker
2007-10-10 12:22:10 -05:00
Jeremy Allison
6fe2ee3bd7 r22924: Fix the build by correctly processing readX
errors in the direct read case.
Jeremy.
2007-10-10 12:22:08 -05:00
Jeremy Allison
a53268fb20 r22920: Add in the UNIX capability for 24-bit readX, as discussed
with the Apple guys and Linux kernel guys. Still looking
at how to do writeX as there's no recvfile().
Jeremy.
2007-10-10 12:22:08 -05:00
Derrell Lipman
7213b5ebec r22914: - Fixes bug 4599. A missing <code>if</code> statement forced subseqeuent
attempts to set attributes to fail.

- I also noticed that missing attributes were setting an invalid return string
  by getxattr(), e.g. if there was not group, the return string had "GROUP:;"
  instead of excluding the GROUP attribute entirely as it should.  The big
  problem with the way it was, is that the string could not then be passed to
  setxattr() and parsed.
2007-10-10 12:22:07 -05:00
Volker Lendecke
330946ad23 r22908: All callers of message_init now also call messaging_init. Unify those. 2007-10-10 12:22:07 -05:00
Volker Lendecke
3fdfb5b7cd r22905: cli_send_mailslot had a message_send_pid inside 2007-10-10 12:22:06 -05:00
Derrell Lipman
34f77af02e r22850: - Fixes bug 4601. smbc_getxattr() would not, in one case, properly return the
required size of a buffer needed to contain the extended attributes.
2007-10-10 12:22:02 -05:00
Volker Lendecke
3d3d61687e r22844: Introduce const DATA_BLOB data_blob_null = { NULL, 0, NULL }; and
replace all data_blob(NULL, 0) calls.
2007-10-10 12:22:01 -05:00
Volker Lendecke
a66a04e9f1 r22747: Fix some C++ warnings 2007-10-10 12:21:54 -05:00
Volker Lendecke
0ad4b1226c r22736: Start to merge the low-hanging fruit from the now 7000-line cluster patch.
This changes "struct process_id" to "struct server_id", keeping both is
just too much hassle. No functional change (I hope ;-))

Volker
2007-10-10 12:21:52 -05:00
Derrell Lipman
cc0cd3a12f r22732: - Testing of libsmbclient against Vista revealed what is likely a bug in
Vista.  Vista provides a plethora of kludges to simulate older versions of
  Windows.  The kludges are in the form of shortcuts (or more likely symbolic
  links, but I don't know enough about Vista to determine that definitively)
  and in most cases, attempts to access them get back an "access denied"
  error.  On one particular folder, however, "<share>/Users/All Users", it
  returns an unknown (to ethereal and the Samba3 code) NT status code:
  0x8000002d.  Although this code does not have a high byte of 0xc0 indicating
  that it is an error, it appears to be an alternate form of "access denied".

  Without this patch, libsmbclient times out on an attempt to enumerate that
  folder rather than returning an error to the caller.  This patch corrects
  that problem.
2007-10-10 12:21:52 -05:00
Günther Deschner
dcd902f24a r22664: When we have krb5_get_init_creds_opt_get_error() then try to get the NTSTATUS
codes directly out of the krb5_error edata.

Guenther
2007-10-10 12:19:53 -05:00
Günther Deschner
fce2fe9903 r22655: Call correct free-macros in netsamlogon_cache_get() error paths. Forgot those
in the previous commit.

Guenther
2007-10-10 12:19:53 -05:00
Günther Deschner
5b149967cc r22647: Avoid leaking a full info3 structure on each winbindd cached login by making
netsamlogon_cache_get() return a talloc'ed structure.

Guenther
2007-10-10 12:19:52 -05:00
Günther Deschner
65a2701f36 r22644: Fix memleak.
Guenther
2007-10-10 12:19:52 -05:00
Jeremy Allison
8968808c3b r22589: Make TALLOC_ARRAY consistent across all uses.
Jeremy.
2007-10-10 12:19:49 -05:00