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

1767 Commits

Author SHA1 Message Date
Stefan Metzmacher
196a5d0388 s3:signing: the seqnum should only be decremented by 1 for ntcancel requests
[MS-SMB] 3.3.5.1 Receiving Any Message says that the seqnum
is incremented by only for ntcancel requests for any other
request it's by incremented by 2, even if it doesn't expect
a response.

metze
2009-03-06 16:37:20 +01:00
Günther Deschner
8614ce5ca7 s3-spoolss: remove old _spoolss_EnumForms.
Guenther
2009-03-06 14:32:46 +01:00
Günther Deschner
f9bf09e255 s3-spoolss: use pidl for _spoolss_EnumForms.
Guenther
2009-03-06 14:32:15 +01:00
Günther Deschner
9bdca59fc5 s3-spoolss: remove old rpccli_spoolss_enumforms.
Guenther
2009-03-06 14:30:26 +01:00
Günther Deschner
c14a589a46 s3-spoolss: add convencience wrapper around rpccli_spoolss_EnumForms.
Guenther
2009-03-06 14:30:02 +01:00
Jeremy Allison
0d9f4a2886 Last part of fix for #6154 - zfs does not honor admin users.
Jeremy.
2009-03-05 15:18:18 -08:00
Tim Prouty
f61f169054 s3: Change open_streams_for_delete to call through the vfs layer
This eliminates the last direct caller of create_file_unixpath
2009-03-04 18:32:12 -08:00
Stefan Metzmacher
b00204a461 lib/util: remove samba specific talloc_get_type_abort()
metze
2009-03-03 18:07:33 +01:00
Jelmer Vernooij
9551ab8f7b Merge branch 'master' of git://git.samba.org/samba into convenience 2009-03-01 22:25:57 +01:00
Jelmer Vernooij
7ab8f373c8 Use common header file for character set handling in Samba 3 and Samba 4. 2009-03-01 22:24:34 +01:00
Jelmer Vernooij
8568b4fa9f Add header files for secace and secacl. 2009-03-01 20:06:55 +01:00
Jelmer Vernooij
94069bd274 s4: Use same function signature for convert_* as s3. 2009-03-01 19:55:46 +01:00
Jelmer Vernooij
9f6e2d6485 Sync smb_iconv_t type, convert_string return type with Samba 3 equivalents. 2009-03-01 12:59:58 +01:00
Günther Deschner
f343ed7319 s3-spoolss: remove old rpccli_spoolss_getjob.
Guenther
2009-02-26 22:02:19 +01:00
Günther Deschner
0445c554d1 s3-spoolss: add rpccli_spoolss_getjob convenience wrapper.
Guenther
2009-02-26 22:02:18 +01:00
Jeremy Allison
3121249243 Make us pass the RAW-RENAME torture test I just added.
Inside a directory, keep a file open and then renaming
the directory should fail with ACCESS_DENIED.

Jeremy.
2009-02-26 11:42:23 -08:00
Michael Adam
97508eefb7 s3:registry: add a delete_subkey method to the backend ops.
This is to provide a more atomic means of deleting a subkey of a key.

Michael
2009-02-26 13:22:55 +01:00
Michael Adam
602bfeb360 s3:registry: add a create_subkey method to the backend ops.
This is to provide a more atomic means of adding a subkey of a key.

Michael
2009-02-26 13:22:54 +01:00
Michael Adam
0b22f8b99c s3:registry: hash the list of subkeys in the regsubkey_ctr
This removes many loops over all the arrays
(from regsubkey_ctr_key_exists) and thus
reduces "net conf drop" from 1m55 to 48seconds
and "net conf import" from 1m55 to 58 seconds
for 2000 shares on my box.

Michael
2009-02-26 13:22:54 +01:00
Michael Adam
cd8bfd3a84 s3:registry: add regsubkey_ctr_get_seqnum() to hide implementation
Michael
2009-02-26 13:22:52 +01:00
Michael Adam
63ed47c9e4 s3:registry: add regsubkey_ctr_set_seqnum to hide implementation from caller.
Michael
2009-02-26 13:22:52 +01:00
Michael Adam
763f41f39c s3:registry: add a regsubkey_ctr_init function for allocating a regsubkey_ctr
Michael
2009-02-26 13:22:51 +01:00
Michael Adam
58fc61217d s3:registry: replace typedef "REGSUBKEY_CTR" by "struct regsubkey_ctr"
This paves the way for hiding the typedef and the implementation from the
surface.

