kai/samba-autobuild/.git
14 years agoMerge branch 'master' of ssh://jht@git.samba.org/data/git/samba
John H Terpstra [Thu, 23 Jul 2009 14:33:06 +0000 (09:33 -0500)]
Merge branch 'master' of ssh://jht@git.samba.org/data/git/samba

14 years ago[SAMBA 4 / NETLOGON] Modify type of SAM contexts
Matthias Dieter Wallnöfer [Wed, 22 Jul 2009 18:15:58 +0000 (20:15 +0200)]
[SAMBA 4 / NETLOGON] Modify type of SAM contexts

In the SAMBA 4 DCE/RPC NETLOGON server the SAM context references have generally
the type "void *". But we know that those context objects are based on the "struct
ldb_context" type. We've always to cast for using a SAM/LDB call.
This I didn't find very appealing and so I assigned the right (detailed) type to each "sam_ctx".
Therefore, the casts could disappear.

Also this change is only cosmetic.

14 years agofrstrans.idl: add new DFS-R FrsTransport interface with dummy functions
Stefan Metzmacher [Wed, 22 Jul 2009 08:55:39 +0000 (10:55 +0200)]
frstrans.idl: add new DFS-R FrsTransport interface with dummy functions

metze

14 years agofrsrpc.idl: add definition for frsrpc_FrsStartPromotionParent()
Stefan Metzmacher [Wed, 22 Jul 2009 13:48:32 +0000 (15:48 +0200)]
frsrpc.idl: add definition for frsrpc_FrsStartPromotionParent()

metze

14 years agos3: Change unix_convert to use an smb_filename struct internally
Tim Prouty [Wed, 22 Jul 2009 16:52:09 +0000 (09:52 -0700)]
s3: Change unix_convert to use an smb_filename struct internally

This allows SMB_VFS_[L]STAT to be called directly.  Additionally, I
changed NTSTATUS result to be named status for consistency.

I also removed the stat_cache_add() from build_stream_path() because
stat_cache_lookup() is never actually called on a file with a stream.
There is no reason why the stat cache couldn't be consulted for
streams in the future.

Jeremy/Volker, please take a look at this one when you get a chance.

14 years agos3: Convert some callers of vfs_lstat_smb_fname to SMB_VFS_LSTAT()
Tim Prouty [Tue, 21 Jul 2009 22:55:25 +0000 (15:55 -0700)]
s3: Convert some callers of vfs_lstat_smb_fname to SMB_VFS_LSTAT()

14 years agos3: Convert some callers of vfs_stat_smb_fname to SMB_VFS_STAT()
Tim Prouty [Tue, 21 Jul 2009 20:57:56 +0000 (13:57 -0700)]
s3: Convert some callers of vfs_stat_smb_fname to SMB_VFS_STAT()

14 years agolibrpc: fix the merged build of ndr_frsrpc.c
Stefan Metzmacher [Wed, 22 Jul 2009 09:05:21 +0000 (11:05 +0200)]
librpc: fix the merged build of ndr_frsrpc.c

metze

14 years agoRevert "net: Use samba default command line arguments."
Kai Blin [Sun, 5 Jul 2009 07:21:07 +0000 (09:21 +0200)]
Revert "net: Use samba default command line arguments."

This reverts commit fb262f79fab00374023e59476e8d05a1015a7041
and related commits c36031778e1983ddb11d3e1fcab35e738dbf94bc
72fd5fa6bb78a054fad5e5ebe19a0c0387a7d45b and
38cd0e086f50ce54d88a19aa5a6803469af90489

This change caused more trouble than it solved. We need to do this differently.
Reverting so we don't accidently release this.

14 years agos4:provision Fix provision on FreeBSD
Andrew Bartlett [Wed, 22 Jul 2009 08:04:58 +0000 (18:04 +1000)]
s4:provision Fix provision on FreeBSD

