1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-09 08:58:35 +03:00

10448 Commits

Author SHA1 Message Date
Tim Potter
451286febd Display an error message when the server cannot be resolved when running at
debug level 0.
-
Jeremy Allison
465d86d95f Fix open problem with changing attributes on an existing file - based
on work by  <steve@griffin.sio2.nl>.
Jeremy.
-
Volker Lendecke
8915d59a59 Fix memory leak. Thanks, Herb!
Volker
-
Herb Lewis
15b2b91f4b this makes it compile, but I'm not sure if it is correct. Are we really
testing a pointer value to be equal to 0x19 ???
-
Herb Lewis
e3b1e64d9f cannot make assignments to const values. -
Herb Lewis
cfe2d01b7d add and escape before $( in regex string so it is not interpreted as the
perl variable for "real gid of this process"
-
Volker Lendecke
c9d0c5254c Create a machine account correctly if the unix account exists.
With this, my test for W2kSP3 join after pdbedit -a -m works fine.

Volker
-
Christopher R. Hertel
02986f3e3a Added code to the handling of the -M option to ensure that we default to
port 139 for that option.  The NetBIOS Messenger Service doesn't run on
a non-NBT port.
-
Tim Potter
232116d2db Rename a local variable to avoid a warning. -
Tim Potter
431ac28b5b 'index' is the name of a libc function. Rename to 'ndx' to avoid compiler
warnings.
-
Tim Potter
4bc82624f6 Remove unused variable. -
Jeremy Allison
ddf741c717 Fix memory leaks in pdb_ code.
Jeremy.
-
Gerald Carter
0f8ba688d4 add $(LDFLAGS) to libsmbclient -
Jeremy Allison
cde517cedf Fix from "Ken Cross" <kcross@nssolutions.com> for enumerating
groups.
Jeremy.
-
Andrew Bartlett
41178afdbd Fix a segfault when we don't correctly load a VFS module (don't keep it in
the loaded list on error).  Also change some of the error returns, becouse
NT_STATUS_UNSUCCESSFUL gives a most useless error message on the client.

As for which error, my logic is that a share without a valid VFS module is
not a valid share, and therefore should return the same error as a non-existant
share.

Andrew Bartlett
-
Andrew Bartlett
5c2e34b5b6 Clear up the auth_sam password checking code (the core of our password checking
routines).  In particular, we now better support the NT# in LM feild, and the
LMv2 password scheme.  (LMv2 is basicly NTLMv2 capped at 24 bytes, slightly
more secure, and in the LM feild for compatiblity).

Thanks to the Samba-TNG team and Luke Leighton for various descriptions of this
algorithm, and to MS for a solution that seems to actually make sense for once
:-).

Andrew Bartlett
-
Andrew Bartlett
066e4f9a4b Even when I can't manage to do QA, at least the build farm will catch some of
the silly stuff.

(fixes password changes from RAP based clients like smbpasswd)

Andrew Bartlett
-
Jeremy Allison
6e0cfec165 Fix problem with "hide unreadable". stat file opens are baaack :-).
Jeremy.
-
Gerald Carter
4461cd3adb regenerate man pages -
Gerald Carter
4c48c475a2 patch to include support for daemontools from Michael Handler -
Gerald Carter
63d057fc78 make sure we create the PIDDIR and LOCKDIR from installdirs -
Gerald Carter
33686a2a7d oops. Use -r, not -f -
Gerald Carter
8a0fb1a60d patch from Andrew Bird to correct a few file/directory checks when building -
Christopher R. Hertel
42a4e5b851 Fixed some simple typos, including one that would have resulted in a
DEBUG() message printing the wrong value.
-
Jeremy Allison
585a73b810 pstring/fstring missmatches found by Andrew Bartlett.
Jeremy.
-
Gerald Carter
5023aec5ad WITH_SENDFILE #ifdef merged from SAMBA_2_2 -
Volker Lendecke
0c04c660c5 We still have 'ldap server' and 'ldap port'. Could somebody please
regen the docs?

Thanks,

Volker
-
Andrew Bartlett
f71c8338d3 We already have one function to move unistr2 -> multibyte-static, so we
don't need a second just for pdb.

