sfrench/samba-autobuild/.git
16 years agor20844: Somewhat radical change - this may break the build (I will
Jeremy Allison [Wed, 17 Jan 2007 02:09:37 +0000 (02:09 +0000)]
r20844: Somewhat radical change - this may break the build (I will
watch carefully - so I'm doing it in one transaction so I can
roll back).

Change check_name(), reduce_name() and dptr_create() to
return NTSTATUS. This helps a lot in error path processing
and especially in reduce_name() allows us to ditch the flaky
and error-prone saving of errno and return errors directly.

Jeremy.

16 years agor20843: Get rid of last BOOL ok.
Jeremy Allison [Tue, 16 Jan 2007 21:04:30 +0000 (21:04 +0000)]
r20843: Get rid of last BOOL ok.
Jeremy.

16 years agor20842: Only one more BOOL ok to go...
Jeremy Allison [Tue, 16 Jan 2007 20:53:50 +0000 (20:53 +0000)]
r20842: Only one more BOOL ok to go...
Jeremy.

16 years agor20841: Remove more BOOL ok.
Jeremy Allison [Tue, 16 Jan 2007 20:49:51 +0000 (20:49 +0000)]
r20841: Remove more BOOL ok.
Jeremy.

16 years agor20840: Keep removing the old BOOL ok logic.
Jeremy Allison [Tue, 16 Jan 2007 20:32:39 +0000 (20:32 +0000)]
r20840: Keep removing the old BOOL ok logic.
Jeremy.

16 years agor20839: Fix other C++ warnings
Jelmer Vernooij [Tue, 16 Jan 2007 18:26:02 +0000 (18:26 +0000)]
r20839: Fix other C++ warnings

16 years agor20838: Small fix from Jiri.Sasek@Sun.COM to fix null
Jeremy Allison [Tue, 16 Jan 2007 18:05:37 +0000 (18:05 +0000)]
r20838: Small fix from Jiri.Sasek@Sun.COM to fix null
pointer deref.
Jeremy

16 years agor20837: Use real type name, to fix compilation with -WC++-compat
Jelmer Vernooij [Tue, 16 Jan 2007 17:48:59 +0000 (17:48 +0000)]
r20837: Use real type name, to fix compilation with -WC++-compat

16 years agor20833: Reformatting
Volker Lendecke [Tue, 16 Jan 2007 15:50:25 +0000 (15:50 +0000)]
r20833: Reformatting

16 years agor20832: Remove extra pointers previously added to unique [out] pointers. Instead,
Jelmer Vernooij [Tue, 16 Jan 2007 15:42:03 +0000 (15:42 +0000)]
r20832: Remove extra pointers previously added to unique [out] pointers. Instead,
add [ref] pointers where necessary (top-level [ref] pointers,
by spec, don't appear on the wire).

This brings us closer to the DCE/RPC standard again.

16 years agor20828: Fix the build with libnscd.
Günther Deschner [Tue, 16 Jan 2007 11:15:10 +0000 (11:15 +0000)]
r20828: Fix the build with libnscd.

Guenther

16 years agor20827: Increment the interface version.
Volker Lendecke [Tue, 16 Jan 2007 10:59:17 +0000 (10:59 +0000)]
r20827: Increment the interface version.

Wilco: Existing modules should continue to work, they just must be recompiled.

Volker

16 years agor20824: Send access to the trusted domain passwords through the pdb backend, so that
Volker Lendecke [Tue, 16 Jan 2007 08:17:26 +0000 (08:17 +0000)]
r20824: Send access to the trusted domain passwords through the pdb backend, so that
in the next step we can store them in LDAP to be replicated across DCs.

Thanks to Michael Adam <ma@sernet.de>

Volker

16 years agor20820: merge from samba4:
Stefan Metzmacher [Mon, 15 Jan 2007 19:28:02 +0000 (19:28 +0000)]
r20820: merge from samba4:

- include system/aio.h
- use full prototype for main
- use ifdef instead if

metze

16 years agor20817: sync lib/replace with samba4
Stefan Metzmacher [Mon, 15 Jan 2007 19:10:54 +0000 (19:10 +0000)]
r20817: sync lib/replace with samba4

metze

16 years agor20811: fix comment
Stefan Metzmacher [Mon, 15 Jan 2007 18:01:25 +0000 (18:01 +0000)]
r20811: fix comment

metze

16 years agor20796: Fix the same problem Jeremy has fixed (improper handling of deferred opens)
Volker Lendecke [Mon, 15 Jan 2007 09:17:11 +0000 (09:17 +0000)]
r20796: Fix the same problem Jeremy has fixed (improper handling of deferred opens)
for delete_driver_files. Proper fix pending... :-)

Jeremy, please check.

Volker

16 years agor20789: merge from samba4:
Stefan Metzmacher [Mon, 15 Jan 2007 07:17:02 +0000 (07:17 +0000)]
r20789: merge from samba4:

- remove the epoll configure checks from libreplace

metze

16 years agor20781: Fix a couple of paths found by Volker where we weren't
Jeremy Allison [Sun, 14 Jan 2007 19:43:06 +0000 (19:43 +0000)]
r20781: Fix a couple of paths found by Volker where we weren't
correctly handling deferred opens.
Jeremy.

16 years agor20774: I thought I committed this before Xmas holidays ...
Simo Sorce [Sun, 14 Jan 2007 17:58:24 +0000 (17:58 +0000)]
r20774: I thought I committed this before Xmas holidays ...
This change is needed to make it possible to not expire
caches in disconnected mode.

Jerry, please can you look at this and confirm it is ok?

Simo.

16 years agor20759: Dummy checkin to let the build farm pick up the new smbtorture4
Volker Lendecke [Sun, 14 Jan 2007 11:25:42 +0000 (11:25 +0000)]
r20759: Dummy checkin to let the build farm pick up the new smbtorture4

16 years agor20745: Commit Finnish transalation of SWAT after review
Simo Sorce [Sun, 14 Jan 2007 00:08:31 +0000 (00:08 +0000)]
r20745: Commit Finnish transalation of SWAT after review

16 years agor20744: Fix the build (I missed some chkpth -> checkpath renames).
Jeremy Allison [Sat, 13 Jan 2007 22:26:46 +0000 (22:26 +0000)]
r20744: Fix the build (I missed some chkpth -> checkpath renames).
Jeremy.

16 years agor20743: Remove another BOOL ok from reply_getatr.
Jeremy Allison [Sat, 13 Jan 2007 22:22:32 +0000 (22:22 +0000)]
r20743: Remove another BOOL ok from reply_getatr.
Jeremy.

16 years agor20742: Rename chkpth -> checkpath for sanity's sake :-).
Jeremy Allison [Sat, 13 Jan 2007 22:10:18 +0000 (22:10 +0000)]
r20742: Rename chkpth -> checkpath for sanity's sake :-).
Start removing unneeded "BOOL ok" from this reply.c
(this logic is old, old, old..... :-).
Jeremy.

16 years agor20740: Get rid of some if-statements
Volker Lendecke [Sat, 13 Jan 2007 20:26:53 +0000 (20:26 +0000)]
r20740: Get rid of some if-statements

16 years agor20738: Remove unused variable
Volker Lendecke [Sat, 13 Jan 2007 19:55:37 +0000 (19:55 +0000)]
r20738: Remove unused variable

16 years agor20725: Get rid of a bool passed down -- gd, please check
Volker Lendecke [Sat, 13 Jan 2007 10:40:09 +0000 (10:40 +0000)]
r20725: Get rid of a bool passed down -- gd, please check

16 years agor20724: Get closer to passing RAW-OPEN. If the client is using
Jeremy Allison [Sat, 13 Jan 2007 02:34:43 +0000 (02:34 +0000)]
r20724: Get closer to passing RAW-OPEN. If the client is using
create disposition of FILE_CREATE then there's no need
to check can_delete_file_in_directory().
Jeremy.

16 years agor20722: RAW-CHKPATH should now pass, build farm should
Jeremy Allison [Sat, 13 Jan 2007 02:13:45 +0000 (02:13 +0000)]
r20722: RAW-CHKPATH should now pass, build farm should
go back to normal. Sorry about that.
Jeremy.

16 years agor20721: Fix the search unix_convert error returns. Only open
Jeremy Allison [Sat, 13 Jan 2007 01:29:10 +0000 (01:29 +0000)]
r20721: Fix the search unix_convert error returns. Only open
to go...
Jeremy.

16 years agor20720: Fix the chkpath problem, still looking at findfirst.
Jeremy Allison [Sat, 13 Jan 2007 01:07:39 +0000 (01:07 +0000)]
r20720: Fix the chkpath problem, still looking at findfirst.
Jeremy.

16 years agor20718: Sync up the filename path parsing changes from SAMBA_3_0_24.
Jeremy Allison [Fri, 12 Jan 2007 23:47:16 +0000 (23:47 +0000)]
r20718: Sync up the filename path parsing changes from SAMBA_3_0_24.
The only difference between the two trees now w.r.t file
serving are the changes to smbd/open.c in this branch I need
to review.
Jeremy.

16 years agor20717: Merge sharemode patch from Mathias Dietz <MDIETZ@de.ibm.com>.
Jim McDonough [Fri, 12 Jan 2007 21:56:25 +0000 (21:56 +0000)]
r20717: Merge sharemode patch from Mathias Dietz <MDIETZ@de.ibm.com>.

The patch fixes the behaviour of GPFS sharemodes when
the access mask is no_access.

16 years agor20707: Clean up pdb_interface.c a bit -- patch from Michael Adam <ma@sernet.de>
Volker Lendecke [Fri, 12 Jan 2007 14:16:30 +0000 (14:16 +0000)]
r20707: Clean up pdb_interface.c a bit -- patch from Michael Adam <ma@sernet.de>

16 years agor20700: In the main processing loop we select() on the fam socket. If it fires, it
Volker Lendecke [Fri, 12 Jan 2007 09:29:44 +0000 (09:29 +0000)]
r20700: In the main processing loop we select() on the fam socket. If it fires, it
might be possible that we hang in the receive_smb() although that socket is
not the reason for the select() to return.

This immediately reacts to the fam socket to become readable, and goes into
the select loop again. This fixes delays in files showing up in Windows.

Jeremy, James please review this and merge to 3_0_24 if appropriate.

Thanks,

Volker

16 years agor20699: This is an attempt to fix bug 4326.
Volker Lendecke [Fri, 12 Jan 2007 08:49:09 +0000 (08:49 +0000)]
r20699: This is an attempt to fix bug 4326.

James, can you please confirm this and merge it to 3_0_24? For me it fixes the
segfault.

Thanks,

Volker

16 years agor20695: Remove duplication of constants.
Jeremy Allison [Fri, 12 Jan 2007 02:58:01 +0000 (02:58 +0000)]
r20695: Remove duplication of constants.
Jeremy.

16 years agor20694: To get this right we need to do signed 64-bit
Jeremy Allison [Fri, 12 Jan 2007 02:48:37 +0000 (02:48 +0000)]
r20694: To get this right we need to do signed 64-bit
comparisons here, not unsigned as we're eventually
casting into what it normall a signed 32 bit
value. Guenther please check (but I think I'm right here).
Jeremy.

16 years agor20692: Fix bug found by Guenther -
Jeremy Allison [Fri, 12 Jan 2007 02:12:15 +0000 (02:12 +0000)]
r20692: Fix bug found by Guenther -

Just try to log on in offline mode without the fix: all accounts are expired,
although they are set to never expire in the PAC/info3.

NTTIME "Never" needs to get (time_t) -1.

We were casting a uint64 to time_t before
comparing, and we should have been doing it
the other way around.

Guenther please check this fixes things.

Jeremy.

16 years agor20690: fix a bug that causes smbd to 'hang' intermittently.
Andrew Tridgell [Thu, 11 Jan 2007 23:10:16 +0000 (23:10 +0000)]
r20690: fix a bug that causes smbd to 'hang' intermittently.

The problem occurs like this:

  1) running smbd as a domain member without winbindd

  2) client1 connects, during auth smbd-1 calls update_trustdom_cache()

  3) smbd-1 takes the trustdom cache timestamp lock, then starts
     enumerate_domain_trusts

  4) enumerate_domain_trusts hangs for some unknown reason

  5) other clients connect, all block waiting for read lock on trustdom
     cache

  6) samba is now hung