We were missing the 'cn' attribute, which we then prepare a sorted
list based on.  On Linux, strcmp(NULL, NULL) does not segfault, where
it does on FreeBSD.

Reported by Timur I. Bakeyev <timur@com.bat.ru>

Andrew Bartlett

14 years agos3: plumb smb_filename through some of the trans2 posix_* functions
Tim Prouty [Tue, 21 Jul 2009 18:37:51 +0000 (11:37 -0700)]
s3: plumb smb_filename through some of the trans2 posix_* functions

14 years agos3: Remove unnecessary callers of get_full_smb_filename
Tim Prouty [Tue, 21 Jul 2009 18:35:17 +0000 (11:35 -0700)]
s3: Remove unnecessary callers of get_full_smb_filename

This often times means explicitly denying certain operations on a stream
as they are not supported or don't make sense at a particular level.  At
some point in the future these can be enabled, but for now it's better to
remove ambiguity

14 years agos3: Remove the now unused fname parameter from filename_convert()
Tim Prouty [Tue, 21 Jul 2009 17:28:28 +0000 (10:28 -0700)]
s3: Remove the now unused fname parameter from filename_convert()

14 years agos3: Fix RENAME_FLAG_RENAME path to stop calling unix_convert twice
Tim Prouty [Tue, 21 Jul 2009 17:19:00 +0000 (10:19 -0700)]
s3: Fix RENAME_FLAG_RENAME path to stop calling unix_convert twice

14 years agos3: Remove unnecessary fname argument from callers of filename_convert
Tim Prouty [Tue, 21 Jul 2009 17:18:10 +0000 (10:18 -0700)]
s3: Remove unnecessary fname argument from callers of filename_convert

14 years agos3: Plumb smb_filename through map_open_params_to_ntcreate
Tim Prouty [Tue, 21 Jul 2009 16:29:59 +0000 (09:29 -0700)]
s3: Plumb smb_filename through map_open_params_to_ntcreate

14 years agofrsrpc.idl: make the chunk array in frsrpc_CommPktChunkCtr dynamic
Stefan Metzmacher [Tue, 21 Jul 2009 14:48:06 +0000 (16:48 +0200)]
frsrpc.idl: make the chunk array in frsrpc_CommPktChunkCtr dynamic

We add an extra num_chunks to the frsrpc_CommPktChunkCtr structure
and use hand modified ndr_push/pull functions to let it not appear
on the wire.

metze

14 years agofrsrpc.idl: almost complete the idl for the frsrpc_FrsSendCommPkt() function
Stefan Metzmacher [Tue, 21 Jul 2009 14:05:44 +0000 (16:05 +0200)]
frsrpc.idl: almost complete the idl for the frsrpc_FrsSendCommPkt() function

TODO: The amount of chunks is dynamic, we need to fix that

metze

14 years agofrsapi.idl: fill the frsapi_WriterCommand() function
Stefan Metzmacher [Tue, 21 Jul 2009 14:04:35 +0000 (16:04 +0200)]
frsapi.idl: fill the frsapi_WriterCommand() function

metze

14 years agofrsapi.idl: fix some unknown field names
Stefan Metzmacher [Tue, 21 Jul 2009 14:04:07 +0000 (16:04 +0200)]
frsapi.idl: fix some unknown field names

metze

14 years agodo not log chdir with level 0 if reason is access denied
Christian Ambach [Tue, 21 Jul 2009 11:56:17 +0000 (13:56 +0200)]
do not log chdir with level 0 if reason is access denied

this changes the level of logs caused by users trying to access shares
or subdirectories for which they do not have access to in the ACL

this can fill up the samba log even with log level 0 and is more an
expected kind of logs that IMHO should not be logged with such a high
level.

All other errors while chdir() will still be logged with level 0

Signed-off-by: Christian Ambach <christian.ambach@de.ibm.com>
14 years agos3:dbwrap: use the transaction wrapper in dbwrap_trans_store().
Michael Adam [Tue, 21 Jul 2009 10:35:48 +0000 (12:35 +0200)]
s3:dbwrap: use the transaction wrapper in dbwrap_trans_store().

