1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-12 09:18:10 +03:00
Commit Graph

17052 Commits

Author SHA1 Message Date
Volker Lendecke
3bd72b864f r3852: Fix the build... 2007-10-10 10:53:21 -05:00
Volker Lendecke
7cd12794a3 r3850: I get the impression that some developers here are using gcc 3.4. This one
only warns you about possibly uninitialized variables if you have at least
-O1.

Volker
2007-10-10 10:53:20 -05:00
Volker Lendecke
8b6f8f93a0 r3848: Fix for bug 2057. Only partially applied the patch, the second part seems not
necessary.

I'm using gcc 3.4.1, this does not detect the possibly uninitialized
variable. Does anybody know how to get 3.4.1 to warn me?

Volker
2007-10-10 10:53:20 -05:00
Volker Lendecke
78ab68367d r3846: Typo fix. Bug 2055. Lars, I'm available on irc.... :-)
Volker
2007-10-10 10:53:20 -05:00
Volker Lendecke
e547308d3e r3844: Attempt to get the build farm in line. Some systems seem to have defined
rewinddir as a macro and don't like the construct to call a function pointer
called rewinddir. Work around by renaming the function pointer...

Volker
2007-10-10 10:53:20 -05:00
Volker Lendecke
84ac54aef2 r3843: If a connection to a DC is requested, open connections simultaeneously to all
DCs found. The first one to reply wins.

Volker
2007-10-10 10:53:20 -05:00
Volker Lendecke
fc454c8ef6 r3841: Time out in ads search queries. Even AD servers can hang.
Volker
2007-10-10 10:53:20 -05:00
Volker Lendecke
fea467657d r3839: Some more specific NT security descriptors we've come across. Map them to
defined AFS acls. Thanks to Horst Birthelmer.

Volker
2007-10-10 10:53:19 -05:00
Volker Lendecke
60998d9d2f r3824: Fix crash in api_RNetShareEnum. ServicePtrs[] may contain invalid
entries. Happened after rev3708 removed non-existing cups printers.

Volker
2007-10-10 10:53:19 -05:00
Jeremy Allison
5a103f4abf r3823: Fix bug reported by Tom Dickson <tdickson@inostor.com> with
follow symlinks = no reporting an incorrect error when it should
be access denied.
Jeremy.
2007-10-10 10:53:19 -05:00
Jeremy Allison
2201981d69 r3819: Updated config.guess/config.sub from
ftp://ftp.gnu.org/pub/gnu/config/config.guess
ftp://ftp.gnu.org/pub/gnu/config/config.sub
as requested in bugid #2048.
Jeremy.
2007-10-10 10:53:19 -05:00
Jeremy Allison
eb0b1f757d r3817: Fix from Lars Müller <lmuelle@suse.de> for bug #2050, calculate
max_fd for select correctly.
Jeremy.
2007-10-10 10:53:19 -05:00
Jeremy Allison
1aa1c2f489 r3816: Added fn to remove an ACL from a file. Now need client code to test this.
How do the share mask/modes fit into this code... Need to think about this.
Jeremy.
2007-10-10 10:53:19 -05:00
Jeremy Allison
d84f5f8cc1 r3814: At least use a proper constant name (aRONLY :-) not a number.
That way we can at least remember why we did this :-).
Jeremy.
2007-10-10 10:53:18 -05:00
Volker Lendecke
b8d888000e r3811: Believe it or not, but this patch seems to be necessary. If someone sets a
folder icon in the start menu and saves the profile on a samba server, after
logging in again this setting is gone. Why is this? The folder for which the
icon is set must have the read only flag set. If it is not set, the
desktop.ini file (the file containing the icon reference) inside that folder
is ignored.

lp_profile_acls is a hack for such a situation, so overload this parameter
with another profile-related hack.