Michael
2009-02-26 13:22:51 +01:00
Volker Lendecke
a777b4d501 Convert open_socket_out to tevent_req 2009-02-26 13:04:34 +01:00
Michael Adam
ba0e944c46 s3:registry: provide transaction_start|commit|cancel fns for the registry tdb
Michael
2009-02-26 11:05:22 +01:00
Volker Lendecke
5bab95b583 Fix a missing prototype 2009-02-25 13:04:19 +01:00
Günther Deschner
59e90d3715 s3-spoolss: remove rpccli_spoolss_getprinter.
Guenther
2009-02-25 11:16:30 +01:00
Günther Deschner
c03f207276 s3-spoolss: remove rpccli_spoolss_setprinter.
Guenther
2009-02-25 11:16:29 +01:00
Günther Deschner
c7ba20b465 s3-spoolss: remove rpccli_spoolss_addprinterex.
Guenther
2009-02-25 11:16:29 +01:00
Günther Deschner
6366084c4a s3-spoolss: add rpccli_spoolss_getprinter convenience wrapper.
Guenther
2009-02-25 11:16:28 +01:00
Günther Deschner
9d165fa5c6 s3-spoolss: add rpccli_spoolss_addprinterex convenience wrapper.
Guenther
2009-02-25 10:32:09 +01:00
Günther Deschner
b3d53e2ce6 s3-spoolss: remove some left-over hand marshalling code and structs.
Guenther
2009-02-25 00:32:11 +01:00
Günther Deschner
b2e038ef8b s3-spoolss: remove rpccli_spoolss_addprinterdriver.
Guenther
2009-02-24 23:57:52 +01:00
Günther Deschner
3777978eb4 s3-rpcclient: use rpccli_spoolss_AddPrinterDriver.
Guenther
2009-02-24 23:57:51 +01:00
Günther Deschner
5ffa03dcd8 s3-spoolss: remove old rpccli_spoolss_getprinterdriver wrapper.
Guenther
2009-02-24 22:40:51 +01:00
Günther Deschner
e4e1b1a0bb s3-spoolss: add rpccli_spoolss_getprinterdriver2 convenience wrapper.
Guenther
2009-02-24 22:40:51 +01:00
Volker Lendecke
202a31d96d Remove read_pkt 2009-02-24 20:40:48 +01:00
Volker Lendecke
dbc79381a8 Convert name_mangle() to use talloc 2009-02-24 20:40:46 +01:00
Günther Deschner
f21ae452a0 s3-lib: add marshall_sec_desc_buf and unmarshall_sec_desc_buf helpers.
Guenther
2009-02-24 12:41:20 +01:00
Steven Danneman
8d63c596a0 Refactored sys_fork() and sys_pid() into shared util library
This fixes a bug in 116ce19b, where we didn't clear the pid cache in
become_daemon() and thus the /var/run/smbd.pid didn't match the actual
pid of the parent process.

Currently S4 will clear the pid cache on fork but doesn't yet take
advantage of the pid cache by using sys_pid() instead of the direct
get_pid().
2009-02-23 21:17:12 -08:00
Günther Deschner
fda0158c14 s3-spoolss: remove cli_spoolss_notify.c completly.
All of the spoolss change notify code uses pidl generated functions now.

Guenther
2009-02-23 16:40:52 +01:00
Günther Deschner
2234984fd0 s3-spoolss: remove old spoolss_RemoteFindFirstPrinterChangeNotifyEx.
Guenther
2009-02-23 16:26:11 +01:00
Günther Deschner
fc703a1492 s3-spoolss: remove SPOOL_NOTIFY_INFO_DATA and SPOOL_NOTIFY_INFO alltogether.
Guenther
2009-02-23 16:26:11 +01:00
Günther Deschner
0295008a87 s3-spoolss: remove old spoolss_RouterReplyPrinterEx.
Guenther
2009-02-23 16:26:00 +01:00
Günther Deschner
ce8ca0e68a s3-spoolss: remove old spoolss_RouterRefreshPrinterChangeNotify.
Guenther
2009-02-23 16:20:12 +01:00
Günther Deschner
418691c2e7 s3-spoolss: use more idl types in spoolss server.
Guenther
2009-02-23 16:17:36 +01:00
Günther Deschner
03a15f2381 s3-spoolss: use struct spoolss_Notify instead of SPOOL_NOTIFY_INFO_DATA.
Guenther
2009-02-23 16:17:34 +01:00
Tim Prouty
1ff9696306 Revert "s3 auth: Add parameter that forces every user through an NSS lookup"
After the discussion on samba-technical, it was decided that the best
answer for now was to revert this change.  The right way to do this is
to rewrite the token api to use opaque tokens with pluggable modules.

This reverts commit 8e19a28805.
2009-02-21 14:00:14 -08:00
Steven Danneman
116ce19b10 Moved become_daemon() and close_low_fds() to shared util lib 2009-02-20 16:30:12 -08:00
Steven Danneman
b329ea1cf3 s3: Modifications to generic notify structures to allow implementation of OneFS notify.
The OneFS kernel based change notify system takes an fd of the directory
to watch in it's initialization syscall.  Since we already have this
directory open, this commit plumbs that fd down to the VFS layer via the
notify_entry struct.

We also need to know if the watch is taken out on a snapshot directory.
The full file_id struct is also passed down to make this determination.
The file_id marshalling wrappers are hand written here, but should
eventually be auto-generated by moving the struct file_id into the idl.
2009-02-20 14:10:30 -08:00
Tim Prouty
e4675ce8db s3: Add extid to the dev/inode pair
This extends the file_id struct to add an additional generic uint64_t
field: extid.  For backwards compatibility with dev/inodes stored in
xattr_tdbs and acl_tdbs, the ext id is ignored for these databases.
This patch should cause no functional change on systems that don't use
SMB_VFS_FILE_ID_CREATE to set the extid.

