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