The problem is the lock, and really its just trying to avoid a race
where the cure is worse than the problem. A race in updating the
trutdom cache is not a big issue. So I've just removed the lock.

It is still an open question why enumerate_domain_trusts() can
hang. Unfortunately I've not in a position to get a sniff at the site
that is affected. I suspect a full fix will involve ensuring that all
the rpc code paths have appropriate timeouts.

16 years agor20687: Implement grace logons for offline authentications in pam_winbind.
Günther Deschner [Thu, 11 Jan 2007 15:41:02 +0000 (15:41 +0000)]
r20687: Implement grace logons for offline authentications in pam_winbind.

In case a user authenticated sucessfully and his password just expired
while beeing disconnected, we should allow a user to logon (given a
clear warning). We currently forced the user into a password change
dialogue in that scenario; this did not make much sense while offline.

Guenther

16 years agor20674: Regenerate NDR parsers after pidl changes. This should fix a couple of
Jelmer Vernooij [Thu, 11 Jan 2007 01:47:22 +0000 (01:47 +0000)]
r20674: Regenerate NDR parsers after pidl changes. This should fix a couple of
coverity warnings.

16 years agor20668: Also do not install the smbumount man page if we don't build smbumount.
Lars Müller [Wed, 10 Jan 2007 21:46:39 +0000 (21:46 +0000)]
r20668: Also do not install the smbumount man page if we don't build smbumount.