Existing code that uses the smb_share_mode library will need to be
updated to be compatibile with the new extid.
2009-02-19 20:58:26 -08:00
Tim Prouty
6fbebb5369 s3: Modify SMB_VFS_FILE_ID_CREATE to take a stat struct
Since file_id_create_dev is incompatible with the concept of file_ids,
it is now static and in the one file that needs it.
2009-02-19 20:58:01 -08:00
Günther Deschner
38fde6d5d9 s3-spoolss: remove old spoolss_AddPrinterDriver{Ex}.
Guenther
2009-02-19 19:26:54 +01:00
Günther Deschner
0470feeb7f s3-spoolss: use pidl for _spoolss_AddPrinterDriver{Ex}.
Guenther
2009-02-19 19:26:44 +01:00
Günther Deschner
c71fa39c29 s3-spoolss: remove old spoolss_GetPrintProcessorDirectory.
Guenther
2009-02-19 19:23:51 +01:00
Günther Deschner
286ec6847b s3-spoolss: use pidl for _spoolss_GetPrintProcessorDirectory.
Guenther.
2009-02-19 19:21:57 +01:00
Günther Deschner
cdcd525a05 s3-spoolss: remove old spoolss_GetPrinterDriverDirectory.
Guenther
2009-02-19 02:07:58 +01:00
Günther Deschner
3b3ab50c05 s3-spoolss: use pidl for _spoolss_GetPrinterDriverDirectory.
Guenther
2009-02-19 02:06:57 +01:00
Günther Deschner
1cd34565d0 s3-spoolss: remove old spoolss_XcvData.
Guenther
2009-02-18 16:12:27 +01:00
Günther Deschner
7312342062 s3-spoolss: use pidl for _spoolss_XcvData.
Guenther
2009-02-18 16:11:01 +01:00
Günther Deschner
df17774412 s3-spoolss: remove old spoolss_ResetPrinter.
Guenther
2009-02-17 10:52:32 +01:00
Zach Loafman
8e19a28805 s3 auth: Add parameter that forces every user through an NSS lookup
When set to yes, "force username map" forces every user, even AD
users, through an NSS lookup. This allows the token to be overridden
with information from NSS in certain broken environments.
2009-02-16 00:29:21 -08:00
Volker Lendecke
913c547cf6 Rename lp_smb_perfcount_module() to lp_perfcount_module() to match the parameter name 2009-02-14 22:01:03 +01:00
Günther Deschner
cd2af58af9 s3-spoolss: use pidl for _spoolss_SetPrinter.
Guenther
2009-02-14 01:42:07 +01:00
Günther Deschner
fbcccbc410 s3-spoolss: use pidl for _spoolss_AddPrinterEx.
Guenther
2009-02-14 01:42:01 +01:00
Zack Kirsch
813273c87e Add VFS ops for Windows BRL: Lock, Unlock and Cancel:
This patch adds 3 new VFS OPs for Windows byte range locking: BRL_LOCK_WINDOWS,
BRL_UNLOCK_WINDOWS and BRL_CANCEL_WINDOWS. Specifically:

* I renamed brl_lock_windows, brl_unlock_windows and brl_lock_cancel to
  *_default as the default implementations of the VFS ops.
* The blocking_lock_record (BLR) is now passed into the brl_lock_windows and
  brl_cancel_windows paths. The Onefs implementation uses it - future
  implementations may find it useful too.
* Created brl_lock_cancel to do what brl_lock/brl_unlock do: set up a
  lock_struct and call either the Posix or Windows lock function. These happen
  to be the same for the default implementation.
* Added helper functions: increment_current_lock_count() and
  decrement_current_lock_count().
* Minor spelling correction in brl_timeout_fn: brl -> blr.
* Changed blocking_lock_cancel() to return the BLR that it has cancelled. This
  allows us to assert its the lock that we wanted to cancel. If this assert ever
  fires, this path will need to take in the BLR to cancel, rather than choosing
  on its own.
* Adds a small helper function: find_blocking_lock_record_by_id(). Used by the
  OneFS implementation, but could be useful for others.
2009-02-13 10:08:40 -08:00
Volker Lendecke
0844cca1d5 Replace get_myname() with the talloc version from v3-3-test 2009-02-13 12:15:03 +01:00
Steven Danneman
5cd4b7b7c0 s3: Added new parameter "map untrusted to domain"
When enabled this reverts smbd to the legacy domain remapping behavior when
a user provides an untrusted domain

This partially reverts d8c54fdd
2009-02-12 13:55:44 -08:00
Günther Deschner
feec49d5cd s3-spoolss: remove old spoolss_SetPrinterDataEx.
Guenther
2009-02-12 22:51:30 +01:00
Günther Deschner
41f17a1fc2 s3-spoolss: remove old spoolss_GetPrinterDataEx.
Guenther
2009-02-12 22:51:29 +01:00
Günther Deschner
75c6bbea3b s3-spoolss: add init_systemtime helper.
Guenther
2009-02-12 18:03:20 +01:00
Derrell Lipman
ae259575c4 [Bug 6069] Add a fstatvfs function for libsmbclient
- port functionality from v3_3_test to master