Volker
2007-10-10 10:53:18 -05:00
Jeremy Allison
53acf222a8 r3796: Patch from Jay Fenlason <fenlason@redhat.com>. Don't free static buffers.
Jeremy.
2007-10-10 10:53:18 -05:00
Jeremy Allison
6101ec2247 r3794: Added set posix acl functionality into the UNIX extensions code.
One part missing - delete file acl (to be added asap). No client
code yet, also needs testing with valgrind.
Jeremy.
2007-10-10 10:53:17 -05:00
Gerald Carter
db4719ed2f r3778: BUG 2023: patch from Buchan Milne <bgmilne@mandrake.org> fix mandrake packaging for Samba 3.0.9 -- still need to review this libsmbclient install location 2007-10-10 10:53:17 -05:00
Jeremy Allison
3b40c1e436 r3776: Fix for bug #2038 from Johann Hanne <jhml@gmx.net>. Don't check
for no groups after every lookup - move check to the end as we should
only fail if all lookups fail.
Jeremy.
2007-10-10 10:53:17 -05:00
Gerald Carter
1bc79a2808 r3772: BUG 2006: patch from Michel Gravey <michel.gravey@optogone.com>; fix build when using gcc 3.0 2007-10-10 10:53:17 -05:00
Jim McDonough
f05858df65 r3771: Fix bug #1952: no comment on XP shutdown
Try INITSHUTDOWN pipe first, used by newer clients.  If it fails, fall back
to WINREG.
2007-10-10 10:53:17 -05:00
Jeremy Allison
b815247747 r3764: Ensure on failure that *res is always NULL.
Check for malloc fail. Fixes for bug #2036.
Jeremy.
2007-10-10 10:53:17 -05:00
Jim McDonough
81e3c78d05 r3761: Fix bug #1932: crash when non-root invokes net getlocalsid
First check to see if we can open secrets.tdb.
2007-10-10 10:53:16 -05:00
Volker Lendecke
1c3f194ab7 r3758: Increase a debug level. This error condition can actually happen in real life
if you have several competing winbinds that might get a lag due to
replication.

Volker
2007-10-10 10:53:16 -05:00
Jim McDonough
82eb168c82 r3727: Update from Rob Foehl (rwf@loonybin.net):
Try modifying printer before adding it,since add logic appends ObjectClass to mods, which caused a contraint violation when modifying an already published printer.

Also cleanup the check_published_printers() logic when verifying published status on startup.
2007-10-10 10:53:16 -05:00
Jeremy Allison
4d52bf7c8b r3714: Getfacl now seems to work on files and directories. Next do setfacl
and port to Samba4.
Jeremy.
2007-10-10 10:53:16 -05:00
Jeremy Allison
1bd3f13344 r3713: Implementation of get posix acls in UNIX extensions. Passes valgrind.
Need to add printout functions in client and set posix acl in server.
SteveF - take a look at this for the cifsfs client !
Once this is working and tested the next step is to write this up for
the UNIX extensions spec. documents.
Jeremy.
2007-10-10 10:53:16 -05:00
Günther Deschner
3906c1623f r3711: Fix KRB5_SETPW-defines, no change in behaviour.
A value of '2' is due to an expired internet draft, while 0xff80 comes
from RFC3244. See Bugzilla #1661 for details.

Thanks to Luke Mewburn <lukem@NetBSD.org> for his research.

Guenther
2007-10-10 10:53:16 -05:00
Gerald Carter
5eac16464d r3710: fix another safe_strcpy() warning SPAM with the printer drivcename 2007-10-10 10:53:15 -05:00
Günther Deschner
0a02eac767 r3709: Allow to build testsuite for libsmbclient when libsmbclient.so is
located not in -L/root/samba-head-old/source/bin.

Patch from Lars Mueller <lmuelle@suse.de>, closes Bugzilla #2013.

Guenther
2007-10-10 10:53:15 -05:00
Gerald Carter
bcb9105c54 r3708: BUG 1838: patch from Gavrie Philipson <gavrie@disksites.com> to remove stale printers when reloading after a sighup 2007-10-10 10:53:15 -05:00
Gerald Carter
c9613214a5 r3707: 2028: avoid false error messages when copying a long printer name to the device mode 2007-10-10 10:53:15 -05:00
Volker Lendecke
b94838aff1 r3705: Nobody has commented, so I'll take this as an ack...
abartlet, I'd like to ask you to take a severe look at this!