16 years agor20666: Also do not install the smbmnt man page if SMBMOUNT_PROGS is not set.
Lars Müller [Wed, 10 Jan 2007 20:08:25 +0000 (20:08 +0000)]
r20666: Also do not install the smbmnt man page if SMBMOUNT_PROGS is not set.

16 years agor20664: Set the environment variable _before_ calling the shell.
Lars Müller [Wed, 10 Jan 2007 19:54:49 +0000 (19:54 +0000)]
r20664: Set the environment variable _before_ calling the shell.

16 years agor20663: Do not install smbmount man page if we didn't called configure
Lars Müller [Wed, 10 Jan 2007 19:16:59 +0000 (19:16 +0000)]
r20663: Do not install smbmount man page if we didn't called configure
--with-smbmount.

16 years agor20654: Fix from Karolin Seeger <ks@sernet.de>: Accept "forever", "off" and "never" as
Volker Lendecke [Wed, 10 Jan 2007 15:31:42 +0000 (15:31 +0000)]
r20654: Fix from Karolin Seeger <ks@sernet.de>: Accept "forever", "off" and "never" as
key words for -1 as policy values for net sam policy.

Volker

16 years agor20651: Fix "password expires soon" warning message for pam_winbind.
Günther Deschner [Wed, 10 Jan 2007 12:34:24 +0000 (12:34 +0000)]
r20651: Fix "password expires soon" warning message for pam_winbind.