Derrell
2009-02-12 10:39:48 -05:00
Dan Sledz
d8c54fddda s3: Change behavior when seeing an unknown domain.
After a lot of testing against various Windows servers (W2K, W2K3, W2K8),
within an AD domain it seems that unknown domains will only be translated
to the local account domain, not the netbios name of the member server's
domain.  This makes samba act more like Windows.
2009-02-11 19:39:18 -08:00
Dan Sledz
3b8a57e064 s3: Implement wbcGetSidAliases
* Adds wbcGetSidAliases that calls the lookup_useraliases function.
* Updates wbinfo and winbind_util.c to call the new function.
* Also added winbind_get_groups helper function.
2009-02-11 19:39:18 -08:00
Dan Sledz
aed8e9aa0a s3: Implement wbcGetpwsid
* Adds the plumbing required to lookup users by sid into winbind, wbinfo
  and smbd helper lib (winbind_util.c).
* Removes some double declarations of winbind_util.c functions.
* Bumps the winbind protocol version to 21 and the minor version of
  wbclient to 3.
2009-02-11 19:39:15 -08:00
Günther Deschner
fd8e8d5e58 s3-spoolss: remove old spoolss_ReplyOpenPrinter.
Guenther
2009-02-10 23:57:30 +01:00
Volker Lendecke
47cb572d40 Add read_pkt_send/recv 2009-02-10 18:29:34 +01:00
Günther Deschner
cab2de7bb0 s3-spoolss: remove old spoolss_OpenPrinter.
Guenther
2009-02-10 11:27:04 +01:00
Günther Deschner
3d4221a9cb s3-spoolss: remove old spoolss_OpenPrinterEx.
Guenther
2009-02-10 11:26:52 +01:00
Günther Deschner
0fc13e7e2c s3-spoolss: remove old spoolss_SetJob.
Guenther
2009-02-10 11:26:39 +01:00
Günther Deschner
2ede56f3c0 s3-spoolss: remove old spoolss_StartDocPrinter.
Guenther
2009-02-10 11:26:26 +01:00
Günther Deschner
b19b6aea12 s3-rpcclient: add rpccli_spoolss_openprinter_ex() convenience wrapper.
Guenther
2009-02-10 11:04:53 +01:00
Steven Danneman
6272f4c2f4 s3: Added SMB_VFS_INIT_SEARCH_OP to initialize data at the beginning of SMB search requests.
By default this VFS call is a NOOP, but the onefs vfs module takes advantage
of it to initialize direntry search caches at the beginning of each
TRANS2_FIND_FIRST, TRANS2_FIND_NEXT, SMBffirst, SMBsearch, and SMBunique
2009-02-09 23:56:17 -08:00
Steven Danneman
25d345eb39 Pass stat buffer down through all levels of VFS_READDIR wrappers
* VFS_OP_READDIR can now provide stat information, take advantage of it
  if it's available
* is_visible_file(): optimistically expect the provided stat buffer is
  already valid
* dptr_ReadDirName(): refactor code for easier readability, functionality
  is the same
2009-02-09 23:56:16 -08:00
Tim Prouty
16d2c2fa58 s3 OneFS: Add kernel oplocks implementation
A few functions in oplocks_onefs.c need to be accessed from the onefs
vfs module.  It would be ideal if oplocks were implemented at the vfs
layer, but since they aren't yet, a new header is added to
source3/include to make these functions available to the onefs vfs
module.  oplocks_onefs.o doesn't need to be linked into the onefs vfs
module explicitly, since it is already linked into smbd by default.
2009-02-09 23:47:45 -08:00
Tim Prouty
17eba16bad s3 oplocks: Add capabilites flags field to the kernel_oplocks struct
Here is a short description for each of the new capability flags:

KOPLOCKS_LEVEL2_SUPPORTED: Level 2 oplocks are supported natively in
the kernel.

KOPLOCKS_DEFERRED_OPEN_NOTIFICATION: The kernel notifies deferred
openers when they can retry the open.

KOPLOCKS_TIMEOUT_NOTIFICATION: The kernel notifies smbds when an
oplock break times out.

KOPLOCKS_OPLOCK_BROKEN_NOTIFICATION: The kernel notifies smbds when an
oplock is broken.
2009-02-09 23:47:45 -08:00
Tim Prouty
c6f1f055fd s3 oplocks: Make the level2 oplock contention API more granular
This replaces release_level2_oplocks_on_change with
contend_level2_oplock_begin/end in order to contend level2 oplocks
throughout an operation rather than just at the begining.  This is
necessary for some kernel oplock implementations, and also lays the
groundwork for better correctness in Samba's standard level2 oplock
handling.  The next step for non-kernel oplocks is to add additional
state to the share mode lock struct that prevents any new opens from
granting oplocks while a contending operation is in progress.

