Volker Lendecke
7099a3c446
s3: Allow pdb password change using WINBINDD_PAM_CHNG_PSWD_AUTH_CRAP
2010-04-23 23:41:05 +02:00
Volker Lendecke
f43d1827f3
s3: init_dc_connection() can't init for internal domains
...
This fixes a crash in winbindd_dual_pam_chng_pswd_auth_crap when given
global_sam_name() in the domain field
2010-04-23 23:41:04 +02:00
Volker Lendecke
6eec46ec44
s3: replace some data_blob_talloc by data_blob_const
2010-04-23 23:41:04 +02:00
Volker Lendecke
f2f0fed8aa
s3: Convert WINBINDD_PAM_CHNG_PSWD_AUTH_CRAP to the new async API
2010-04-23 23:41:04 +02:00
Simo Sorce
168b86c384
s3-smbd: group print relate data in own structure
2010-04-23 14:26:33 -07:00
Jeremy Allison
2bbb8c917e
Allow smb2 create requests to be cancelled.
...
Jeremy.
2010-04-23 13:10:15 -07:00
Ira Cooper
dd20259471
Fix bug #7384 - dptr_Close has a bitmap leak.
...
s3: Fix to dptr_Close
This fixes a bitmap "leak" in dptr_Close by making it use the same internal
routines the rest of the code does.
2010-04-23 10:55:46 -07:00
Jeremy Allison
350f4e348c
At simo's request return struct tevent_req *treq -> treq. For consistency :-(.
2010-04-23 10:53:44 -07:00
Jeremy Allison
2b13a8d650
Rename - no functional change. Stop all variables being called "req".
...
tevent_req -> treq
struct smb_request -> smb1req
struct smbd_smb2_request -> smb2req
Jeremy.
2010-04-23 10:29:48 -07:00
Andreas Schneider
251cd42ed5
s3-spoolss: Added a winreg_get_printer function.
...
Signed-off-by: Günther Deschner <gd@samba.org>
2010-04-23 16:33:07 +02:00
Andreas Schneider
e15d624c0a
s3-spoolss: Added a winreg_create_printer function.
...
Signed-off-by: Günther Deschner <gd@samba.org>
2010-04-23 16:32:16 +02:00
Andreas Schneider
a61297647d
s3-spoolss: Added a winreg_update_printer function.
...
Signed-off-by: Günther Deschner <gd@samba.org>
2010-04-23 16:31:04 +02:00
Simo Sorce
8cb79bf4cd
s3-spoolss: Added a winreg_get_driver_list function.
...
Signed-off-by: Günther Deschner <gd@samba.org>
2010-04-23 16:30:57 +02:00
Simo Sorce
8db203a4a6
s3-spoolss: Added a winreg_del_driver function.
...
Signed-off-by: Günther Deschner <gd@samba.org>
2010-04-23 16:29:48 +02:00
Simo Sorce
16e0f80687
s3-spoolss: Added a winreg_get_driver function.
...
Signed-off-by: Günther Deschner <gd@samba.org>
2010-04-23 16:26:24 +02:00
Simo Sorce
a91f6f8b03
s3-spoolss: Added a winreg_add_driver function.
...
Signed-off-by: Günther Deschner <gd@samba.org>
2010-04-23 16:24:25 +02:00
Simo Sorce
8f56cdfaee
s3-spoolss: Move info_ctr conversion to a public helper.
...
Signed-off-by: Günther Deschner <gd@samba.org>
2010-04-23 16:23:49 +02:00
Andreas Schneider
94a8482261
s3-spoolss: Fixed winreg_delete_printer_key if key is NULL or emtpy.
...
Signed-off-by: Günther Deschner <gd@samba.org>
2010-04-23 16:23:49 +02:00
Simo Sorce
96a04b067e
s3-spoolss: Add date and version winreg helpers.
...
Signed-off-by: Günther Deschner <gd@samba.org>
2010-04-23 16:23:49 +02:00
Andreas Schneider
b33e877aad
s3-spoolss: Added more winreg hepler functions.
...
Signed-off-by: Günther Deschner <gd@samba.org>
2010-04-23 16:23:48 +02:00
Simo Sorce
d4f563d9d4
s3-spoolss: Added winreg helper functions
...
Signed-off-by: Günther Deschner <gd@samba.org>
2010-04-23 16:23:48 +02:00
Andreas Schneider
0ed5e36c67
s3-spoolss: Added a winreg function to query a dword.
...
Signed-off-by: Günther Deschner <gd@samba.org>
2010-04-23 16:23:47 +02:00
Andreas Schneider
e7d6742821
s3-spoolss: Added a function to get the ChangeID from a printer.
...
Signed-off-by: Günther Deschner <gd@samba.org>
2010-04-23 16:23:40 +02:00
Andreas Schneider
b04a260e4e
s3-spoolss: Added a function to update the ChangeID of a printer.
...
Signed-off-by: Günther Deschner <gd@samba.org>
2010-04-23 16:23:36 +02:00
Andreas Schneider
a18cd32a34
s3-spoolss: Added winreg helper functions to write registry values.
...
Signed-off-by: Günther Deschner <gd@samba.org>
2010-04-23 16:07:09 +02:00
Andreas Schneider
b320fad6e4
s3-spoolss: Fixed return values of winreg_printer_deleteform1.
...
Signed-off-by: Günther Deschner <gd@samba.org>
2010-04-23 16:07:04 +02:00
Andreas Schneider
012c1feda5
s3-spoolss: Added missing return value to winreg_printer_enumforms1 docs.
...
Signed-off-by: Günther Deschner <gd@samba.org>
2010-04-23 16:07:00 +02:00
Andreas Schneider
d65485b3c5
s3-spoolss: Use const values for notify functions.
...
Signed-off-by: Günther Deschner <gd@samba.org>
2010-04-23 16:06:51 +02:00
Andreas Schneider
3f1cc29814
s3-time: Added a function to get the startup time of the server.
...
Signed-off-by: Günther Deschner <gd@samba.org>
2010-04-23 16:06:42 +02:00
Günther Deschner
bb22855af5
s3-lanman: fix uninitialized variable in api_RDosPrintJobDel().
...
Guenther
2010-04-23 15:31:21 +02:00
Günther Deschner
30b1e44382
s3-selftest: enable RPC-SPOOLSS-DRIVER against s3.
...
Guenther
2010-04-23 13:52:57 +02:00
Günther Deschner
14bb3f71aa
s3-selftest: add print$ share with two arch dirs.
...
(make test variant)
Guenther
2010-04-23 13:51:33 +02:00
Günther Deschner
4b1dab5b11
s3-winbind: fix setup_domain_child() callers.
...
Volker, please check.
Guenther
2010-04-23 12:17:25 +02:00
Günther Deschner
698b7780c9
s3-spoolss: make switch in _spoolss_AddPrinterDriver() a bit more clear.
...
Guenther
2010-04-23 11:41:25 +02:00
Volker Lendecke
c82fd3ed30
s3: Fix a winbind crash when scanning trusts
...
add_trusted_domain() for a new domain always needs to be followed by a
setup_domain_child(). This was not always done, in particular not when walking
to the forest root for additional trusts.
This is a minimal patch, we need to fix add_trusted_domain().
2010-04-23 10:35:52 +02:00
Jeremy Allison
8f67f873ac
Make deferred opens (NT_STATUS_SHARING_VIOLATION) work over SMB2.
...
Makes SMB2Create call re-entrant internally.
Now this infrastructure is in place, oplocks will follow shortly.
Tested with Win7 client and with W2K8R2.
Jeremy.
2010-04-22 23:52:19 -07:00
Volker Lendecke
9cd712d1bc
s3: Fix a cut&paste error in a debug message in check_oem_password()
2010-04-23 07:07:04 +02:00
Günther Deschner
a14938377e
s3-spoolss: make sure AddPrinterDriver calls into AddPrinterDriverEx.
...
Not vice versa. Also disable some info levels in AddPrinterDriver according to
MS-RPRN 3.1.4.4.1.
Found by torture test.
Guenther
2010-04-23 03:04:47 +02:00
Günther Deschner
413ffe9adb
s3-spoolss: fix some crash bugs and missing error codes in AddDriver paths.
...
Found by torture test.
Guenther
2010-04-23 02:34:43 +02:00
Jim McDonough
61bdffbf8e
Fix i18n of net conf import error message.
...
Thanks gd
2010-04-20 17:45:06 -04:00
Jim McDonough
a22f03e02c
Display an error on net conf import failures.
...
When something goes wrong, such as a typo in a parameter
name, we'll now display the failure instead of just returning
with -1 and no message.
2010-04-20 16:28:47 -04:00
Günther Deschner
58549ab44a
s3-spoolss: fix winreg spoolss helper call documentation.
...
Guenther
2010-04-20 10:57:36 +02:00
Günther Deschner
7e4eb13ba4
s3-spoolss: avoid passing down full "struct pipes_struct".
...
Guenther
2010-04-20 10:57:36 +02:00
Jeremy Allison
60d3692918
Now SMB2 error messages are correctly being returned with the 1 byte data area, smbd_smb2_request_error_ex() must call smbd_smb2_request_done_ex() in order to do the padding correctly on compound replies.
...
Jeremy.
2010-04-19 14:35:46 -07:00
Jeremy Allison
8bf7942fa4
Ensure vectors are always allocated with consistent size. Removes one byte alloc on SMB2 error packet. Always use talloc_zero_array on out vectors - fixes valgrind errors in tevent writes.
...
Jeremy.
2010-04-19 14:35:39 -07:00
Jeremy Allison
eacf5b235d
Fix valgrind error where a strdup of name reads one byte beyond the end. Ensure buffer returned from inotify is null terminated.
...
Jeremy.
2010-04-19 14:35:33 -07:00
Jeremy Allison
cea24c4620
Remove an unused auto variable.
...
Jeremy.
2010-04-19 11:38:49 -07:00
Volker Lendecke
c293359daf
s3: Remove a leftover of my lua experiments
2010-04-19 15:25:57 +02:00
Volker Lendecke
56b4aa3266
s3: Move the in-memory ccache to the parent
...
None of this blocks, so there is no reason to keep this in
a winbind child process
2010-04-19 14:27:24 +02:00
Volker Lendecke
e0d7a84242
s3: Test for wb ccache access by smbclient
2010-04-19 14:27:24 +02:00