We were incorrectly calculating the days until the password expires and
we also need to look at the info3 pass_must_change_time for expiry
calculation.

Guenther

16 years agor20644: Make some functions static, thanks to Michael Adam <ma@sernet.de> for the...
Volker Lendecke [Wed, 10 Jan 2007 07:56:43 +0000 (07:56 +0000)]
r20644: Make some functions static, thanks to Michael Adam <ma@sernet.de> for the hint.

16 years agor20636: Remove notify leftover
Volker Lendecke [Tue, 9 Jan 2007 20:04:46 +0000 (20:04 +0000)]
r20636: Remove notify leftover

16 years agor20635: Add placeholder to ensure we don't go into the
Jeremy Allison [Tue, 9 Jan 2007 18:48:38 +0000 (18:48 +0000)]
r20635: Add placeholder to ensure we don't go into the
wcard unlink if bad_path was set. The error
returned here is almost certainly incorrect
and will need testing properly with smbtorture,
but I don't want to forget about this path
(yes Volker I know this is currently incorrect :-).
Jeremy.

16 years agor20634: A *LOT* more work is necessary before touching notify remotely starts to...
Volker Lendecke [Tue, 9 Jan 2007 16:12:54 +0000 (16:12 +0000)]
r20634: A *LOT* more work is necessary before touching notify remotely starts to make
sense. Until then, remove it from the tree to keep the diff between 3_0_24 and
3_0 small.