All operations that contend level 2 oplocks are now correctly spanned
except for aio and synchronous writes.  The two write paths both have
non-trivial error paths that need extra care to get right.

RAW-OPLOCK and the rest of 'make test' are still passing with this
change.
2009-02-09 23:47:45 -08:00
Tim Prouty
122dbbf00a s3 vfs: Add a destructor to the fsp extension data API
I'm not certain if the dummy pointer is needed in struct vfs_fsp_data,
but I added it to be consistent with the comment below.
2009-02-09 23:46:12 -08:00
Günther Deschner
73c603562f s3-spoolss: remove old spoolss_ScheduleJob.
Guenther
2009-02-09 22:49:10 +01:00
Günther Deschner
43463fcc1e s3-spoolss: remove old spoolss_AddJob.
Guenther
2009-02-09 22:48:07 +01:00
todd stecher
54c51a66e3 S3: New module interface for SMB message statistics gathering
This changelist allows for the addition of custom performance
monitoring modules through smb.conf. Entrypoints in the main message
processing code have been added to capture the command, subop, ioctl,
identity and message size statistics.
2009-02-09 13:23:44 -08:00
Günther Deschner
a734c85c28 s3-spoolss: remove old rpccli_spoolss_routerreplyprinter.
Guenther
2009-02-09 19:12:27 +01:00
Günther Deschner
3b4bf2f8a9 s3-spoolss: remove old spoolss_ReplyClosePrinter.
Guenther
2009-02-09 19:10:37 +01:00
Günther Deschner
d87891ea3e s3-spoolss: remove old spoolss_AddPrintProcessor.
Guenther
2009-02-09 19:09:09 +01:00
Günther Deschner
d78fd19547 s3-spoolss: remove old _spoolss_FindClosePrinterNotify.
Guenther
2009-02-09 13:03:23 +01:00
Günther Deschner
03ae7fc134 s3-spoolss: remove old _spoolss_DeletePrinterDriverEx.
Guenther
2009-02-09 12:34:04 +01:00
Günther Deschner
763fe063d2 s3-spoolss: remove old spoolss_DeletePrinterDriver.
Guenther
2009-02-09 12:34:03 +01:00
Günther Deschner
8b5729f31c s3-spoolss: remove old _spoolss_DeletePrinterKey.
Guenther
2009-02-09 12:34:02 +01:00
Günther Deschner
bed65d86ac s3-spoolss: remove old _spoolss_DeletePrinterData.
Guenther
2009-02-09 12:34:02 +01:00
Günther Deschner
fe6d62fb9f s3-spoolss: remove old _spoolss_DeletePrinterDataEx.
Guenther
2009-02-09 12:34:01 +01:00
Günther Deschner
8cc60bf978 s3-spoolss: remove old _spoolss_GetForm.
Guenther
2009-02-09 10:43:15 +01:00
Günther Deschner
894d05bc41 s3-spoolss: restore delete_a_form().
Guenther
2009-02-09 10:42:46 +01:00
Günther Deschner
c0e3b195c8 s3-spoolss: remove old _spoolss_SetForm.
Guenther
2009-02-09 10:42:39 +01:00
Günther Deschner
9ef58a9196 s3-spoolss: use pidl for _spoolss_SetForm.
Guenther
2009-02-09 10:42:33 +01:00
Günther Deschner
fac7ed3df1 s3-spoolss: remove old spoolss_AddForm.
Guenther
2009-02-09 10:42:19 +01:00
Günther Deschner
3a1f9411e5 s3-spoolss: use pidl for spoolss_AddForm.
Guenther
2009-02-09 10:42:12 +01:00
Kai Blin
c3b9b6c8aa async_sock: Use unix errnos instead of NTSTATUS
This also switches wb_reqtrans to use wbcErr instead of NTSTATUS as it would
be pointless to convert to errno first and to wbcErr later.
2009-02-09 08:36:08 +01:00
Günther Deschner
3d6860018f s3-spoolss: remove old _spoolss_WritePrinter.
Guenther
2009-02-07 10:20:56 +01:00
Günther Deschner
04c971dc6c s3-spoolss: remove old _spoolss_DeleteForm.
Guenther
2009-02-07 01:52:29 +01:00
Günther Deschner
b56c5bf510 s3-spoolss: rework some form functions and add form_by_string functions.
Guenther
2009-02-07 01:52:28 +01:00
Günther Deschner
b8cd20cd5c s3-spoolss: use rpccli_spoolss_DeleteForm.
Guenther
2009-02-07 01:52:28 +01:00
Günther Deschner
100aad0ddf s3-spoolss: remove old _spoolss_EndDocPrinter.
Guenther
2009-02-06 21:41:23 +01:00
Günther Deschner
2a5ae9e47b s3-spoolss: remove old _spoolss_AbortPrinter.
Guenther
2009-02-06 21:40:43 +01:00
Günther Deschner
eb542ef630 s3-spoolss: remove old _spoolss_EndPagePrinter.
Guenther
2009-02-06 21:39:56 +01:00
Günther Deschner
f8582f18ec s3-spoolss: remove old _spoolss_StartPagePrinter.
Guenther
2009-02-06 21:39:08 +01:00
Günther Deschner
69577cacfe s3-spoolss: remove old _spoolss_DeletePrinter.
Guenther
2009-02-06 21:30:49 +01:00
Günther Deschner
88f09a8353 s3-spoolss: remove old _spoolss_ClosePrinter.
Guenther
2009-02-06 18:59:06 +01:00
Günther Deschner
e11fa4cc33 s3-spoolss: prepare to use generated spoolss.
Guenther
2009-02-06 18:54:51 +01:00
Karolin Seeger
3f9daf434a s3/libads: Change "ldap ssl:ads" parameter to "ldap ssl ads".
Karolin
2009-02-05 15:55:14 +01:00
Günther Deschner
e28a806a6b s3-parsing: remove a lot of unused structures and their hand marshalling.
Guenther
2009-02-05 00:48:50 +01:00
Günther Deschner
8450e6677b s3-eventlog: w00t! remove last traces of old eventlog rpc marshalling.
spoolss, I'm coming!