Now dbwrap_util.c contains only one call to each of
transaction_start, transaction_commit and transaction_cancel.

Michael

14 years agos3:dbwrap: use the transaction wrapper in dbwrap_trans_delete().
Michael Adam [Tue, 21 Jul 2009 10:26:14 +0000 (12:26 +0200)]
s3:dbwrap: use the transaction wrapper in dbwrap_trans_delete().

Michael

14 years agotdb: fix locking error
Rusty Russell [Tue, 21 Jul 2009 06:53:35 +0000 (16:23 +0930)]
tdb: fix locking error

54a51839ea65aa788b18fce8de0ae4f9ba63e4e7 "Make tdb transaction lock
recursive (samba version)" was broken: I "cleaned it up" and prevented
it from ever unlocking.

To see the problem:
$ bin/tdbtorture -s 1248142523
tdb_brlock failed (fd=3) at offset 8 rw_type=1 lck_type=14 len=1
tdb_transaction_lock: failed to get transaction lock
tdb_transaction_start failed: Resource deadlock avoided

My testcase relied on the *count* being correct, which it was.  Fixing that
now.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Michael Adam <obnox@samba.org>
14 years agos3: Add some asserts to the filename util functions
Tim Prouty [Mon, 20 Jul 2009 21:32:32 +0000 (14:32 -0700)]
s3: Add some asserts to the filename util functions

In the smb_filename struct stream_name must equal NULL if there
is no stream name.  These asserts should catch any future offenders
of this invariant early.

14 years agos3: Plumb smb_filename through open_fake_file
Tim Prouty [Fri, 10 Jul 2009 22:43:21 +0000 (15:43 -0700)]
s3: Plumb smb_filename through open_fake_file

14 years agos3: Separate out a new file: filename_utils.c
Tim Prouty [Fri, 10 Jul 2009 22:35:08 +0000 (15:35 -0700)]
s3: Separate out a new file: filename_utils.c

This is to ease the linking pain of everything that links LOCKING_OBJ

14 years agos3: Move is_ntfs_stream*() to filename.c
Tim Prouty [Fri, 10 Jul 2009 22:10:35 +0000 (15:10 -0700)]
s3: Move is_ntfs_stream*() to filename.c

14 years agos3: Finish plumbing the fsp->fsp_name smb_fname conversion through the modules.
Tim Prouty [Sat, 11 Jul 2009 01:11:32 +0000 (18:11 -0700)]
s3: Finish plumbing the fsp->fsp_name smb_fname conversion through the modules.

14 years agos3: Change fsp->fsp_name to be an smb_filename struct!
Tim Prouty [Fri, 10 Jul 2009 21:50:37 +0000 (14:50 -0700)]
s3: Change fsp->fsp_name to be an smb_filename struct!

14 years agos3 onefs oplocks: Replace static fstring with talloc'd dbg_ctx()
Tim Prouty [Fri, 10 Jul 2009 18:50:30 +0000 (11:50 -0700)]
s3 onefs oplocks: Replace static fstring with talloc'd dbg_ctx()

14 years agos3: Change file_structs to be allocated with talloc instead of malloc
Tim Prouty [Fri, 10 Jul 2009 17:38:56 +0000 (10:38 -0700)]
s3: Change file_structs to be allocated with talloc instead of malloc

14 years agolib util: Fix const warning
Tim Prouty [Mon, 20 Jul 2009 22:37:18 +0000 (15:37 -0700)]
lib util: Fix const warning

14 years agoMake cli_send_mailslot() static. Preparing to do away with unexpected.tdb....
Jeremy Allison [Mon, 20 Jul 2009 22:15:08 +0000 (15:15 -0700)]
Make cli_send_mailslot() static. Preparing to do away with unexpected.tdb....
Jeremy.