Volker

16 years agor20632: The extended RAW-SAMBA3BADPATH test led me to some wrong assumptions, in
Volker Lendecke [Tue, 9 Jan 2007 15:50:40 +0000 (15:50 +0000)]
r20632: The extended RAW-SAMBA3BADPATH test led me to some wrong assumptions, in
particular the NT_STATUS_INVALID_PARAMETER thing was badly wrong. Remove the
changes based on it. Using gentest is much more effective in this respect, but
it will take a while to figure out the wildcard error handling of W2k3.

Volker

16 years agor20630: Fix some trivial memleaks.
Günther Deschner [Tue, 9 Jan 2007 13:24:33 +0000 (13:24 +0000)]
r20630: Fix some trivial memleaks.

Guenther

16 years agor20628: Looks bigger than it is. This is just re-indenting the if (dirname) that...
Volker Lendecke [Tue, 9 Jan 2007 09:03:33 +0000 (09:03 +0000)]
r20628: Looks bigger than it is. This is just re-indenting the if (dirname) that we've
taken care of above.

Volker

16 years agor20627: orig_name is not needed anymore, and slightly simplify logic by doing early
Volker Lendecke [Tue, 9 Jan 2007 08:56:24 +0000 (08:56 +0000)]
r20627: orig_name is not needed anymore, and slightly simplify logic by doing early
returns.

Volker

16 years agor20626: Fix a memleak found by the IBM checker -- not on 3.0.24
Volker Lendecke [Tue, 9 Jan 2007 08:19:05 +0000 (08:19 +0000)]
r20626: Fix a memleak found by the IBM checker -- not on 3.0.24

16 years agor20619: bad_path is handled somewhere else, so can_delete does not need it anymore
Volker Lendecke [Mon, 8 Jan 2007 21:13:27 +0000 (21:13 +0000)]
r20619: bad_path is handled somewhere else, so can_delete does not need it anymore

16 years agor20618: Fix a bug in bad_path handling that also exists in 3.0.23: For reply_unlink
Volker Lendecke [Mon, 8 Jan 2007 21:08:31 +0000 (21:08 +0000)]
r20618: Fix a bug in bad_path handling that also exists in 3.0.23: For reply_unlink
under Linux we returned NT_STATUS_NOT_A_DIRECTORY. This is because in the
bad_path==True condition lstat(2) returns ENOTDIR and not ENOENT.

Not sure if we want to necessarily replicate the INVALID_PARAMETER here, but
this is what W2k3 does.

Jeremy, I tried to call you, but you were not around. So I'll leave it up to
you to merge this.

Volker

16 years agor20617: Do not notify if the delete failed
Volker Lendecke [Mon, 8 Jan 2007 20:06:36 +0000 (20:06 +0000)]
r20617: Do not notify if the delete failed