Guenther
2009-02-04 22:51:47 +01:00
Günther Deschner
a63d4c5ed1 s3-eventlog: remove old eventlog server.
Guenther
2009-02-04 22:51:39 +01:00
Günther Deschner
d7e2384dba s3-eventlog: remove fixup_eventlog_entry.
Guenther
2009-02-04 22:51:31 +01:00
Günther Deschner
8b126e942d s3-eventlog: remove write_eventlog_tdb.
Guenther
2009-02-04 22:51:23 +01:00
Günther Deschner
7ade5cf776 s3-eventlog: remove old hand marshalling for eventlog read call.
Guenther
2009-02-04 22:50:52 +01:00
Günther Deschner
64e3a90530 s3-eventlog: make can_write_to_eventlog static.
Guenther
2009-02-04 22:49:51 +01:00
Günther Deschner
63a992168d s3-eventlog: add evlog_push_record function.
Guenther
2009-02-04 21:12:05 +01:00
Günther Deschner
1b71fa5c59 s3-eventlog: add evlog_pull_record function.
Guenther
2009-02-04 21:11:52 +01:00
Günther Deschner
65200328ee s3-eventlog: add evlog_tdb_entry_to_evt_entry.
Guenther
2009-02-04 18:39:20 +01:00
Günther Deschner
df5e231a6f s3-eventlog: add evlog_evt_entry_to_tdb_entry.
Guenther
2009-02-04 18:39:20 +01:00
Günther Deschner
de7f0a70c8 s3-eventlogadm: use struct eventlog_Record_tdb for storing entries in tdbs.
Guenther
2009-02-04 17:47:07 +01:00
Günther Deschner
16f83ae750 s3-eventlog: add fixup_eventlog_record_tdb.
Guenther
2009-02-04 17:47:06 +01:00
Günther Deschner
dd306249f2 s3-eventlog: add evlog_push_record_tdb function.
This is almost a copy of write_eventlog_tdb() and still needs to be modified
to use tdb transactions.

Guenther
2009-02-04 17:46:55 +01:00
Günther Deschner
cf3be5ce7a s3-eventlog: add evlog_pull_record_tdb function.
Guenther
2009-02-03 16:06:57 +01:00
Günther Deschner
b94946697d s3-eventlog: pass down talloc context to parse_logentry().
Guenther
2009-02-03 15:45:09 +01:00
Günther Deschner
4976777e3b s3-eventlog: make logname in elog_open_tdb const.
Guenther
2009-02-03 15:44:20 +01:00
Günther Deschner
8fb6b18bac s3-eventlog: allow to open eventlog tdbs readonly.
Guenther
2009-02-03 15:44:06 +01:00
Kai Blin
6ed02233c3 s3-wbclient: Use new tevent data types 2009-02-02 22:14:57 +01:00
Dan Sledz
d96248a9b4 Add two new parameters to control how we verify kerberos tickets. Removes lp_use_kerberos_keytab parameter.
The first is "kerberos method" and replaces the "use kerberos keytab"
with an enum.  Valid options are:
secrets only - use only the secrets for ticket verification (default)
system keytab - use only the system keytab for ticket verification
dedicated keytab - use a dedicated keytab for ticket verification.
secrets and keytab - use the secrets.tdb first, then the system keytab

For existing installs:
"use kerberos keytab = yes" corresponds to secrets and keytab
"use kerberos keytab = no" corresponds to secrets only

The major difference between "system keytab" and "dedicated keytab" is
that the latter method relies on kerberos to find the correct keytab
entry instead of filtering based on expected principals.

