Günther Deschner
4bb7e91cfd
s3-netlogon: use SAMR in _netr_ServerAuthenticate3.
...
Guenther
2010-05-31 15:31:00 +02:00
Günther Deschner
db5730cac4
s3-samr: give the system user a free pass for _samr_QueryUserInfo{2} level 18.
...
Guenther
2010-05-31 15:30:59 +02:00
Günther Deschner
a7805811c4
s3-netlogon: use SAMR in _netr_ServerPasswordSet{2}.
...
Guenther
2010-05-31 15:30:59 +02:00
Andrew Bartlett
d6fa371b92
s3:ntlmssp Use a TALLOC_CTX for ntlmssp_sign_packet() and ntlmssp_seal_packet()
...
This ensures the results can't be easily left to leak.
Andrew Bartlett
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Signed-off-by: Günther Deschner <gd@samba.org>
2010-05-31 15:11:27 +02:00
Andrew Bartlett
ebae21f023
ntlmssp: Make the ntlmssp.h from source3/ a common header
...
The code is not yet in common, but I hope to fix that soon.
Andrew Bartlett
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Signed-off-by: Günther Deschner <gd@samba.org>
2010-05-31 15:10:56 +02:00
Andrew Bartlett
723ea68d3b
s3:auth Remove AUTH_NTLMSSP_STATE typedef.
...
typedefs are no longer preferred Samba style.
Andrew Bartlett
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Signed-off-by: Günther Deschner <gd@samba.org>
2010-05-31 15:10:44 +02:00
Andrew Bartlett
3b706865f6
s3:auth Make AUTH_NTLMSSP_STATE a private structure.
...
This makes it a little easier for it to writen in terms of GENSEC in future.
Andrew Bartlett
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Signed-off-by: Günther Deschner <gd@samba.org>
2010-05-31 15:10:33 +02:00
Matthias Dieter Wallnöfer
11e2608ba9
s3/s4:netrEnumerateTrustedDomains - this call returns a "NTSTATUS" result
...
See MS-NRPC 3.5.5.6.3.
2010-05-31 12:08:59 +02:00
Günther Deschner
f9f8007361
s3-build: only use ndr_security.h where needed.
...
Guenther
2010-05-31 11:32:37 +02:00
Günther Deschner
87037006bd
s3-samr: Fix crash bug in _samr_QueryUserInfo{2} level 18.
...
Guenther
2010-05-28 14:30:03 +02:00
Günther Deschner
66adb84e46
s3-build: only use ndr_samr.h where needed.
...
Guenther
2010-05-28 02:49:36 +02:00
Simo Sorce
d9cffc01be
s3:auth use info3 in auth_serversupplied_info
...
Signed-off-by: Günther Deschner <gd@samba.org>
2010-05-28 00:55:53 +02:00
Stefan Metzmacher
85a3853249
s3:rpc_server: make use of the npa_tstream code to connect to named pipes
...
This way we use the newest protocol, which is able to pass
the local and remote address of the SMB connection.
And we correctly support message mode named pipes
without the hack that analyzes the content for DCERPC pdus.
metze
2010-05-27 07:13:59 +02:00
Stefan Metzmacher
9a6636a56e
s3:rpc_server: pass down local and remote tsocket_address to np_open()
...
metze
2010-05-27 07:13:56 +02:00
Stefan Metzmacher
9a77cb247d
s3:rpc_server: add np_read_in_progress() function
...
metze
2010-05-27 07:13:53 +02:00
Stefan Metzmacher
8c0be92044
s3:rpc_server: make sure we don't send uninitialized memory for the named_pipe_auth handshake
...
metze
2010-05-27 07:13:52 +02:00
Günther Deschner
2807ab358e
s3-samr: move chgpasswd.c out of smbd and into the samr server.
...
Guenther
2010-05-26 22:17:02 +02:00
Simo Sorce
8aa96566a9
s3-rpc_server: Created a per connection spoolss pipe.
...
This way all code can reuse the same connection to spoolss
and not have to deal with the creation of a new pipe all over the
code every time we need to ask a service off spoolss.
Signed-off-by: Günther Deschner <gd@samba.org>
2010-05-26 15:07:57 +02:00
Michael Adam
0fe1ff99a1
s3:registry: move reg_objects.h to registry/ and use it only where needed
...
Every place outside of registry/ where this is used, should probably
be changed to use pure reg_api.c code.
2010-05-25 10:35:31 +02:00
Michael Adam
dcf2cc2806
s3:srv_ntsvcs: use regval_ctr/blob accessor functions
2010-05-25 10:35:29 +02:00
Michael Adam
e829b42978
s3:registry: extract registry_pull/push_value prototypes into own header
...
reg_util_marshalling.h and use them only where needed.
2010-05-25 10:35:27 +02:00
Michael Adam
5a92d88f38
s3:registry: extract reg_perfcount prototypes into header of their own.
...
And use them only when necessary.
2010-05-25 10:35:26 +02:00
Andrew Bartlett
cba7f8b827
s3:dom_sid Global replace of DOM_SID with struct dom_sid
...
This matches the structure that new code is being written to,
and removes one more of the old-style named structures, and
the need to know that is is just an alias for struct dom_sid.
Andrew Bartlett
Signed-off-by: Günther Deschner <gd@samba.org>
2010-05-21 10:39:59 +02:00
Günther Deschner
ba1befd365
s3-services: move services.h closer to services implementation.
...
Guenther
2010-05-20 13:39:46 +02:00
Günther Deschner
f6f3bb1813
s3-passdb: move get_logon_hours_from_pdb() into samr server.
...
Guenther
2010-05-18 21:43:05 +02:00
Günther Deschner
5a6f3a0666
s3-rpc_client: move protos to init_spoolss.h
...
Guenther
2010-05-18 21:42:48 +02:00
Simo Sorce
d6a73ad85b
s3-spoolss: Removed the Phantom DeviceMode.
...
This was a hack that required a special client from HP.
The client code has never been released and was discontinued,
so this code was just dead weight.
Signed-off-by: Günther Deschner <gd@samba.org>
2010-05-18 15:52:28 +02:00
Andreas Schneider
4108728b7e
s3-spoolss: Use the spoolss_map_to_os2_driver to modify drivername.
...
Signed-off-by: Günther Deschner <gd@samba.org>
2010-05-18 15:18:30 +02:00
Andreas Schneider
f3063d9254
s3-spoolss: Added EN ISO 216, A0 and A1 to builtin forms.
...
Signed-off-by: Günther Deschner <gd@samba.org>
2010-05-18 15:05:58 +02:00
Andreas Schneider
4bc46e0f27
s3-spoolss: Sorted the builtin forms alphabetically.
...
Signed-off-by: Günther Deschner <gd@samba.org>
2010-05-18 15:05:42 +02:00
Günther Deschner
7f6bb48bdf
s3-secdesc: remove "typedef struct security_descriptor SEC_DESC".
...
Guenther
2010-05-18 12:30:12 +02:00
Günther Deschner
8951c8301a
s3-secdesc: remove "typedef struct security_acl SEC_ACL".
...
Guenther
2010-05-18 12:30:12 +02:00
Günther Deschner
a8b01d1f3b
s3-secdesc: remove "typedef struct security_ace SEC_ACE".
...
Guenther
2010-05-18 12:30:11 +02:00
Günther Deschner
8bc9c343c4
s3-secdesc: remove "typedef struct sec_desc_buf SEC_DESC_BUF".
...
Guenther
2010-05-18 12:30:11 +02:00
Jelmer Vernooij
b8268cf7b0
s3: Remove use of iconv_convenience.
2010-05-18 11:45:31 +02:00
Günther Deschner
fe31b67d5e
s3-registry: only include registry headers when really needed.
...
Guenther
2010-05-18 01:15:38 +02:00
Günther Deschner
1d2dd47d31
s3-crypto: only include crypto headers when crypto is done.
...
Guenther
2010-05-18 00:44:27 +02:00
Günther Deschner
26c844902c
s3-samr: move samr helper prototypes outside of proto.h
...
Guenther
2010-05-18 00:44:27 +02:00
Günther Deschner
657fd0be1d
s3-services: move services.h to where it is actually used.
...
Guenther
2010-05-18 00:44:27 +02:00
Günther Deschner
3b529d50be
s3-rpc_misc: clean out include/rpc_misc.h.
...
Well known rids don't really belong into an rpc header, just use the ones
defined in security.idl.
Guenther
2010-05-18 00:44:26 +02:00
Günther Deschner
049416c285
s3-spoolss: make several notify functions static.
...
Guenther
2010-05-06 13:41:51 +02:00
Günther Deschner
d2d7174394
s3-eventlog: move all eventlog headers to lib/eventlog and only include where required.
...
Guenther
2010-05-06 13:41:51 +02:00
Günther Deschner
c6ebab846d
s3: only include gen_ndr headers where needed.
...
This shrinks include/includes.h.gch by the size of 7 MB and reduces build time
as follows:
ccache build w/o patch
real 4m21.529s
ccache build with patch
real 3m6.402s
pch build w/o patch
real 4m26.318s
pch build with patch
real 3m6.932s
Guenther
2010-05-06 00:22:59 +02:00
Günther Deschner
65105aafb4
s3-spoolss: remove unused winreg_enumval_to_blob().
...
Guenther
2010-05-05 18:23:45 +02:00
Andreas Schneider
386c1fffac
s3-spoolss: Create default DsSpooler values.
...
Signed-off-by: Günther Deschner <gd@samba.org>
2010-05-05 18:22:45 +02:00
Andreas Schneider
92df015e30
s3-spoolss: Fixed the DeviceMode handling in winreg.
...
Signed-off-by: Günther Deschner <gd@samba.org>
2010-05-05 18:22:28 +02:00
Andreas Schneider
859a1e04fb
s3-spoolss: Added winreg security descriptor functions.
...
Signed-off-by: Günther Deschner <gd@samba.org>
2010-05-05 18:21:54 +02:00
Andreas Schneider
a76cc0a18c
s3-spoolss: Migrated winreg to spoolss_create_default_secdesc.
...
Signed-off-by: Günther Deschner <gd@samba.org>
2010-05-05 18:21:19 +02:00
Günther Deschner
ed3852c2c2
s3-spoolss: make sure to return success in winreg_get_driver_list() for a
...
non-existing architecture / version combination.
Guenther
2010-05-05 18:17:32 +02:00
Günther Deschner
83e324c417
s3-spoolss: talloc_steal the returned driver_list in winreg_get_driver_list().
...
Otherwise the function would return a pointer to a freed list.
Guenther
2010-05-05 18:17:23 +02:00
Simo Sorce
24225bf032
s3-spoolss: Fixed winreg_printer_query_XXX.
...
A cast to an incorrectly sized pointer was breaking
on 64bit architectures where size_t is 64bit.
Signed-off-by: Günther Deschner <gd@samba.org>
2010-05-05 18:17:13 +02:00
Andreas Schneider
740418a150
s3-spoolss: Added a winreg_printer_query_binary function.
...
Signed-off-by: Günther Deschner <gd@samba.org>
2010-05-05 18:16:38 +02:00
Andreas Schneider
3f0562f4b4
s3-spoolss: Fixed memory error in winreg_get_driver.
...
The strings in the structure need to be initialized with an empty
string.
Signed-off-by: Günther Deschner <gd@samba.org>
2010-05-05 17:33:06 +02:00
Andreas Schneider
c95a79aae9
s3-spoolss: Added a sharename arg to winreg_update_printer.
...
Signed-off-by: Günther Deschner <gd@samba.org>
2010-05-05 17:32:59 +02:00
Andreas Schneider
053ed7d554
s3-spoolss: Added missing servername option to winreg_{create,get}_printer.
...
This is needed to be able to pass the correct servername from
Printer_entry.
Signed-off-by: Günther Deschner <gd@samba.org>
2010-05-05 17:32:51 +02:00
Andreas Schneider
a5fb4117e1
s3-spoolss: Added missing Printer Driver in winreg_{update,get}_printer.
...
Signed-off-by: Günther Deschner <gd@samba.org>
2010-05-05 17:32:33 +02:00
Simo Sorce
17ce20ba96
s3-spoolss: Remove duplicate macro.
...
Signed-off-by: Günther Deschner <gd@samba.org>
2010-05-04 19:38:27 +02:00
Andreas Schneider
6683b0d4b6
s3-lib: Create a sec_desc_merge and sec_desc_merge_buf function.
...
Signed-off-by: Günther Deschner <gd@samba.org>
2010-05-04 19:37:39 +02:00
Günther Deschner
1691eb73da
s3-spoolss: add support for SetJobInfo level 1 (for jobfile rename).
...
Guenther
2010-04-28 00:10:40 +02:00
Günther Deschner
03a9ac4e2b
s3-spoolss: fix some uninitialized variables.
...
Guenther
2010-04-27 17:55:55 +02: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
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
Günther Deschner
698b7780c9
s3-spoolss: make switch in _spoolss_AddPrinterDriver() a bit more clear.
...
Guenther
2010-04-23 11:41:25 +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
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
Günther Deschner
7b84d36f19
s3-spoolss: fix samr_ValidatePassword_Change.
...
Guenther
2010-04-19 11:53:59 +02:00
Volker Lendecke
f4b73f4e24
s3: Slightly simpify samr_ValidatePassword_Reset
2010-04-17 12:01:18 +02:00
Volker Lendecke
3a362b45c6
s3: Slightly simpify samr_ValidatePassword_Change
2010-04-17 12:01:18 +02:00
Andreas Schneider
4567bf9df5
s3-winreg_nt: Fixed QueryValue with data=NULL to get the length.
2010-04-16 15:17:59 +02:00
Volker Lendecke
8e95db9eea
s3: Move serverinfo_to_SamInfoX to auth/server_info.c
2010-04-11 22:59:47 +02:00
Günther Deschner
357006bf07
s3-spoolss: Fix two uninitialized vars in spoolss util code.
...
Guenther
2010-04-09 18:44:19 +02:00
Günther Deschner
63b111bd32
s3: add iconv_convenience handle to pull/push sz helpers.
...
Guenther
2010-04-09 18:33:45 +02:00
Günther Deschner
ffcaa73280
s3-winreg: add winreg_DeleteKeyEx stub.
...
Guenther
2010-04-09 00:27:58 +02:00
Günther Deschner
65c5b786ca
s3-spoolss: Fix some issues in _spoolss_AddForm.
...
Found by torture test.
Guenther
2010-04-07 23:53:18 +02:00
Günther Deschner
34ada1d540
s3-spoolss: Fix potential memleak in _spoolss_AddForm and _spoolss_SetForm.
...
Guenther
2010-04-07 23:53:18 +02:00
Andreas Schneider
eebc66ce32
s3-spoolss: Added a winreg_getform1 function.
...
Signed-off-by: Günther Deschner <gd@samba.org>
2010-04-07 15:16:53 +02:00
Andreas Schneider
c7fb84a58f
s3-spoolss: Added a winreg_setform1 function.
...
Signed-off-by: Günther Deschner <gd@samba.org>
2010-04-07 15:16:53 +02:00
Andreas Schneider
0d46ab0f3e
s3-spoolss: Added a winreg_deleteform1 function.
...
Signed-off-by: Günther Deschner <gd@samba.org>
2010-04-07 15:16:53 +02:00
Andreas Schneider
93575d6d70
s3-spoolss: Added a winreg_addform1 function.
...
Signed-off-by: Günther Deschner <gd@samba.org>
2010-04-07 15:16:53 +02:00
Andreas Schneider
fbd3235610
s3-spoolss: Added a winreg_enumforms1 function.
...
Signed-off-by: Günther Deschner <gd@samba.org>
2010-04-07 15:16:53 +02:00
Andreas Schneider
20e96d9243
s3-spoolss: Fixed winreg_printer_openkey to be used in a more generic way.
...
Signed-off-by: Günther Deschner <gd@samba.org>
2010-04-07 15:16:53 +02:00
Andreas Schneider
adfd4854fa
s3-spoolss: Added a delete_printer_key function using the winreg pipe.
...
Signed-off-by: Günther Deschner <gd@samba.org>
2010-04-07 15:16:52 +02:00
Andreas Schneider
f0054d8361
s3-spoolss: Added a enum_printer_key function using the winreg pipe.
...
Signed-off-by: Günther Deschner <gd@samba.org>
2010-04-07 15:16:52 +02:00