14 years agoMake tdb transaction lock recursive (samba version)
Rusty Russell [Sat, 18 Jul 2009 05:58:58 +0000 (15:28 +0930)]
Make tdb transaction lock recursive (samba version)

This patch replaces 6ed27edbcd3ba1893636a8072c8d7a621437daf7 and
1a416ff13ca7786f2e8d24c66addf00883e9cb12, which fixed the bug where traversals
inside transactions would release the transaction lock early.

This solution is more general, and solves the more minor symptom that nested
traversals would also release the transaction lock early.  (It was also suggestd in
Volker's comment in 6ed27ed).

This patch also applies to ctdb, if the traverse.c part is removed (ctdb's tdb
code never received the previous two fixes).

Tested using the testsuite from ccan (adapted to the samba code).  Thanks to
Michael Adam for feedback.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Michael Adam <obnox@samba.org>
14 years agoRe-add accidently removed shares test.
Jelmer Vernooij [Mon, 20 Jul 2009 08:25:25 +0000 (10:25 +0200)]
Re-add accidently removed shares test.

14 years agos4:kdc Add in a simple check for constrained delegation to self
Andrew Bartlett [Sat, 18 Jul 2009 00:15:55 +0000 (10:15 +1000)]
s4:kdc Add in a simple check for constrained delegation to self

To do this properly, we must use the PAC, but for now this is enough
to check that we are delegating to another name on the same host
(which must be safe).

(Windows 7 does this a lot, also noted in bug 6273)

Andrew Bartlett

14 years ago[SAMBA 4 directory] Refactoring and clean up of directory structure
Matthias Dieter Wallnöfer [Fri, 10 Jul 2009 10:48:18 +0000 (12:48 +0200)]
[SAMBA 4 directory] Refactoring and clean up of directory structure

- Adds more system objects which make sense to have them in SAMBA 4 also to
  have them when we add more and more services related to the directory (volume
  support, DFS, replication service, COM...)
- Make sure that "isCriticalSystemObject" and "showInAdvancedViewOnly" attributes
  are set correctly on each object

14 years agopidl: Print actual type names in errors about unknown origins rather than 'HASH(0x...
Jelmer Vernooij [Sun, 19 Jul 2009 19:12:56 +0000 (21:12 +0200)]
pidl: Print actual type names in errors about unknown origins rather than 'HASH(0x....)'.

14 years agopidl: Print proper errors when arrays don't have a specified size rather than spewing...
Jelmer Vernooij [Sun, 19 Jul 2009 18:42:52 +0000 (20:42 +0200)]
pidl: Print proper errors when arrays don't have a specified size rather than spewing pages of perl warnings.

14 years agoRemove unused parameter setting.
Jelmer Vernooij [Sun, 19 Jul 2009 16:58:22 +0000 (18:58 +0200)]
Remove unused parameter setting.

14 years agoRemove unnecessary imports.
Jelmer Vernooij [Sun, 19 Jul 2009 16:51:15 +0000 (18:51 +0200)]
Remove unnecessary imports.

14 years agoMerge branch 'master' of git://git.samba.org/samba
Jelmer Vernooij [Sun, 19 Jul 2009 15:39:23 +0000 (17:39 +0200)]
Merge branch 'master' of git://git.samba.org/samba

14 years agoInclude ntsvc NDR in libndr-standard.
Jelmer Vernooij [Sun, 19 Jul 2009 15:18:04 +0000 (17:18 +0200)]
Include ntsvc NDR in libndr-standard.

14 years agoRemove unused variable.
Jelmer Vernooij [Sun, 19 Jul 2009 15:17:23 +0000 (17:17 +0200)]
Remove unused variable.

14 years agosource4/lib/registry/patchfile.c(reg_diff_load): fixed possible resource leak.
Slava Semushin [Sat, 18 Jul 2009 16:30:33 +0000 (23:30 +0700)]
source4/lib/registry/patchfile.c(reg_diff_load): fixed possible resource leak.

File descriptor leaks when write(2) fails and we are returning from
function.

Found by cppcheck:
[./source4/lib/registry/patchfile.c:319]: (error) Resource leak: fd

14 years agolib/util/util_file.c(file_save): fixed file descriptor leak when read(2) fails.
Slava Semushin [Sat, 18 Jul 2009 09:28:53 +0000 (16:28 +0700)]
lib/util/util_file.c(file_save): fixed file descriptor leak when read(2) fails.

Found by cppcheck:
[./lib/util/util_file.c:383]: (error) Resource leak: fd

14 years agoFix broken password quality check
Matthieu Patou [Sat, 11 Jul 2009 13:57:35 +0000 (15:57 +0200)]
Fix broken password quality check

This fixes broken password tests when the passwords contain non ASCII characters
(e.g. accentuated chars like ('e, `e, ...)

14 years agoFix typo
Matthias Dieter Wallnöfer [Wed, 15 Jul 2009 11:25:04 +0000 (13:25 +0200)]
Fix typo

14 years ago[SAMBA 4] Some cosmetic changes for the LDB modules
Matthias Dieter Wallnöfer [Fri, 17 Jul 2009 16:13:28 +0000 (18:13 +0200)]
[SAMBA 4] Some cosmetic changes for the LDB modules

Some corrections which make the code a bit more readable (no functional changes here)

14 years agoinclude unix.h if it's available
Matt Kraai [Thu, 9 Jul 2009 16:45:28 +0000 (09:45 -0700)]
include unix.h if it's available

14 years agoCosmetic correction
Matthias Dieter Wallnöfer [Thu, 9 Jul 2009 15:54:42 +0000 (17:54 +0200)]
Cosmetic correction

Changes the order of two commands. First set up the "priv" structure, then
assign it to the "ntvfs" structure.

14 years agoMerge more ndr interfaces into libndr-standard.
Jelmer Vernooij [Sun, 19 Jul 2009 13:39:52 +0000 (15:39 +0200)]
Merge more ndr interfaces into libndr-standard.

14 years agolibrpc: Integrate some subsystems now part of libndr-standard and integrate ndr_dfs...
Jelmer Vernooij [Sun, 19 Jul 2009 11:41:04 +0000 (13:41 +0200)]
librpc: Integrate some subsystems now part of libndr-standard and integrate ndr_dfs in libndr-standard.

14 years agoAdd missing includes.
Jelmer Vernooij [Sun, 19 Jul 2009 11:39:38 +0000 (13:39 +0200)]
Add missing includes.

14 years agoprovision: Remove unused imports.
Jelmer Vernooij [Sun, 19 Jul 2009 11:19:54 +0000 (13:19 +0200)]
provision: Remove unused imports.

14 years agoCreate libndr-standard, which includes the NDR marshalling code for
Jelmer Vernooij [Sun, 19 Jul 2009 10:41:09 +0000 (12:41 +0200)]
Create libndr-standard, which includes the NDR marshalling code for
the "standard" set of DCE/RPC interfaces found on Windows.

14 years agoRemove unnecessary include, update README.
Jelmer Vernooij [Sun, 19 Jul 2009 10:15:59 +0000 (12:15 +0200)]
Remove unnecessary include, update README.

14 years agoRemove outdated status file about samba3 -> samba4 upgrade project.
Jelmer Vernooij [Sun, 19 Jul 2009 10:10:47 +0000 (12:10 +0200)]
Remove outdated status file about samba3 -> samba4 upgrade project.

14 years agoFix a few type errors in VFS modules
Volker Lendecke [Sun, 19 Jul 2009 00:32:44 +0000 (02:32 +0200)]
Fix a few type errors in VFS modules

14 years agoVFS examples: Update copy of config.{guess,sub}.
Jelmer Vernooij [Sat, 18 Jul 2009 18:04:11 +0000 (20:04 +0200)]
VFS examples: Update copy of config.{guess,sub}.

14 years agopython: Set right ldb modules directory when using system ldb.
Jelmer Vernooij [Sat, 18 Jul 2009 16:39:20 +0000 (18:39 +0200)]
python: Set right ldb modules directory when using system ldb.

14 years agoActually fill in ldb modules directory.
Jelmer Vernooij [Sat, 18 Jul 2009 16:28:57 +0000 (18:28 +0200)]
Actually fill in ldb modules directory.

14 years agoRemove pyldb_util and simply duplicate the 5-line function it contains,
Jelmer Vernooij [Sat, 18 Jul 2009 14:11:21 +0000 (16:11 +0200)]
Remove pyldb_util and simply duplicate the 5-line function it contains,
rather than creating a separate shared library for it.

14 years agoldb: Display SHLD_FLAGS when building.
Jelmer Vernooij [Sat, 18 Jul 2009 08:37:59 +0000 (10:37 +0200)]
ldb: Display SHLD_FLAGS when building.

14 years agoFix Coverity CIDs 887, 888. Don't pass NULL's to functions
Jeremy Allison [Sat, 18 Jul 2009 04:50:33 +0000 (21:50 -0700)]
Fix Coverity CIDs 887, 888. Don't pass NULL's to functions
that deref them.
Jeremy.

14 years agoFix Coverity CID 928. Removed check as this can never be null.
Jeremy Allison [Sat, 18 Jul 2009 04:40:23 +0000 (21:40 -0700)]
Fix Coverity CID 928. Removed check as this can never be null.
Jeremy.

14 years agoFix Coverity CID 929. Potential NULL deref after code refactoring.
Jeremy Allison [Sat, 18 Jul 2009 04:36:55 +0000 (21:36 -0700)]
Fix Coverity CID 929. Potential NULL deref after code refactoring.
Jeremy.

14 years agoFix coverity CID 930. Pointer check can never be null here.
Jeremy Allison [Sat, 18 Jul 2009 04:29:28 +0000 (21:29 -0700)]
Fix coverity CID 930. Pointer check can never be null here.
Jeremy

14 years agoFix coverity CID 931. This check is redundent as smb_fname can
Jeremy Allison [Sat, 18 Jul 2009 04:26:16 +0000 (21:26 -0700)]
Fix coverity CID 931. This check is redundent as smb_fname can
never be null in this function.
Jeremy.

14 years agoFix a typo reading uninitialized memory. Caught by valgrind.
Jeremy Allison [Sat, 18 Jul 2009 01:05:10 +0000 (18:05 -0700)]
Fix a typo reading uninitialized memory. Caught by valgrind.
Jeremy.

14 years agoMove the initialization of smbd_server_conn from smbd/process,
Jeremy Allison [Sat, 18 Jul 2009 00:57:48 +0000 (17:57 -0700)]
Move the initialization of smbd_server_conn from smbd/process,
after the accept and fork, to smbd_init_globals(), so it's
done immediately on server startup. This is needed as some
messages are sent to all active smbd processes (including
the master listening daemon). If it gets a message that
forces it to scan it's current connections (ie. conn_find())
then it discovers that sconn->smb1.tcons.Connections dereferences
null (as sconn == NULL in the parent) and crashes. Yes,
I could fix all cases where sconn is used and explicitly
check for NULL but this fix is easier. It means that
the smbd_event_context() is initialized in the master
daemon and then re-initialized after fork, but that
should be being done correctly in every fork call anyway.
Without this change the previous fix 6a9e0039100b57f9626e87defec6720c476b9789
still panics in the reproducible test case for bug
6564, as this is one case where such a message
(MSG_SMB_CONF_UPDATED) is sent to the parent. Metze
please check. This change passes valgrind.
Jeremy.

14 years agoFix bug #6564 - SetPrinter fails (panics) as non root.
Jeremy Allison [Sat, 18 Jul 2009 00:36:26 +0000 (17:36 -0700)]
Fix bug #6564 - SetPrinter fails (panics) as non root.
Missing become_root()/unbecome_root() around reload_services.
Jeremy.

14 years ago3.4 is released...
Volker Lendecke [Fri, 17 Jul 2009 20:40:24 +0000 (22:40 +0200)]
3.4 is released...

14 years agos4-spoolss: fix the build after OsVersion changes.
Günther Deschner [Fri, 17 Jul 2009 15:16:44 +0000 (17:16 +0200)]
s4-spoolss: fix the build after OsVersion changes.

Guenther

14 years agospoolss: fill in some unknowns in spoolss_OSVersion and spoolss_OSVersionEx.
Günther Deschner [Fri, 17 Jul 2009 14:47:48 +0000 (16:47 +0200)]
spoolss: fill in some unknowns in spoolss_OSVersion and spoolss_OSVersionEx.

Guenther

14 years agos3: add failure check.
Bo Yang [Sat, 18 Jul 2009 06:07:33 +0000 (14:07 +0800)]
s3: add failure check.

Signed-off-by: Bo Yang <boyang@samba.org>
14 years agos3-rpcclient: add createprinteric command.
Günther Deschner [Fri, 17 Jul 2009 13:39:40 +0000 (15:39 +0200)]
s3-rpcclient: add createprinteric command.

Guenther

14 years agospoolss: fill in spoolss_Create/DeletePrinterIC + rerun make samba3-idl.
Günther Deschner [Fri, 17 Jul 2009 13:38:40 +0000 (15:38 +0200)]
spoolss: fill in spoolss_Create/DeletePrinterIC + rerun make samba3-idl.

Guenther

14 years agos3-lsa: let _lsa_Delete return NT_STATUS_NOT_SUPPORTED as w2k3 does.
Günther Deschner [Wed, 15 Jul 2009 23:05:25 +0000 (01:05 +0200)]
s3-lsa: let _lsa_Delete return NT_STATUS_NOT_SUPPORTED as w2k3 does.

Guenther

14 years agos3-lsa: Fix access_mask calculation for new handle in _lsa_CreateAccount().
Günther Deschner [Thu, 16 Jul 2009 16:45:29 +0000 (18:45 +0200)]
s3-lsa: Fix access_mask calculation for new handle in _lsa_CreateAccount().

Guenther

14 years agos3-lsa: add (not yet activate) level specific access checks for _lsa_QueryInfoPolicy.
Günther Deschner [Thu, 16 Jul 2009 14:32:04 +0000 (16:32 +0200)]
s3-lsa: add (not yet activate) level specific access checks for _lsa_QueryInfoPolicy.

Guenther

14 years agos3-lsa: also implement level 13 in lsa_QueryInfoPolicy.
Günther Deschner [Thu, 16 Jul 2009 14:28:11 +0000 (16:28 +0200)]
s3-lsa: also implement level 13 in lsa_QueryInfoPolicy.

Guenther

14 years agos3-lsa: Fix policy handle memleak and handle type check in _lsa_DeleteObject().
Günther Deschner [Fri, 17 Jul 2009 11:44:55 +0000 (13:44 +0200)]
s3-lsa: Fix policy handle memleak and handle type check in _lsa_DeleteObject().

Guenther

14 years agos3-rpcclient: add LSA storeprivatedata command.
Günther Deschner [Fri, 17 Jul 2009 11:37:08 +0000 (13:37 +0200)]
s3-rpcclient: add LSA storeprivatedata command.

Guenther

14 years agos3-rpcclient: add LSA retrieveprivatedata command.
Günther Deschner [Fri, 17 Jul 2009 11:30:37 +0000 (13:30 +0200)]
s3-rpcclient: add LSA retrieveprivatedata command.

Guenther

14 years agos3-rpcclient: add LSA setsecret command.
Günther Deschner [Fri, 17 Jul 2009 10:56:30 +0000 (12:56 +0200)]
s3-rpcclient: add LSA setsecret command.

Guenther

14 years agos3-rpcclient: add LSA querysecret command.
Günther Deschner [Fri, 17 Jul 2009 10:03:58 +0000 (12:03 +0200)]
s3-rpcclient: add LSA querysecret command.

Guenther

14 years agos3-rpcclient: add LSA deletesecret command.
Günther Deschner [Fri, 17 Jul 2009 09:58:10 +0000 (11:58 +0200)]
s3-rpcclient: add LSA deletesecret command.

Guenther

14 years agos3-rpcclient: add LSA createsecret command.
Günther Deschner [Fri, 17 Jul 2009 09:54:49 +0000 (11:54 +0200)]
s3-rpcclient: add LSA createsecret command.

Guenther

14 years agolsa: fill in lsa_StorePrivateData and lsa_RetrievePrivateData and rerun make samba3...
Günther Deschner [Fri, 17 Jul 2009 11:09:26 +0000 (13:09 +0200)]
lsa: fill in lsa_StorePrivateData and lsa_RetrievePrivateData and rerun make samba3-idl.

Guenther

14 years agos3: compile warning and upn handling
Bo Yang [Sat, 18 Jul 2009 02:46:11 +0000 (10:46 +0800)]
s3: compile warning and upn handling

Signed-off-by: Bo Yang <boyang@samba.org>
14 years agos3: don't do this, upper callbacks will check it
Bo Yang [Sat, 18 Jul 2009 00:03:57 +0000 (08:03 +0800)]
s3: don't do this, upper callbacks will check it

Signed-off-by: Bo Yang <boyang@samba.org>
14 years agos3: Fix crsh in net usershare list
Bo Yang [Sat, 18 Jul 2009 00:01:56 +0000 (08:01 +0800)]
s3: Fix crsh in net usershare list

Signed-off-by: Bo Yang <boyang@samba.org>
14 years agoMore conversions of NULL -> talloc_autofree_context()
Jeremy Allison [Fri, 17 Jul 2009 01:28:58 +0000 (18:28 -0700)]
More conversions of NULL -> talloc_autofree_context()
so we at least know when we're using a long-lived context.
Jeremy.

14 years agoReplace more long-lived contexts with talloc_autofree_context().
Jeremy Allison [Fri, 17 Jul 2009 01:14:56 +0000 (18:14 -0700)]
Replace more long-lived contexts with talloc_autofree_context().
Jeremy.

14 years agoReplace short-lived NULL talloc contexts with talloc_tos().
Jeremy Allison [Fri, 17 Jul 2009 01:13:46 +0000 (18:13 -0700)]
Replace short-lived NULL talloc contexts with talloc_tos().
Jeremy.

14 years agoRemove an unused talloc context.
Jeremy Allison [Fri, 17 Jul 2009 01:12:17 +0000 (18:12 -0700)]
Remove an unused talloc context.
Jeremy.

14 years agoRevert "s4:heimdal_build: predefine GSSAPI_DEPRECATED depending on the compiler version"
Andrew Bartlett [Thu, 16 Jul 2009 22:39:51 +0000 (08:39 +1000)]
Revert "s4:heimdal_build: predefine GSSAPI_DEPRECATED depending on the compiler version"

This is now handled correctly in the newly imported Heimdal

This reverts commit 4a754d029b0eb229b23980aa4a80dae2b485a302.

14 years agos4:heimdal: import lorikeet-heimdal-200907162216 (commit d09910d6803aad96b52ee626327e...
Andrew Bartlett [Thu, 16 Jul 2009 22:29:03 +0000 (08:29 +1000)]
s4:heimdal: import lorikeet-heimdal-200907162216 (commit d09910d6803aad96b52ee626327ee55b14ea0de8)

This includes in particular changes to the KDC to resolve bug 6272,
originally by Matthieu Patou <mat+Informatique.Samba@matws.net>.  We
need to sort the AuthorizationData elements to put the PAC first, or
else WinXP breaks when browsed from Win2k8.

Andrew Bartlett