16 years agor20614: Dummy-checkin to trigger the build
Volker Lendecke [Mon, 8 Jan 2007 16:52:58 +0000 (16:52 +0000)]
r20614: Dummy-checkin to trigger the build

16 years agor20612: A checkin I've wanted to do for ages: For bad_path==False set_bad_path_error
Volker Lendecke [Mon, 8 Jan 2007 15:36:33 +0000 (15:36 +0000)]
r20612: A checkin I've wanted to do for ages: For bad_path==False set_bad_path_error
is equivalent to UNIX_ERROR. Expand the last reference. Lets see if I can kill
that as well :-)

Volker

16 years agor20611: All but one callers to set_bad_path_error have had the bad_path==True argument
Volker Lendecke [Mon, 8 Jan 2007 15:26:17 +0000 (15:26 +0000)]
r20611: All but one callers to set_bad_path_error have had the bad_path==True argument
being handled further up.

Volker

16 years agor20610: Fix a Solaris warning
Volker Lendecke [Mon, 8 Jan 2007 14:16:42 +0000 (14:16 +0000)]
r20610: Fix a Solaris warning

16 years agor20608: ENOENT->NT_STATUS_OBJECT_NAME_NOT_FOUND is covered in the standard unix error...
Volker Lendecke [Mon, 8 Jan 2007 14:08:34 +0000 (14:08 +0000)]
r20608: ENOENT->NT_STATUS_OBJECT_NAME_NOT_FOUND is covered in the standard unix error mapping table

16 years agor20607: Next micro-step for reply_setatr
Volker Lendecke [Mon, 8 Jan 2007 13:21:43 +0000 (13:21 +0000)]
r20607: Next micro-step for reply_setatr

16 years agor20606: bad_path == True has been covered further up in reply_setatr.
Volker Lendecke [Mon, 8 Jan 2007 13:18:23 +0000 (13:18 +0000)]
r20606: bad_path == True has been covered further up in reply_setatr.

I'm checking in micro-steps to make them independently checkable. This code
just very severely needs cleanup, but I don't want to break anything. So, be
patient with me, please :-)

Volker

16 years agor20605: Simplify logic in reply_setatr slightly
Volker Lendecke [Mon, 8 Jan 2007 13:05:36 +0000 (13:05 +0000)]
r20605: Simplify logic in reply_setatr slightly

16 years agor20604: Fix two memleaks, Coverity ID 337, merge to 3_0_24
Volker Lendecke [Mon, 8 Jan 2007 08:09:29 +0000 (08:09 +0000)]
r20604: Fix two memleaks, Coverity ID 337, merge to 3_0_24

16 years agor20603: Slightly simplify logic
Volker Lendecke [Mon, 8 Jan 2007 08:05:49 +0000 (08:05 +0000)]
r20603: Slightly simplify logic

16 years agor20602: Fix coverity ID 339. SMB_ASSERT does not panic without -DDEVELOPER.
Volker Lendecke [Mon, 8 Jan 2007 08:00:53 +0000 (08:00 +0000)]
r20602: Fix coverity ID 339. SMB_ASSERT does not panic without -DDEVELOPER.

Volker

16 years agor20597: Survive some of the notify mask tests.
Volker Lendecke [Sun, 7 Jan 2007 18:08:50 +0000 (18:08 +0000)]
r20597: Survive some of the notify mask tests.

16 years agor20589: Re-add lost bad_path handling, sorry.
Volker Lendecke [Sat, 6 Jan 2007 18:59:02 +0000 (18:59 +0000)]
r20589: Re-add lost bad_path handling, sorry.

16 years agor20585: - allocate an OID range for LDB/LDAP extended operations
Stefan Metzmacher [Sat, 6 Jan 2007 10:10:25 +0000 (10:10 +0000)]
r20585: - allocate an OID range for LDB/LDAP extended operations

metze

16 years agor20578: - allocate an OID range for samba4 LDB/LDAP Controls
Stefan Metzmacher [Sat, 6 Jan 2007 01:10:20 +0000 (01:10 +0000)]
r20578: - allocate an OID range for samba4 LDB/LDAP Controls
- allocate an OID range for conflicting attributes/classes

