1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-28 07:21:54 +03:00
Commit Graph

55195 Commits

Author SHA1 Message Date
Jeremy Allison
ea6819ae75 Correctly send out notify messages for timestamp changes.
"change time" has no notify message, so don't send anything
out when we change it. Use FILE_NOTIFY_CHANGE_CREATION correctly
when changing the create time.
Jeremy.
2009-08-07 10:19:20 -07:00
Matthias Dieter Wallnöfer
aa6dc21fa3 s4: Add a new script for setting password properties for a domain in a easier way 2009-08-07 17:21:58 +02:00
Stefan Metzmacher
aef96af916 s4:libcli/smb2: move SMB2_GETINFO_* flags into smb2_constants.h
metze
2009-08-07 14:56:23 +02:00
Stefan Metzmacher
acbb9da530 s4:libcli/smb2: remove unused and redundant SMB2 security flags
metze
2009-08-07 14:56:23 +02:00
Stefan Metzmacher
c2c4d489b6 s4:libcli: move SMB2 Find constants to smb2_constants.h
metze
2009-08-07 14:56:22 +02:00
Stefan Metzmacher
21d6f276fb s4:libcli/raw: we don't need to include "smb.h" explicit
metze
2009-08-07 14:56:22 +02:00
Stefan Metzmacher
93ec5d27e4 s4:libcli/raw: also include smb2_constants.h into interfaces.h
metze
2009-08-07 14:56:21 +02:00
Stefan Metzmacher
50f54250f4 s3:smbd: split the dir entry marshalling into smbd_marshall_dir_entry()
So that we can reuse it for SMB2 Find.

metze
2009-08-07 14:18:18 +02:00
Stefan Metzmacher
59c3f5e3ca s3:smbd: move dptr globals into struct smbd_server_connection
metze
2009-08-07 14:18:17 +02:00
Stefan Metzmacher
c50a03e4e2 s3:smbd: remove dirptr and dirpath from connection_struct
They're both only used in the context of a function,
so we can make them stack variables.

metze
2009-08-07 14:18:17 +02:00
Stefan Metzmacher
dfae090c5d s3:smbd: implement get_lanman2_dir_entry() on top of smbd_dirptr_get_entry()
metze
2009-08-07 14:18:16 +02:00
Stefan Metzmacher
862c6aa19f s3:smbd: let get_dir_entry() use smbd_dirptr_get_entry()
metze
2009-08-07 14:18:16 +02:00
Stefan Metzmacher
daa71c4236 s3:smbd: add generic smbd_dirptr_get_entry()
metze
2009-08-07 14:18:15 +02:00
Stefan Metzmacher
70afd419a6 s3:smbd: conn_free_internal() can be static now
metze
2009-08-07 14:18:15 +02:00
Stefan Metzmacher
c54e6b19e3 s3:smbd: add a smbd_server_connection pointer to connection_struct
This can be NULL for faked connection structs used in the rpc server
or printing code.

metze
2009-08-07 14:18:14 +02:00
Volker Lendecke
8300b255a5 Fix some nonempty blank lines 2009-08-07 13:02:15 +02:00
Stefan Metzmacher
558ff911df pidl: parse idl 'pipe' typedefs, but print out a not supported message for now
metze
2009-08-07 11:50:24 +02:00
Stefan Metzmacher
20a6fb5cdb pidl: fix formatting in expr.yp
metze
2009-08-07 11:50:24 +02:00
Stefan Metzmacher
bfa9624946 pidl: fix formatting in idl.yp
metze
2009-08-07 11:50:24 +02:00
Stefan Metzmacher
7d7a9210cd librpc: fix callers after epmapper.idl changes
metze
2009-08-07 11:50:23 +02:00
Stefan Metzmacher
cdfaaed9a8 librpc: rerun 'make idl' after epmapper.idl changes
metze
2009-08-07 11:50:23 +02:00
Stefan Metzmacher
2823757912 epmapper.idl: avoid usage of 'pipe', this is a reserved word in IDL
We now use 'named_pipe' instead.

metze
2009-08-07 11:50:23 +02:00
Stefan Metzmacher
8e419aab48 s3:smbd: don't ignore check_descend in get_dir_entry()
metze
2009-08-07 11:10:52 +02:00
Günther Deschner
5b50e506d0 s3-wkssvcs: fix check for BUILTIN\Administrators membership in wkssvc_Netr{Join,Unjoin}Domain2.
Guenther
2009-08-07 09:59:14 +02:00
Kai Blin
88af0ec6e4 s3 net: i18n support for net rpc audit 2009-08-07 09:54:52 +02:00
Kai Blin
db76b7aa04 s3 net: net i18n in it's own module 2009-08-07 09:54:52 +02:00
Kai Blin
ba830cf1cd Revert "s3: Update i18n files"
This reverts commit 57b5269038,
6e044a22cf and
c9803ee26a.

The correct location for net .po files is in locale/net/
2009-08-07 09:54:52 +02:00
Kai Blin
8dcf3b7062 s3 net: i18n support for net rpc 2009-08-07 09:54:52 +02:00
Kai Blin
7ced58b932 s3 net: i18n support for net registry 2009-08-07 09:54:51 +02:00
Kai Blin
9be14ed78d s3 net: i18n support for net rap 2009-08-07 09:54:51 +02:00
Andrew Tridgell
7c2025610c fixed another ambiguous talloc call
During the creation of the 3 RPC pipes in winbind we try to steal the
RPC binding structure to be a child of the pipe once the pipe is
established. This fails with a talloc warning as the rpc connection
code already holds a reference to the binding.