We have solved the problem to find the global groups a user is in twice: Once
in auth_util.c and another time for the corresponding samr call. The attached
patch unifies these and sends them through the passdb backend (new function
pdb_enum_group_memberships). Thus it gives pdb_ldap.c the chance to further
optimize the corresponding call if the samba and posix accounts are unified by
issuing a specialized ldap query.

The parameter to activate this ldapsam behaviour is

ldapsam:trusted = yes

Volker
2007-10-10 10:53:15 -05:00
Volker Lendecke
3d9758fa3c r3704: Implement a cache get saves the result of a pdb_getsampwnam for later
retrieval by pdb_getsampwsid. This solves our problem that we do lots of calls
to LDAP during a typical XP login. XP does a lookupnames, then an openuser and
some queryinfo stuff. Lookupnames triggers the initial getsampwnam, and all
the subsequent ones make us call getsampwsid. This patch gets this down to one
call to LDAP.

Yes, a more "correct" way would be to stick the information to the open user
handle, but this one is simpler and saves the LDAP roundtrip for the openuser
call.

Volker
2007-10-10 10:53:15 -05:00
Volker Lendecke
a8bd0b7504 r3702: This is a getpwnam-cache. It is mainly to speed up Samba with slow nss
backends such as nss_ldap.

Volker
2007-10-10 10:53:14 -05:00
Gerald Carter
b59aeb12c8 r3697: BUG 2027: fix multiple declaration of MD5_CTX (do we really care about DOS compilers?). Will watch build farm though. 2007-10-10 10:53:14 -05:00
Jeremy Allison
089a76f611 r3693: Correctly detect errno for no acl/ea support.
Jeremy
2007-10-10 10:53:14 -05:00
Gerald Carter
7dd12ed8a5 r3688: fix output of smbstatus to make the man page; fix -L, -p, & -S and the -u <username> functionality 2007-10-10 10:53:14 -05:00
Gerald Carter
5dec4cdf5a r3685: setting the 3.0 branch to 3.0.10pre1-svn 2007-10-10 10:53:14 -05:00
Gerald Carter
23422aeec0 r3683: BUG 2017: fix testparm reporting for the passwd program string 2007-10-10 10:53:14 -05:00
Gerald Carter
c52e663c4a r3682: fix seg fault in lanman printing code caused by uninitialized variable 2007-10-10 10:53:13 -05:00
Günther Deschner
b87abdfd0e r3681: Fix build of libsmbclient on x86_64.
Patch from Lars Mueller <lmuelle@suse.de>

Guenther
2007-10-10 10:53:13 -05:00
Jeremy Allison
e007845e67 r3674: Stefan Esser <s.esser@e-matters.de> pointed out that the max data
value is only valid on the initial trans/trans2/nttrans request,
so if there are secondary requests we can't read it from them. Read
it from the initial request and pass as a parameter for those functions
that need it.
Jeremy.
2007-10-10 10:53:13 -05:00
Günther Deschner
e88ac80784 r3673: Do not fail on setting file attributes with acl support enabled.
Rolling back r3496 (close #2015).

Guenther
2007-10-10 10:53:13 -05:00
Jeremy Allison
3850f142c1 r3671: More warning fixes from Rob Foehl <rwf@loonybin.net>.
Jeremy.
2007-10-10 10:53:12 -05:00
Jeremy Allison
54da75ca4c r3670: Warning fixes from Rob Foehl <rwf@loonybin.net>.
Jeremy.
2007-10-10 10:53:12 -05:00
Günther Deschner
af3ec11f8d r3668: Fix unresolved symbols in libsmbclient.so.
Patch from Lars Müller <lmuelle@suse.de> ( Bugzilla #2013 )

Guenther
2007-10-10 10:53:12 -05:00
Jeremy Allison
10b2489e3b r3666: Generalise fix for trans and nttrans multi-fragment requests.
Jeremy
2007-10-10 10:53:12 -05:00
Jeremy Allison
44132c39ec r3663: Fix too tight checking of incoming secondary trans2 requests.
Found by Stefan Esser <s.esser@e-matters.de>.
Jeremy.
2007-10-10 10:53:12 -05:00
Jeremy Allison
da4117841d r3662: Fix dirent return.
Jeremy.
2007-10-10 10:53:12 -05:00