The second parameter is "dedicated keytab file", which is the keytab
to use when in "dedicated keytab" mode.  This keytab is only used in
ads_verify_ticket.
2009-02-01 20:23:31 -08:00
Volker Lendecke
53394980ad Replace pipe names in pipes_struct by ndr_syntax_id
This was mainly used for debugging output
2009-02-01 14:34:23 +01:00
Volker Lendecke
57de60a83f cli_get_pipe_name_from_interface does not really need a talloc_ctx 2009-02-01 14:34:22 +01:00
Volker Lendecke
fa7ddc78b8 Remove unused np_read sync wrapper 2009-01-31 17:50:18 +01:00
Volker Lendecke
8b480b52ce Remove unused np_write sync wrapper 2009-01-31 17:50:18 +01:00
Volker Lendecke
b797c056a6 Add an async np_read wrapper 2009-01-31 17:50:18 +01:00
Volker Lendecke
e60d69d67d Add an async np_write wrapper 2009-01-31 17:50:18 +01:00
Volker Lendecke
cee0d85e0b make send_file_readbraw static 2009-01-31 11:09:39 +01:00
Volker Lendecke
d94e9c802c Remove the global variable "chain_size" 2009-01-31 11:09:39 +01:00
Volker Lendecke
b99859b948 Make is_andx_req non-static 2009-01-31 11:09:39 +01:00
Volker Lendecke
22e3004829 Add the "SMBD" rpc transport
The idea of this is that all client utils like smbpasswd and also for example
"net join" do not access our internal databases like passdb and secrets.tdb
directly anymore but pass everything throught the well-established RPC
interfaces.

The way you use this is the following: With rpc_cli_smbd_conn_init() or its
async variant you initialize a "struct rpc_cli_smbd_conn". This structure is
the link to a freshly forked smbd, ready to be used for RPC services. You
should only ever have one such structure in your program. More don't hurt, but
are plainly unnecessary.

If you want to use the SAMR pipe to change a passwort, you connect to that pipe
with rpc_pipe_open_local. Do you normal rpccli_samr calls on that and your
locally forked smbd will connect to passdb for you.

GD, this might make the distinction between the _l and _r calls in libnetapi
mostly unnecessary. At least it is intended to do so... :-)
2009-01-30 12:48:00 +01:00
Volker Lendecke
b873ede89d Make rpc_transport_np_init async 2009-01-30 12:47:59 +01:00
Volker Lendecke
a0d52e7d54 Add async cli_ntcreate 2009-01-30 12:47:59 +01:00
Volker Lendecke
0bd92281e4 Make cli_tcon_andx async 2009-01-30 12:47:59 +01:00
Volker Lendecke
7b934c6af3 Make cli_session_setup_guest async 2009-01-30 12:47:59 +01:00
Tim Prouty
d1ab1b6482 s3 build: Fix "shadows global declaration warning" 2009-01-29 15:29:34 -08:00
Tim Prouty
b8f7cdbd79 s3: Add a new SMB_VFS_GET_ALLOC_SIZE vfs operation
This allows module implementors to customize what allocation size is
returned to the client.
2009-01-29 15:29:33 -08:00
Michael Adam
aeb23872e2 s3:proto.h: remove duplicate prototypes.
Michael
2009-01-30 00:17:58 +01:00
Volker Lendecke
37da26a06e Add the strlen to push to smb_bytes_push_str, return the converted size
The pushed strlen replaces the STR_TERMINATE flag which I personally always
find very confusing.
2009-01-29 21:38:06 +01:00
Volker Lendecke
89caa0e86b cli_ucs2 2009-01-29 21:38:06 +01:00
Stefan Metzmacher
bf2347bd7d s3:smbd: make mdns registration event driven.
metze
2009-01-27 15:28:11 +01:00
Stefan Metzmacher
52f6a4436f s3:smbd: make kernel oplocks event driven
And use signal events for Linux oplocks.

metze
2009-01-27 15:28:10 +01:00
Stefan Metzmacher
4a22713495 s3:smbd: remove pointless respond_to_all_remaining_local_messages() function
This the process_kernel_oplock() function never response to messages,
it only generates messages to ourself.

metze
2009-01-27 15:28:10 +01:00
Stefan Metzmacher
b8c416fe2a s3:smbd: convert aio to use tevent_signal
metze
2009-01-27 15:28:09 +01:00
Stefan Metzmacher
ac61f650ae s3:smbd: use signal events for SIGTERM, SIGHUP and SIGCHLD
metze
2009-01-27 15:28:07 +01:00
Stefan Metzmacher
7d93d3d4b8 s3:namecache: remove unused namecache_shutdown() function
metze
2009-01-27 15:28:06 +01:00
Volker Lendecke
7f25e0da73 Decouple clistr_pull from struct cli_state->inbuf 2009-01-26 05:39:34 +01:00
todd stecher
48b0016cff Extend NTIMES to allow setting create_time
1) Add in smb_file_time struct to clarify code and make room for createtime.
2) Get and set create time from SMB messages.
3) Fixup existing VFS modules + examples Some OS'es allow for the
setting of the birthtime through kernel interfaces. This value is
generically used for Windows createtime, but is not settable in the
code today.
2009-01-23 21:05:38 -08:00
Volker Lendecke
b7bd71b349 Add the socket rpc client transport 2009-01-22 22:59:54 +01:00
Volker Lendecke
c5b4371054 Add the named pipe rpc client transport 2009-01-22 22:59:53 +01:00
Tim Prouty
8e2b48e1b7 s3: Fix warning 2009-01-22 13:14:04 -08:00
Stefan Metzmacher
c5e242b1a3 s3:printing: make some functions static and use tevent functions
metze
2009-01-22 12:37:33 +01:00
Stefan Metzmacher
196028ab7b s3:smbd: restructure kernel oplocks code
This converts the irix oplocks code to use a fd event
and removes the last special case for file descriptors
for the main sys_select().