Also, remove magic 'is lp_guest_account' test - the magic RID should be
up to the passdb backend to set.

Andrew Bartlett
-
Andrew Bartlett
c7e5797a95 Becouse these functions return a size_t, they can't return negitive numbers.
So a < 0 check is pointless, instead check against -1, which will be cast to
unsigned.

Andrew Bartlett
-
Andrew Bartlett
23abf75ade debugparse is a seperate utility, no need to include it in the main ubiqx
objects.

Andrew Bartlett
-
Andrew Bartlett
16fe928e68 Add PRINTF_ATTRIBUTE() to a few more printf() style functions. Aids in
compiler-based argument checking.
-
Andrew Bartlett
ceb2a79849 Call me parinoid, but I don't like the idea that we could ever have dbf point
to a closed file.  Swap the assign and the close around.

Andrew Bartlett
-
Andrew Bartlett
6d201c9616 Add a dash of static. -
Volker Lendecke
f5494f5ef6 One more const. Andrew, you seem to have krb5 :-)
Volker
-
Andrew Bartlett
92a777d0ea BIG patch...
This patch makes Samba compile cleanly with -Wwrite-strings.
 - That is, all string literals are marked as 'const'.  These strings are
always read only, this just marks them as such for passing to other functions.

What is most supprising is that I didn't need to change more than a few lines of code (all
in 'net', which got a small cleanup of net.h and extern variables).  The rest
is just adding a lot of 'const'.

As far as I can tell, I have not added any new warnings - apart from making all
of tdbutil.c's function const (so they warn for adding that const string to
struct).

Andrew Bartlett
-
Richard Sharpe
5d6c181033 Document the size constraints on a write request. -
Andrew Bartlett
028f808c03 Move our password change code along a little - use NTSTATUS, and implmenet
minimum password age and min password length for all password changes.

Andrew Bartlett
-
Simo Sorce
63a669475b fix for bad check spotted by Ray Simard <ray@sylvan-glade.com> -
Simo Sorce
1a1c746c9f ignore tdbsam2_parse_info.h -
Jeremy Allison
e789edbb28 Catching up with old patches. Add define for VERITAS quota support.
Check return in ldap.
Jeremy.
-
Simo Sorce
1eff36ff2f fix also net rpc shutdown
sorry
-
Simo Sorce
c5892b656d the shutdown call does not have a 16 bit flags, but 2 byte representing booleans
this commit change the structure and code to reflect this

some test revelead I'm right.

some other revelead currently the abort shutdown does not work against my test machine even if it returns successfully ... need investigation
-
Richard Sharpe
4201038588 Port the fix to cli_setup_write to handle offsets greater than 32-bits from
Samba 2.2.x ...
-
Andrew Bartlett
1ad782282a Add a new VFS module, that just fiddles the file permissions. Still need to
make it fiddle with NT ACLs (or report no ACL, so Samba fakes it up).

The idea here is that Samba reports an NT ACL to Windows clients, which use
that ACL in downloaded profiles.

If the user doesn't have write permissions on the directories being downloaded,
then it cant put the subfolders in (yes, NT will set perms so that it can't
access the dir as the user the created it) and the profile download fails.

The current solution it to give the user unix write perms to the folders, but
this is rather dangerous - sombody could trojen the profile.  This should
avoid that mess.

I'll test this out properly next week, but it works in vfstest (thanks idra!).

Andrew Bartlett
-
Shirish Kalele
9df93b1ffc Add msdfs proxy functionality to HEAD. -
Jeremy Allison
c7c3afbd0d Revert by Simo's request. HEAD and 3.0 should be in sync for
this except for the modules load.
Jeremy.
-
Simo Sorce
54f11b7de8 some more work on gums.
- Building a tdbsam2 backend to see what I got right and what not about the proposed API
- Corrections to API based on tdbsam2 work
-
Jeremy Allison
5914c38a54 Patch for coredump with missing arg from "Bradley W. Langhorst" <brad@langhorst.com>
Jeremy.
-
Richard Sharpe
91e2d21bd1 For some reason, the configure tests for sendfile support in FreeBSD
were broken. This works for 4.3 and 4.6.2.
-
Jelmer Vernooij
03d8d0285e Update link -