metze

16 years agor20558: Refactor rmdir_internals to use early termination rather
Jeremy Allison [Fri, 5 Jan 2007 17:42:54 +0000 (17:42 +0000)]
r20558: Refactor rmdir_internals to use early termination rather
than lots of indented code. Change recursive_rmdir()
to return the smbd standards of True on success, False
on fail (it was doing the reverse, which was very confusing).
Jeremy.

16 years agor20546: Fix some IBM checker errors
Volker Lendecke [Fri, 5 Jan 2007 14:52:10 +0000 (14:52 +0000)]
r20546: Fix some IBM checker errors

16 years agor20544: Change copy_file() to return NTSTATUS. This is in preparation of turning
Volker Lendecke [Fri, 5 Jan 2007 13:13:15 +0000 (13:13 +0000)]
r20544: Change copy_file() to return NTSTATUS. This is in preparation of turning
close_file() to NTSTATUS as well.

I'm not sure I got all the error codes right, but as I've never come across a
smb_copy() call in all my Samba work, I'm leaving it at that. If I'm
absolutely bored, I will write a thorough torture test.

As far as I can see, Samba4 even does not have a libcli implementation for
it...  :-)

Volker

16 years agor20542: Make close_remove_share_mode retun NTSTATUS. Not that anybody cares yet...
Volker Lendecke [Fri, 5 Jan 2007 11:31:28 +0000 (11:31 +0000)]
r20542: Make close_remove_share_mode retun NTSTATUS. Not that anybody cares yet...

16 years agor20541: Fix some obvious glitches in wait_for_aio_completion. Hmmm. It seems
Volker Lendecke [Fri, 5 Jan 2007 11:18:59 +0000 (11:18 +0000)]
r20541: Fix some obvious glitches in wait_for_aio_completion. Hmmm. It seems
reply_close() at its heart is going to be an async call :-)

Volker

16 years agor20536: In the offline PAM session close case the attempt to delete a
Günther Deschner [Thu, 4 Jan 2007 23:41:16 +0000 (23:41 +0000)]
r20536: In the offline PAM session close case the attempt to delete a
non-existing krb5 credential cache should not generate an error.

Guenther

16 years agor20535: Fix make install to work when root doesn't have
Jeremy Allison [Thu, 4 Jan 2007 23:25:04 +0000 (23:25 +0000)]
r20535: Fix make install to work when root doesn't have
write access into the source tree (like when your
directory is nfs mounted for example....).
Jeremy.

16 years agor20532: From Volker...
Jeremy Allison [Thu, 4 Jan 2007 22:01:36 +0000 (22:01 +0000)]
r20532: From Volker...

"smbcli_setattr("") always returns ACCESS_DENIED, test extension to follow.

Merge to 3.0.24?"

Yep (with slight optimization).

Jeremy.

16 years agor20530: Don't want this call to get inadvertently re-added :-).
Jeremy Allison [Thu, 4 Jan 2007 20:46:13 +0000 (20:46 +0000)]
r20530: Don't want this call to get inadvertently re-added :-).
Jeremy.

16 years agor20525: Closing a dir with del-on-close set requires the same as files: Don't actually
Volker Lendecke [Thu, 4 Jan 2007 16:26:15 +0000 (16:26 +0000)]
r20525: Closing a dir with del-on-close set requires the same as files: Don't actually
unlink/rmdir if another process still has it open.

Jeremy, this is a potential merger to 3.0.24.

Volker

16 years agor20524: Simplify logic of close_remove_share_mode().
Volker Lendecke [Thu, 4 Jan 2007 15:12:22 +0000 (15:12 +0000)]
r20524: Simplify logic of close_remove_share_mode().

Volker

16 years agor20512: Fix typo.
Günther Deschner [Wed, 3 Jan 2007 16:05:00 +0000 (16:05 +0000)]
r20512: Fix typo.