The fix is to use talloc_reparent() instead.
2009-08-07 17:24:48 +10:00
Andrew Tridgell
c271dc998b ensure that child tasks die when the parent dies
Previously we relied on process groups and SIGTERM to ensure that
child tasks died in the standard process model when the parent task
died. This doesn't work when the server is run in interactive mode, as
in that case we don't call become_daemon() and don't get a separate
process group.

The fix is to have a pipe held open by the parent server process, and
inherited by child tasks. If the parent exits then the write side of
the pipe is implicitly closed, which causes an event in the child
tasks that causes them to exit
2009-08-07 17:24:48 +10:00
Andrew Tridgell
cfc0cabb27 prime the sam ldb schema in the parent samba process
While testing the use of the standard process model with 'make test' I
found that testing was much slower (by several times) with the
standard model than with the single model. The primary problem was
that each SMB connection would open a new sam ldb context, and all of
those would reload the full AD schema.

The fix is to pre-open the SAM during server startup, before any child
processes are forked. This sets up the global schema context which is
inherited by all connections.

The standard model is still slower at make test than the single model,
but not by nearly as much. I am working on further reducing the gap.
2009-08-07 17:24:48 +10:00
Andrew Tridgell
2c12c985e7 use talloc with the global schema consistently
Before this change, the first opener of the sam ldb context would
become the owner of the global schema, then the autofree context got a
reference to the schema. Any subsequent opens of the sam ldb also got
a reference. This meant that the talloc hierarchy was inconsistent
between the first sam ldb open and subsequent opens. With this change
the autofree context becomes the owner of the global schema, and all
ldb contexts get a reference.
2009-08-07 17:24:48 +10:00
Andrew Tridgell
e2d4ae1510 fixed several places that unnecessarily take a reference to the event context
These references were triggering the ambiguous talloc_free errors from
the recent talloc changes when the server is run using the 'standard'
process model instead of the 'single' process model. I am aiming to
move the build farm to use the 'standard' process model soon, as part
of an effort to make our test environment better match the real
deployment of Samba4.

The references are not needed as the way that the event context is
used is as the 'top parent', so when the event context is freed then
all of the structures that were taking a reference to the event
context were actually freed as well, thus making the references
redundent.
2009-08-07 17:24:48 +10:00
Bo Yang
238bf25af4 s3: add a test to test libsmbclient
Signed-off-by: Bo Yang <boyang@samba.org>
2009-08-08 06:26:43 +08:00
Bo Yang
b9fb8da591 s3: Fix nss info substitution
Signed-off-by: Bo Yang <boyang@samba.org>
2009-08-08 06:26:43 +08:00
Andrew Tridgell
4aad79041b make sure we never look past the end of either string in ldb_comparison_fold()
This fixes a bug in the samba3sam test with the python libraries as
noticed by abartlet
2009-08-07 14:34:01 +10:00
Andrew Bartlett
dd557cc361 s4:ldb Make error message in rnd_name more useful 2009-08-07 14:22:54 +10:00
Andrew Bartlett
37b8235afe Merge branch 'master' of ssh://git.samba.org/data/git/samba into master-devel 2009-08-07 13:08:35 +10:00
Oliver Liebel
11ff224e13 s4:setup Remove extra newlines that break OpenLDAP backend 2009-08-07 12:38:51 +10:00
Tim Prouty
457191e9f3 s3: Fix a bug in renames of directories
Recently code was added to match windows semantics of denying the
rename of a directory if there are open files underneath it.  This
does partly match windows semantics, but it turns out the rename
should be allowed if the open file handle is for the directory being
renamed, or for a stream on the directory being renamed.  This patch
refines the check to better follow these rename semantics.
2009-08-06 17:07:50 -07:00
Tim Prouty
09e9904f18 s4 torture: Extend the RAW-RENAME test to more fully test directory renames.
The existing test was only covering files opened underneath the
directory that was being renamed.  It is not uncommon for windows
clients to actually hold a read-only handle to a directory open across
the rename, which it turns out doesn't return NT_STATUS_ACCESS_DENIED.
Additionally, holding a handle open to a stream on the directory is
also allowed.
2009-08-06 17:07:49 -07:00
Jeremy Allison
890dfe003c Remove a const warning.
Jeremy.
2009-08-06 15:47:05 -07:00
Jeremy Allison
650445fc3c Fix bug #5714 - NetBSD, ENODATA undefined, at least some releases.
Jeremy.
2009-08-06 15:09:01 -07:00
Jeremy Allison
e76af514c3 Put SMB_INFO_STANDARD back into setfileinfo, but do it right
this time :-).
Jeremy.
2009-08-06 12:50:16 -07:00
Jeremy Allison
4fc9f9c3f9 Add define guards around otherwise unused variable.
Jeremy.
2009-08-06 11:47:08 -07:00
Günther Deschner
8a5cc1317a s3-ldap: Fix Bug #5879. Update LDAP schema for Netscape DS 5.
Patch from TAKEDA Yasuma <yasuma@osstech.co.jp>.

Guenther
2009-08-06 17:19:44 +02:00
Bo Yang
857140a79f Unable to browse DFS when using kerberos
Signed-off-by: Bo Yang <boyang@samba.org>
2009-08-07 13:47:14 +08:00
Matthias Dieter Wallnöfer
915b789c87 s4: Simplify two lines in the "samdb.py" file (cosmetic) 2009-08-06 12:35:47 +02:00