metze
2009-01-22 12:37:29 +01:00
Volker Lendecke
3662c2b0f6 cli_get_pipe_name_from_iface does not need the cli_state
I leave the TALLOC_CTX in, we might have to allocate it in the future
2009-01-22 11:38:00 +01:00
todd stecher
989ad44d32 Memory leaks and other fixes found by Coverity 2009-01-21 17:13:03 -08:00
Jelmer Vernooij
11a25f9050 Allow calling DCE/RPC server implementations directly using
rpc_pipe_client.
2009-01-21 14:05:51 +01:00
Volker Lendecke
55dfad40af "userdom_struct" does not need "full_name" anymore -- unused 2009-01-20 23:10:16 +01:00
Volker Lendecke
520f88143b Remove some unused code 2009-01-20 16:41:32 +01:00
Volker Lendecke
b8b6cddb29 Remove some smb fsp knowledge from rpc_server/
np_open/read/write don't have to know about files_struct
2009-01-20 16:41:14 +01:00
Volker Lendecke
28c35b4c04 Make rpc_pipe_bind async 2009-01-18 15:40:45 +01:00
Volker Lendecke
396ed3b363 Add async rpc_api_pipe_req 2009-01-18 15:40:45 +01:00
Volker Lendecke
5e6f3eaae9 Move initialization of the reply prs_struct to rpc_api_pipe 2009-01-18 15:40:44 +01:00
Volker Lendecke
ddaa65ef6e Correctly calculate the offset for read&x 2009-01-16 13:00:44 +01:00
Jeremy Allison
907f085296 Remove smbclient globals that bled into clidfs.c. Now we only have
the connections list and authentication structures to worry about.
Jeremy
2009-01-14 16:08:19 -08:00
Jeremy Allison
2c0a802cf8 Remove another global from clidfs that is only used in client.c.
Jeremy.
2009-01-14 14:26:56 -08:00
Steven Danneman
19a05bf2f4 Make STATEDIR and CACHEDIR configurable through ./configure and loadparm.c
If they are not explicitely set in either place both will default to LOCKDIR.

Signed-off-by: Michael Adam <obnox@samba.org>
2009-01-12 12:16:03 +01:00
Volker Lendecke
ce5eded7e0 Move cli_api_pipe() to its only user cli_pipe.c 2009-01-11 22:53:24 +01:00
Volker Lendecke
125696b73d Pass the full ndr_interface_table into the s3 rpcserver when registering 2009-01-09 23:17:57 +01:00
Volker Lendecke
f8f878285d Add derpc_transport_string_by_transport(), apply some const 2009-01-09 23:08:16 +01:00
Tim Prouty
6dde84553c s3: Add delete_all_streams to proto.h 2009-01-09 11:45:31 -08:00
Günther Deschner
22a96cbe31 s3-svcctl: remove last traces of hand-marshalled svcctl code.
Guenther
2009-01-09 17:08:19 +01:00
Günther Deschner
03611c6c9d s3-svcctl: remove old marshalling of svcctl_EnumServicesStatusW.
Guenther
2009-01-09 17:08:18 +01:00
Volker Lendecke
84292022bf Now that all policy_handle free_fn's are just TALLOC_FREE, dump free_fn 2009-01-08 22:29:54 +01:00
Stefan Metzmacher
7f2cf6b166 s3:smbd: make mangle_fns const
metze
2009-01-08 12:22:17 +01:00
Günther Deschner
07e1e30b96 s3-svcctl: remove old hand marshalling of svcctl_QueryServiceConfig2W.
Guenther
2009-01-08 11:19:34 +01:00
Günther Deschner
385316a09a s3-svcctl: remove old hand marshalling of svcctl_QueryServiceStatusEx.
Guenther
2009-01-08 11:19:33 +01:00
Volker Lendecke
1d427dcee0 Add some const to dcerpc_binding_build_tower() 2009-01-06 21:57:01 +01:00
Volker Lendecke
e92b7abca0 Add a NULL check and some const to dcerpc_floor_get_lhs_data() 2009-01-06 21:25:18 +01:00
Günther Deschner
f93b0fcd95 s3-lsa: remove all init_lsa* functions.
Guenther
2009-01-06 16:02:13 +01:00
Günther Deschner
b0f7137883 s3-srvsvc: remove all init_srvsvc* functions.
Guenther
2009-01-06 16:02:12 +01:00
Günther Deschner
be8c532352 s3-samr: remove all init_samr_alias* functions.
Guenther
2009-01-06 16:02:12 +01:00
Günther Deschner
0b26f84542 s3-samr: remove all init_samr_group* functions.
Guenther
2009-01-06 16:02:11 +01:00