Guenther

16 years agor20507: smbcli_setattr("") always returns ACCESS_DENIED, test extension to follow.
Volker Lendecke [Wed, 3 Jan 2007 12:01:17 +0000 (12:01 +0000)]
r20507: smbcli_setattr("") always returns ACCESS_DENIED, test extension to follow.

Merge to 3.0.24?

Volker

16 years agor20503: And one more 64-bit warning
Volker Lendecke [Wed, 3 Jan 2007 09:30:55 +0000 (09:30 +0000)]
r20503: And one more 64-bit warning

16 years agor20502: Activate RAW-RENAME, my Linux box passes this
Volker Lendecke [Wed, 3 Jan 2007 09:04:06 +0000 (09:04 +0000)]
r20502: Activate RAW-RENAME, my Linux box passes this

16 years agor20501: Check in config.h fix from Michael Adam <ma@sernet.de>
Volker Lendecke [Wed, 3 Jan 2007 08:55:22 +0000 (08:55 +0000)]
r20501: Check in config.h fix from Michael Adam <ma@sernet.de>

16 years agor20500: Fix compiler warnings.
James Peach [Wed, 3 Jan 2007 06:55:12 +0000 (06:55 +0000)]
r20500: Fix compiler warnings.

16 years agor20499: Activate RAW-OPEN in the build farm
Volker Lendecke [Wed, 3 Jan 2007 06:53:13 +0000 (06:53 +0000)]
r20499: Activate RAW-OPEN in the build farm

16 years agor20498: Two 64-bit warnings
Volker Lendecke [Wed, 3 Jan 2007 06:39:18 +0000 (06:39 +0000)]
r20498: Two 64-bit warnings

16 years agor20496: Some changes to make Samba3 the RAW-OPEN test. Checking in to both 3_0 and
Volker Lendecke [Wed, 3 Jan 2007 06:19:11 +0000 (06:19 +0000)]
r20496: Some changes to make Samba3 the RAW-OPEN test. Checking in to both 3_0 and
3_0_24 because I was explicitly asked to, although this needs close
review. Jeremy, I'm sure you will check this thoroughly :-)

In reply_open_and_X the separate "size" variable kills the calculation of the
SPARSE flag returned to the client in the attrib field. In getpathinfo we do
it correctly, and RAW-OPEN (correctly) complains about the difference.

Add the "set the write time" to mknew and create.

For trans2open we were missing the "ofun == 0" ->
NT_STATUS_OBJECT_NAME_COLLISION case, and we dropped the status returned in
favor of ACCESS_DENIED once too many.

Last change is a fix to trans2open: We were returning the attributes given by
the client, not the attributes of the new file.

Volker

16 years agor20489: Missed patch ofthe forest_name patch for lookupname
Gerald Carter [Tue, 2 Jan 2007 22:14:26 +0000 (22:14 +0000)]
r20489: Missed patch ofthe forest_name patch for lookupname

16 years agor20488: When joined to a child domain in a multi-domain/single domain tree,
Gerald Carter [Tue, 2 Jan 2007 21:48:47 +0000 (21:48 +0000)]
r20488: When joined to a child domain in a multi-domain/single domain tree,
the child domain cannot always resolve SIDs in sibling domains.
Windows tries to contact a DC in its own domain and then the root
domain in the forest.  This async changes makes winbindd's name2sid()
call do the same.

16 years agor20487: Remove the unused dn2ad_canonical() call
Gerald Carter [Tue, 2 Jan 2007 21:45:12 +0000 (21:45 +0000)]
r20487: Remove the unused dn2ad_canonical() call

16 years agor20486: Always upper case the "host/<sAMAccoutnName>" entry in the keytab file
Gerald Carter [Tue, 2 Jan 2007 21:29:09 +0000 (21:29 +0000)]
r20486: Always upper case the "host/<sAMAccoutnName>" entry in the keytab file
so apps will know which one to look for,