1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-14 19:24:43 +03:00

15896 Commits

Author SHA1 Message Date
Gerald Carter
f751954009 r12967: BUG 1061: don't corrupt the file name when reading an lmhosts file (-H) in nmbd. Patch from Andrew Esh <Andrew_Esh@adaptec.com>
(This used to be commit 14160c496112e06e4ea0d0a5aa5bad2b58e90601)
2007-10-10 11:06:09 -05:00
Lars Müller
bc1a5b7935 r12964: Rewind rem_backend in the case we have to workaround the idmap_ prefix.
Else SAFE_FREE seg faults.  Thanks to Günther for pointing me at this.

I've implemented in in this was as we should announce to remove the
idmap_ strip stuff after some time at all.
(This used to be commit 6a5bf399a59b4f07a1560d534629cb14e20b5d3f)
2007-10-10 11:06:09 -05:00
Jeremy Allison
2dd7fd8f69 r12956: Fix for bug #3035 from SATOH Fumiyasu <fumiyas@miraclelinux.com>
On a Windows share, a file with read-only dosmode can be opened with
DELETE_ACCESS. But on a Samba share (delete readonly = no), it
fails with NT_STATUS_CANNOT_DELETE error.

This semantic causes a problem that a user can not
rename a file with read-only dosmode on a Samba share
from a Windows command prompt (i.e. cmd.exe, but can rename
from Windows Explorer).

Jeremy.
(This used to be commit dd185c7aa8de156dab58b065bf73905b2a29f40d)
2007-10-10 11:06:09 -05:00
James Peach
d67b72a0f2 r12953: Support the TCP_FASTACK socket option if it is available. Note that this will
not acutally help, but it is good to be complete.
(This used to be commit 2163e4b6b453ebf1fefc64e74890300108bbf8f6)
2007-10-10 11:06:09 -05:00
James Peach
ed0c8e056d r12951: Tell the MIPSPro compiler to push DEBUG calls out of line.
(This used to be commit a346059912c05d2b4a27892571d6e89f44907d5c)
2007-10-10 11:06:08 -05:00
Gerald Carter
4c7b4cd33a r12946: fix a segfault in nmbd when 'wins support = yes' caused by double free
(This used to be commit c11372f4ec49634e2ae2e6b9ddf4d2b72976f9c5)
2007-10-10 11:06:08 -05:00
Jeremy Allison
bfc2bf8178 r12938: Fix for #3408 (change password fails) from William Jojo <jojowil@hvcc.edu>.
Jeremy.
(This used to be commit 5fc0ef80876a666c285585f8b55e1909e8f2e0bf)
2007-10-10 11:06:08 -05:00
Lars Müller
4dea23da04 r12936: Fix bug #3264.
If we detect a leading 'idmap_' for the idmap backend setting we strip
this and inform about the deprecated config with DEBUG 0.

I'm not sure if we should set a TTL of one year or five additional
releases from now for this code.

This is required for the changes Günther made as the first step to solve
bug #3264.  With this fix we can even run with an old config.  This is
very important as we else will break existing configurations with an
update.
(This used to be commit 34c7d8c0694369760340843318f873e26546cb2e)
2007-10-10 11:06:08 -05:00
Alexander Bokovoy
a02415bf36 r12935: After discussion with Volker fix bug #3397 using a variant of the patch by Alex Deiter (tiamat@komi.mts.ru).
Introduces level 9 of getuserinfo and allows to successfully install MS SMS2003
on a member of a Samba domain. Also added support for this level in rpcclient.

The code for infolevel 9 is modelled upon Samba-TNG by Alex Deiter.

Jerry, we need this in 3.0.21b.
(This used to be commit 93461646ce2ad6e2f8b11d40ce98722d56a83b43)
2007-10-10 11:06:08 -05:00
Jeremy Allison
ae4a576f68 r12922: Fix typo.
Jeremy.
(This used to be commit 1c32b352da270370e65d25939fdc56c2a415190f)
2007-10-10 11:06:08 -05:00
Jeremy Allison
5f4a895cdd r12920: Fix for #3401 from Andrew Bartlett. Original fix from
Yau Lam Yiu <yiuext@cs.ust.hk>.
Jeremy.
(This used to be commit 4776101107923e425a153fe0457dbf61f4c99935)
2007-10-10 11:06:07 -05:00
Gerald Carter
005c88054f r12916: use rpcstr_pull() instead of unistr_to_ascii() when validating share names
(This used to be commit c08bc30698eac2f3f5dd8257b4fd7c3e23e6de39)
2007-10-10 11:06:07 -05:00
Gerald Carter
bb59be3e0d r12915: protect against changing the SCM security descriptor
(This used to be commit 5842da99681c15437c11e9925dec24c8c0e3708a)
2007-10-10 11:06:07 -05:00
Gerald Carter
e7a1a0ead2 r12914: adding query/set ops for security descriptors on services.
(This used to be commit cefd2d7cb6140b068d66e2383e9acfa4c3c4b4c7)
2007-10-10 11:06:07 -05:00
Gerald Carter
c5e7ddc63b r12913: missed merge to fix BUG 3391; ensure we can lookup account policies
(This used to be commit 77575c64e4e961f37ccf5b2dd17e41c74678ea45)
2007-10-10 11:06:06 -05:00
Gerald Carter
aa363846d6 r12912: patch from Tony Mountifield <tony@softins.co.uk> for BUG 3327 (fix bad access to gencache.tdb after fork() in smbmount
(This used to be commit 68399ce04ca4509d51950d2d7b1ed817e82bf17c)
2007-10-10 11:06:06 -05:00
Günther Deschner
8eba11978d r12904: Fix #3264, allow to load idmap_ad with "idmap backend = ad".
Finally cleanup the way idmap modules are build and loaded, idmap_rid
now will have to be loaded without prefix, just "rid".

Guenther
(This used to be commit a77e02177dcefaaccf863aa8d237ea35a2ec52d1)
2007-10-10 11:06:06 -05:00
Günther Deschner
967ab90b17 r12901: Fix netfileenum returning WERR_BUF_TOO_SMALL.
Guenther
(This used to be commit b8ff07b04afe82bdce5d1f69513ce67ecde5b030)
2007-10-10 11:06:06 -05:00
Günther Deschner
29ba5c17cd r12900: Merge from trunk:
Correctly handle the case where users logon with an expired password.

In that case pam_sm_authenticate has to return PAM_SUCESS instead of
PAM_NEW_AUTHTOK_REQD or PAM_AUTHTOK_EXPIRED and pam_sm_acct_mgmt has to
take care of requesting an immediate password change. (see the Linux PAM
documentation).

Fixes Bugzilla #1524, #3205. Tested with login, sshd, kdm and gdm on
Linux.

Thanks to Scott Barker <Scott_Barker@mtechIT.com>.

Guenther
(This used to be commit 4cb662ffd76dbe30003c618c94ccf6ebd4afb48c)
2007-10-10 11:06:06 -05:00
Gerald Carter
dbac670166 r12889: BUG 3380: fix crash when changing printer drivers caused by accessing a previously freed pointer
(This used to be commit bcce3b69f83f52deb308d8c2f5165000468bd552)
2007-10-10 11:06:06 -05:00
Jeremy Allison
d86ebaf198 r12885: Oops. Missed last part of correct patch for #3348.
Caught by Samba4 oplock torture tester.
Jeremy.
(This used to be commit c2476b2f75f6521700107a46028f54110083aa52)
2007-10-10 11:06:05 -05:00
James Peach
92092cbcdc r12878: Don't use non-static array initialisers.
(This used to be commit 95b231f0285c65bcdc62cd453cea634f9f5e7f91)
2007-10-10 11:06:05 -05:00
Jeremy Allison
3317484799 r12877: Stop passing structs around in smb messages, instead
always linearize into little-endian. Should fix all
Solaris issues with this, plus provide a cleaner base
moving forward for cluster-aware Samba where smbd's
can communicate across different compilers/architectures
(eventually these message will have to go cross-machine).
Jeremy.
(This used to be commit d01824b78576a034428e1cef73868d1169057991)
2007-10-10 11:06:05 -05:00
Lars Müller
80f2848260 r12871: Merge Volkers rev 12667 from trunk as his analysis hit the nail on the
head.

Volker: Thanks for poking me last week.
(This used to be commit 9a8e1c8b4c302a8e8a4a39b8ec8df2536acfebe2)
2007-10-10 11:06:05 -05:00
Gerald Carter
10b182fe73 r12870: fixing net rpc registry enumerate from overwritnig the open subkey handle
(This used to be commit cc2e7052bd05a15f43268ce87dc29506bb5bb5bf)
2007-10-10 11:06:05 -05:00
Jeremy Allison
e03a68ff7e r12855: Remove erroneous commenting out of valgrind fix.
Jeremy.
(This used to be commit b76c7b613282dc89c54faf3e7cef98f7651c5a9d)
2007-10-10 11:06:05 -05:00
Günther Deschner
54b1c585bb r12853: Fix segfault in "net rpc vampire|samdump" (Bugzilla #3390).
The session key, after beeing set, was zeroed later on by the prs_init
in the CLI_DO_RPC macro.

Guenther
(This used to be commit eaaeaa767e86151886964dcdd9f3186f0b31ed53)
2007-10-10 11:06:04 -05:00
Volker Lendecke
19563e6744 r12840: Add -W to smbpasswd. Thanks to William Jojo <jojowil@hvcc.edu>.
Volker
(This used to be commit 2942f3594ba39748dca0238f1e1a5c744a7afffb)
2007-10-10 11:06:04 -05:00
Volker Lendecke
5bad6e3a4a r12837: - configure check for Tru64 EA functions (not yet implemented)
- find Tru64 AIO lib in configure

Thanks to Björn Jacke <bj@sernet.de>

Volker
(This used to be commit 044dc331739d4a1678bbf6347df9725f709f5be3)
2007-10-10 11:06:04 -05:00
Tim Potter
0b192df2ea r12802: Fix for bugzilla #3389 from William Jojo. This fixes failures on AIX in
linking smbd when the symbol table for ld exceeds 65536 bytes.
(This used to be commit 679fc459357d3ddfac1786726e4d2ccdada0b05f)
2007-10-10 11:06:04 -05:00
Gerald Carter
fbbe89ea30 r12794: BUG 3340: patch from William JoJo <jojowil@hvcc.edu> to fix automatic inclusion of aio support on AIX
(This used to be commit f19f7961eef9d9fe345279c5ab35d18dff14e5ea)
2007-10-10 11:06:03 -05:00
Günther Deschner
1e9d8d4857 r12788: Since we have agreed on the case of winbindd names, we can store a
sid_to_name lookup result already after doing a sucessfull name_to_sid
lookup.

Guenther
(This used to be commit 2456832a6d9ad2590dc02e147cc2c2e87d5a3a7a)
2007-10-10 11:06:03 -05:00
Günther Deschner
7745148580 r12787: Revert last commit that removed our logic of memorizing negative
name_to_sid lookups in the cache.

Guenther
(This used to be commit 348d309688260d17d9cdbf11fc54ad30829ceae5)
2007-10-10 11:06:03 -05:00
Volker Lendecke
263cbe122a r12781: Support the level parameter for lsa_lookupsids.
Simplify the interfaces to domain trusts a bit: Nothing outside secrets.c
needs to know we're storing stuff in ucs2.

Volker
(This used to be commit a01fa43ed2d43f79940795b70a330c6a9ddf1b45)
2007-10-10 11:06:03 -05:00
Volker Lendecke
cc58924179 r12771: Apply patch from bug 3374, attempt to fix build on tru64.
Thanks to "The Written Word" -- whoever that is :-)

Volker
(This used to be commit 7d0956f0bd28728fbb8b4c24c4ed3cdcc04e2daf)
2007-10-10 11:06:03 -05:00
Volker Lendecke
92e85d325f r12760: Fix bug 3384
(This used to be commit 9d366da172a13fe9fd6e940f95d58dac534f3b31)
2007-10-10 11:06:03 -05:00
Derrell Lipman
f396e2248a r12758: r12127@cabra: derrell | 2006-01-03 15:22:18 -0500
remove old superfluous comment and ifdef
(This used to be commit ee7fcb43ad456929f1f005f47c52a4b4d46c5087)
2007-10-10 11:06:02 -05:00
Günther Deschner
850b7c4e87 r12742: Don't write null sid mappings into the winbindd_cache.tdb.
Guenther
(This used to be commit 1e0124efc54810125bbfae6dce536b2c4fff62c1)
2007-10-10 11:06:02 -05:00
Volker Lendecke
4d1d826be4 r12735: After talking to Tridge and Jeremy... This needs to be made more generic
before it goes in.

Volker
(This used to be commit 2c3d5c029a31111e1fe84ddc13c1bfc183d8bfde)
2007-10-10 11:06:02 -05:00
Volker Lendecke
a189257c15 r12721: GPFS 2.4 on Linux will contain some windows semantics, ie share modes and
oplocks across the cluster. Adapt Samba to it.

The gpfs API is called via libgpfs.so. This code is written with dlopen(), so
that you can compile on a system with gpfs installed and later on run on
systems without gpfs available.

So to actually make Samba call gpfs share mode calls you need to compile with
gpfs.h and libgpfs.so around and set 'gpfs share = yes' on the shares you
export from GPFS.

Volker
(This used to be commit 2253b17a1a88555291b59d52c826c81c2b8f7e7f)
2007-10-10 11:06:01 -05:00
Günther Deschner
c3a2101da0 r12714: Fix segfault in pdb_nds.c.
Guenther
(This used to be commit f78c7f8abea4cb598eca78fa3beacee8a3caee20)
2007-10-10 11:06:01 -05:00
Jeremy Allison
2b509f470d r12713: Remove use of uint8_t -> uint8.
Jeremy.
(This used to be commit 4473ac4ef9c86574fc49b1e67089b59b14b6d10d)
2007-10-10 11:06:01 -05:00
Volker Lendecke
d64db1c509 r12678: One more
(This used to be commit f80fe785bcecd1a27df650e3fdbfd01621b9cc58)
2007-10-10 11:06:01 -05:00
Volker Lendecke
3c50ec20fb r12663: Fix a memleak
(This used to be commit 3ee6b732f4210e6de6716364ec166f44f29f4463)
2007-10-10 11:06:01 -05:00
Stefan Metzmacher
1c77c6f7ca r12660: Happy New Year!
metze
(This used to be commit 5cef2c320b22a865f32a25412ce506442e255fc3)
2007-10-10 11:06:01 -05:00
Jeremy Allison
7a1cf83dec r12653: Patch from SATOH Fumiyasu <fumiyas@miraclelinux.com>
for bug #3348. Don't assume owning sticky bit
directory means write access allowed.
Jeremy.
(This used to be commit 1032aa890f53097f87fa97689cb21d908b32093c)
2007-10-10 11:06:00 -05:00
Volker Lendecke
e0c989c949 r12645: Fix some memleaks. This will also be in the trunk checkin that comes next.
Volker
(This used to be commit dc167037b0f3bada390dfdb820cb84ed9a4cfdcf)
2007-10-10 11:06:00 -05:00
Volker Lendecke
1de83ea53b r12603: NO, I'm not claiming maintainership of this.
Fix bug 3351.

Volker
(This used to be commit 082763988d9b1ba1f543452aae47ad3e3be047ef)
2007-10-10 11:06:00 -05:00
Volker Lendecke
7773676c1d r12581: And another one :-)
(This used to be commit 3247a4cfc1df27c23806f196257bd8c68cb63176)
2007-10-10 11:06:00 -05:00
Derrell Lipman
cbc97b4e5a r12579: r12122@cabra: derrell | 2005-12-29 12:03:00 -0500
allow for arbitrary option value types
(This used to be commit 64c8e32b6382e48bce5c1f18179e66ca765a70af)
2007-10-10 11:06:00 -05:00