Volker Lendecke
636d107989
s3: Fix smb_pam_passcheck
2010-08-28 11:05:22 +02:00
Volker Lendecke
9322fa4077
s3: Lift smbd_server_fd() from smb_pam_passcheck
2010-08-27 21:59:09 +02:00
Volker Lendecke
8e1d3b5f8f
s3: Pass rhost through to smb_pam_passchange
2010-08-27 12:53:17 +02:00
Günther Deschner
338184fb3a
s3-proto: remove obsolete prototypes.
...
Guenther
2010-08-26 23:25:00 +02:00
Günther Deschner
7a05ca2c9c
s3-build: use dbwrap.h only where needed.
...
Guenther
2010-08-26 00:25:55 +02:00
Günther Deschner
2b41f421fd
s3-idmap: only include idmap headers where needed.
...
Guenther
2010-08-26 00:20:29 +02:00
Günther Deschner
c217790918
s3-nmbd: move nmbd proto out of main proto.h
...
Guenther
2010-08-26 00:20:28 +02:00
Günther Deschner
e978a3d3f4
s3-lsa: separate out init_lsa headers.
...
Guenther
2010-08-25 22:50:39 +02:00
Michael Adam
3add3aa17d
s3:smbd: add a nfs backend for sysquotas.
...
This module is based on the Solaris/FreeBSD implementation
of NFS quotas in the quotas.c module.
It implements the SMB_USER_QUOTA_TYPE query of the
get_quotas call. The other types and the set_quota call
are not implemented.
2010-08-25 14:05:51 +02:00
Volker Lendecke
1808dd0a85
s3: Make srv_send_smb take an sconn instead of a sock fd
2010-08-24 21:06:41 +02:00
Volker Lendecke
177e394f93
s3: Pass the rhost through smb_pam_accountcheck
2010-08-22 22:42:21 +02:00
Volker Lendecke
de95124935
s3: Move check_access to cgi.c, its only user
2010-08-22 14:28:34 +02:00
Jeremy Allison
22a0168504
Fix const warning.
2010-08-20 15:56:37 -07:00
Michael Adam
34092c11b4
s3:loadparm: make lp_load_ex static. We have wrappers for external callers.
2010-08-20 11:14:06 +02:00
Volker Lendecke
d7c8fb21bb
s3: async cli_list
2010-08-18 15:14:02 +02:00
Volker Lendecke
77761d9adc
s3: Add cli_flush
2010-08-18 15:14:02 +02:00
Volker Lendecke
4b5e252354
s3: Add "client_id" to pipes_struct
2010-08-18 11:18:23 +02:00
Volker Lendecke
ac7b63384d
s3: Lift smbd_server_fd from reload_services()
2010-08-18 11:18:21 +02:00
Volker Lendecke
26ff858934
s3: Remove smbd_server_fd() from session_claim
2010-08-17 22:52:03 +02:00
Volker Lendecke
840b0f523b
s3: Move read_smb_length() to smbd/reply.c
2010-08-17 22:44:04 +02:00
Simo Sorce
7b12513d12
s3-dcerpc: make a few local functions as static
2010-08-17 06:33:13 -04:00
Stefan Metzmacher
dd16d3b2d6
s3:rpc_client: remove unused rpc_pipe_open_local()
...
metze
2010-08-16 14:30:17 +02:00
Volker Lendecke
96ae457023
s3: Remove get_client_fd()
2010-08-16 13:13:10 +02:00
Andreas Schneider
66b6a8cf62
s3-auth: Remove obsolete 'update encrypted' option.
2010-08-16 12:48:27 +02:00
Volker Lendecke
08b628efe4
s3: Remove some unused code
2010-08-15 15:15:59 +02:00
Andrew Bartlett
70211ea6a3
s3:auth Change winbindd -> auth interface to more standard structures
...
This removes conversions to and from the source3 varient of the
server_info structure when replaced in s3compat, and presents a tidier
interface to winbindd in any case.
Andrew Bartlett
Signed-off-by: Andrew Tridgell <tridge@samba.org>
2010-08-14 11:58:13 +10:00
Andrew Bartlett
23994e1b53
s3:auth Make Samba3 use the new common struct auth_usersupplied_info
...
This common structure will make it much easier to produce an auth
module for s3compat that calls Samba4's auth subsystem.
In order the make the link work properly (and not map twice), we mark
both that we did try and map the user, as well as if we changed the
user during the mapping.
Andrew Bartlett
Signed-off-by: Andrew Tridgell <tridge@samba.org>
2010-08-14 11:58:13 +10:00
Michael Adam
1cd1dff756
s3:idmap: add idmap_unix_id_is_in_range() for checking an id against an idmap range
2010-08-14 02:10:42 +02:00
Michael Adam
6d9f4d6d36
s3:loadparm: add new boolean parameter "idmap read only"
...
This will be used to be able to put the default idmap config
read only. This can make sense for instance with the tdb2
idmap backend and using the idmap script feature.
2010-08-14 02:10:40 +02:00
Michael Adam
c62f7c7a0b
s3:loadparm: remove parameter "idmap alloc backend"
2010-08-14 02:10:40 +02:00
Michael Adam
75a6c24459
s3:idmap: remove unused smb_register_idmap_alloc().
...
The registering of alloc backends is being removed.
The idmap backends are responsible for initializing
their alloc code on their own if necessary.
2010-08-14 02:10:39 +02:00
Michael Adam
7b4c6f7e89
s3:idmap_tdb: make idmap_alloc_tdb_init() static.
2010-08-14 02:10:37 +02:00
Michael Adam
d888e726a9
s3:idmap: remove unused idmap_remove_mapping().
...
Michael
2010-08-14 02:10:34 +02:00
Michael Adam
6740c180e6
s3:idmap: remove unused idmap_set_mapping().
...
Michael
2010-08-14 02:10:34 +02:00
Michael Adam
806e006288
s3:idmap: remove unused idmap_set_gid_hwm()
...
Michael
2010-08-14 02:10:32 +02:00
Michael Adam
002fe91768
s3:idmap: remove unused idmap_set_uid_hwm()
...
Michael
2010-08-14 02:10:32 +02:00
Volker Lendecke
016418d6c2
s3: Remove the smbd_messaging_context from load_printers
2010-08-08 23:37:47 +02:00
Volker Lendecke
1c1d83a532
s3: Remove the smbd_messaging_context from pcap_cache_reload
2010-08-08 23:37:47 +02:00
Volker Lendecke
37d71a56fd
s3: Pass sconn to smbd_process
2010-08-08 23:37:47 +02:00
Volker Lendecke
53ed39de4a
s3: Make check_reload() static
2010-08-08 23:37:46 +02:00
Volker Lendecke
1b60ead64a
s3: Lift the server_messaging_context from update_monitored_printq_cache
2010-08-08 18:09:38 +02:00
Volker Lendecke
128976e011
s3: Lift the server_messaging_context from notify_printer_byname
2010-08-08 18:09:36 +02:00
Volker Lendecke
d62c73b799
s3: Lift the server_messaging_context from notify_printer_location
2010-08-08 18:09:36 +02:00
Volker Lendecke
83c4c04121
s3: Lift the server_messaging_context from notify_printer_port
2010-08-08 18:09:36 +02:00
Volker Lendecke
f3313c5307
s3: Lift the server_messaging_context from notify_printer_printername
2010-08-08 18:09:36 +02:00
Volker Lendecke
c427423aee
s3: Lift the server_messaging_context from notify_printer_sharename
2010-08-08 18:09:36 +02:00
Volker Lendecke
7285e0d5dd
s3: Lift the server_messaging_context from notify_printer_comment
2010-08-08 18:09:36 +02:00
Volker Lendecke
4e4bf13e70
s3: Lift the server_messaging_context from notify_printer_driver
2010-08-08 18:09:35 +02:00
Volker Lendecke
b71debcca0
s3: Lift the server_messaging_context from notify_job_submitted
2010-08-08 18:09:35 +02:00
Volker Lendecke
aa5fd419b2
s3: Lift the server_messaging_context from notify_job_name
2010-08-08 18:09:35 +02:00
Volker Lendecke
06cf2ae6ea
s3: Lift the server_messaging_context from notify_job_username
2010-08-08 18:09:35 +02:00
Volker Lendecke
7a9f94dae8
s3: Lift the server_messaging_context from notify_job_total_pages
2010-08-08 18:09:35 +02:00
Volker Lendecke
bd6626c40c
s3: Lift the server_messaging_context from notify_job_total_bytes
2010-08-08 18:09:35 +02:00
Volker Lendecke
edbed43119
s3: Lift the server_messaging_context from notify_job_status
2010-08-08 18:09:35 +02:00
Volker Lendecke
9b3a53a7a7
s3: Lift the server_messaging_context from notify_job_status_byname
2010-08-08 18:09:35 +02:00
Volker Lendecke
21811fe72d
s3: Lift the server_messaging_context from notify_printer_status
2010-08-08 18:09:35 +02:00
Volker Lendecke
49d18478fd
s3: Lift the server_messaging_context from notify_printer_status_byname
2010-08-08 18:09:34 +02:00
Volker Lendecke
bc760e79c8
s3: Lift the smbd_messaging_context from start_background_queue
2010-08-08 18:09:33 +02:00
Volker Lendecke
75b4dfd14d
s3: Lift the smbd_messaging_context from smbd_setup_sig_hup_handler
2010-08-08 18:09:33 +02:00
Volker Lendecke
39da717fe1
s3: Lift the smbd_messaging_context from reload_services
2010-08-08 18:09:33 +02:00
Volker Lendecke
7c7ffb70fb
s3: Lift the smbd_messaging_context from reload_printers
2010-08-08 18:09:33 +02:00
Volker Lendecke
2d3623529f
s3: Lift the smbd_messaging_context from rpc_pipe_open_internal
2010-08-08 16:03:15 +02:00
Volker Lendecke
33256d6478
s3: Lift the smbd_messaging_context from np_open
2010-08-08 16:03:15 +02:00
Volker Lendecke
7c90a6bf38
s3: Lift the smbd_messaging_context from make_internal_rpc_pipe_p
2010-08-08 16:03:15 +02:00
Volker Lendecke
c9b654f581
s3: Remove smbd_messaging_context() from send_stat_cache_delete_message()
2010-08-07 13:16:48 +02:00
Günther Deschner
0f8e032628
s3-netlogon: remove global include of netlogon.h.
...
This reduces precompiled headers by another 4 MB and also slightly speeds up the
build.
Guenther
2010-08-06 15:46:16 +02:00
Volker Lendecke
869a19f06c
s3: Remove a pointless wrapper function
2010-08-05 14:53:54 +02:00
Volker Lendecke
61fb8a4fd1
s3: Explicitly pass flags2 to clistr_pull_talloc
...
Required to eventually make cli_list async
2010-08-05 14:53:54 +02:00
Volker Lendecke
1cbe8b85ae
s3: Remove some pointless wrapper functions
2010-08-05 13:57:31 +02:00
Volker Lendecke
6cb5a0d097
s3: Remove some pointless wrapper functions
2010-08-05 13:57:31 +02:00
Volker Lendecke
0a224bc77b
s3: Save the received trans2 from the inbuf in cli_trans
2010-08-05 13:57:29 +02:00
Andreas Schneider
ce2a086119
s3-popt: Only include popt-common.h when needed.
2010-08-05 12:08:31 +02:00
Günther Deschner
c136b84f0d
s3-secrets: only include secrets.h when needed.
...
Guenther
2010-08-05 10:12:25 +02:00
Günther Deschner
e7a6a3ec0d
s3: avoid global include of ads.h.
...
Guenther
2010-08-05 00:32:02 +02:00
Volker Lendecke
867626abca
s3: Convert cli_list() to return NTSTATUS
...
If needed, the callback functions can count themselves
2010-08-04 20:32:50 +02:00
Günther Deschner
813fbbd68c
s3-build: avoid to globally include printing and spoolss headers.
...
This shrinks precompiled headers by 3MB and will slightly speed up any build.
Guenther
2010-07-31 00:50:31 +02:00
Simo Sorce
0b24e8e869
s3-dcerpc: Add SPNEGO incapsulation for KRB5 auth
2010-07-30 14:55:27 -04:00
Simo Sorce
146af48d48
s3-dcerpc: revive cli_rpc_pipe_open_krb5()
2010-07-28 12:21:29 -04:00
Simo Sorce
2463a87177
s3-dcerpc: Use dcerpc_AuthType in pipe_auth_data
2010-07-28 12:19:32 -04:00
Simo Sorce
3c3237dd0a
s3-auth: Remove unimplemented functions
2010-07-28 12:18:28 -04:00
Andreas Schneider
f7a1453957
s3-include: Use struct pipes struct and get rid of the typedef.
2010-07-28 10:39:25 +02:00
Volker Lendecke
dace013898
s3: Remove a typedef (struct file_info)
2010-07-27 21:05:35 +02:00
Andreas Schneider
c3186f22c5
s3-lib: Make the standard_mapping parameter const.
...
Signed-off-by: Jim McDonough <jmcd@samba.org>
2010-07-27 10:27:15 -04:00
Simo Sorce
c18913a2c2
s3-smbd: Convert reply_printqueue to use spoolss.
...
Signed-off-by: Jim McDonough <jmcd@samba.org>
2010-07-27 10:27:14 -04:00
Simo Sorce
bdab6b10d2
s3-printing: Moved printing.c headers to include/printing.h.
...
Signed-off-by: Jim McDonough <jmcd@samba.org>
2010-07-27 10:27:14 -04:00
Simo Sorce
628f9bee05
s3-spoolss: Use WERROR for print_job_delete.
...
And also check for PJOB_SMBD_SPOOLING in print_job_write.
Signed-off-by: Jim McDonough <jmcd@samba.org>
2010-07-27 10:27:13 -04:00
Simo Sorce
849cc65654
s3-smbd: Migrated to new spoolss functions for printing.
...
Signed-off-by: Jim McDonough <jmcd@samba.org>
2010-07-27 10:27:13 -04:00
Simo Sorce
660506d359
s3-printing: Handled case when smbd spools a file on behalf of spoolss.
2010-07-27 10:27:13 -04:00
Simo Sorce
94ee35f9cc
s3-printing: Made print_job_start more robust.
...
Explicitly return ntstatus errors instead of relying on elusive errno.
Split the function to make it easier to follow.
Signed-off-by: Jim McDonough <jmcd@samba.org>
2010-07-27 10:27:13 -04:00
Andreas Schneider
4761498c9e
s3-printing: Moved remaining prototypes to nt_printing.h.
...
Signed-off-by: Jim McDonough <jmcd@samba.org>
2010-07-27 10:27:13 -04:00
Andreas Schneider
7c629bda2f
s3-printing: Remove unused printer registry key functions.
...
Signed-off-by: Jim McDonough <jmcd@samba.org>
2010-07-27 10:27:13 -04:00
Andreas Schneider
ae405eed4f
s3-printing: Removed unused security descriptor functions.
...
Signed-off-by: Jim McDonough <jmcd@samba.org>
2010-07-27 10:27:12 -04:00
Andreas Schneider
e2d3c0efa9
s3-printing: Removed unused nt_forms.
...
Signed-off-by: Jim McDonough <jmcd@samba.org>
2010-07-27 10:27:12 -04:00
Andreas Schneider
c918cfdede
s3-printing: Removed unsuded c_setprinter functions.
...
Signed-off-by: Jim McDonough <jmcd@samba.org>
2010-07-27 10:27:12 -04:00
Andreas Schneider
d8ab3e52dc
s3-printing: Removed unused free_a_printer function.
...
Signed-off-by: Jim McDonough <jmcd@samba.org>
2010-07-27 10:27:12 -04:00
Andreas Schneider
5c1f283747
s3-printing: Removed unused mod_a_printer functions.
...
Signed-off-by: Jim McDonough <jmcd@samba.org>
2010-07-27 10:27:12 -04:00
Andreas Schneider
4e45d5f824
s3-printing: Removed unused get_a_printer functions.
...
Signed-off-by: Jim McDonough <jmcd@samba.org>
2010-07-27 10:27:12 -04:00
Simo Sorce
38d6274864
s3-smbd: Added code to print via spoolss.
2010-07-27 10:27:12 -04:00
Andreas Schneider
f6db3694ed
s3-spoolss: Moved shared printing functions to nt_printing.h
...
Signed-off-by: Jim McDonough <jmcd@samba.org>
2010-07-27 10:27:11 -04:00
Simo Sorce
c26bfd228d
s3-spoolss: Removed unused set_printer_dataex().
...
Signed-off-by: Jim McDonough <jmcd@samba.org>
2010-07-27 10:27:11 -04:00
Simo Sorce
a1fe2ed68a
s3-spoolss: Use winreg_delete_printer_key to delete printers.
...
Signed-off-by: Jim McDonough <jmcd@samba.org>
2010-07-27 10:27:10 -04:00
Simo Sorce
fdf669d377
s3-spoolss: Get rid of get_server_name.
...
This function was useless the structure is public and used everywhere.
Signed-off-by: Jim McDonough <jmcd@samba.org>
2010-07-27 10:27:10 -04:00
Simo Sorce
44bc6714b0
s3-printing: Converted printer publishing functions.
...
Use spoolss_PrintInfo2 and winreg calls.
Signed-off-by: Jim McDonough <jmcd@samba.org>
2010-07-27 10:27:10 -04:00
Simo Sorce
017a305fed
s3-printing: Convert print_time_access_check.
...
use spoolss_PrintInfo2 and winreg calls
Signed-off-by: Jim McDonough <jmcd@samba.org>
2010-07-27 10:27:10 -04:00
Simo Sorce
375bdfc7f8
s3-spoolss: Removed construct_dev_mode() function.
...
Replace it with spoolss_create_default_devmode() or
copy_devicemode() where needed.
Signed-off-by: Jim McDonough <jmcd@samba.org>
2010-07-27 10:27:09 -04:00
Simo Sorce
52b8f1f471
s3-spoolss: Migrated driver functions to winreg.
...
Signed-off-by: Jim McDonough <jmcd@samba.org>
2010-07-27 10:27:09 -04:00
Andreas Schneider
e2c9ad93cb
s3-spoolss: Migrated spoolss_AddPrinter and spoolss_SetPrinter.
...
Signed-off-by: Jim McDonough <jmcd@samba.org>
2010-07-27 10:27:08 -04:00
Simo Sorce
5604a78f09
s3-spoolss: Migrated NT_DEVICEMODE to spoolss_DeviceMode.
...
Signed-off-by: Jim McDonough <jmcd@samba.org>
2010-07-27 10:27:06 -04:00
Volker Lendecke
2ad4b4f63e
s3: Convert cli_qpathinfo_streams to cli_qpathinfo_send
2010-07-26 23:01:38 +02:00
Volker Lendecke
7c242cab95
s3: Convert cli_qpathinfo_basic to cli_qpathinfo_send
2010-07-26 23:01:37 +02:00
Volker Lendecke
f62bde93ce
s3: Convert cli_qpathinfo2 to cli_qpathinfo_send
2010-07-26 23:01:37 +02:00
Volker Lendecke
0ba4404f21
s3: Convert cli_qpathinfo1 to cli_qpathinfo
2010-07-26 09:51:37 +02:00
Volker Lendecke
334d5bfe30
s3: Convert cli_get_ea_list_path to cli_qpathinfo_send
2010-07-25 22:29:44 +02:00
Volker Lendecke
535774d880
s3: Add async cli_qpathinfo
2010-07-25 22:29:43 +02:00
Volker Lendecke
ce3dfd777f
s3: cli_qpathinfo->cli_qpathinfo1
2010-07-25 22:29:42 +02:00
Jeremy Allison
5002b3a90d
Add approriate TALLOC_CTX's thoughout the spnego code. No more implicit NULL contexts.
...
Jeremy.
2010-07-20 16:17:58 -07:00
Jeremy Allison
cce19c5162
Fix one more data_blob -> data_blob_talloc. Move away from implicit NULL context tallocs.
...
Jeremy.
2010-07-20 14:59:31 -07:00
Jeremy Allison
4ed9437b7e
Add TALLOC_CTX argument to spnego_parse_negTokenInit, reduce
...
use of malloc, and data_blob().
Jeremy.
2010-07-20 13:35:43 -07:00
Jeremy Allison
7d17bfcf51
Rename spnego_gen_negTokenTarg() -> spnego_gen_krb5_negTokenInit()
...
as this correctly describes what this function does.
Jeremy.
2010-07-20 11:14:49 -07:00
Simo Sorce
b20e5eb3aa
dcerpc: Clarify what the arguments of dcerpc_pull_auth_trailer() actually represent.
2010-07-20 08:28:19 -04:00
Simo Sorce
4581902553
s3-dcerpc: Unifiy cli_pipe_auth_data and pipe_auth_data
...
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2010-07-20 15:52:37 +10:00
Simo Sorce
e958b39042
s3-auth: Move auth_ntlmssp wrappers in their own file
...
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2010-07-20 15:52:31 +10:00
Simo Sorce
a04bbd281c
s3-auth: Refactor and rename auth_ntlmssp_server_info()
...
Rename it to auth_ntlmssp_steal_server_info() to make it clear that
the server_info struct is stolen from the auth_ntlmssp_state structure.
Use talloc_move instead of manual steal&clear
Add comments to explain what is going on.
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2010-07-20 15:52:24 +10:00
Jeremy Allison
0bb8d133c9
Remove gen_negTokenInit() - change all callers to spnego_gen_negTokenInit().
...
We now have one function to do this in all calling code. More rationalization
to follow.
Jeremy.
2010-07-19 17:14:26 -07:00
Jeremy Allison
8cba4a0c96
Move the addition of the 16 byte guid out of spnego_gen_negTokenInit() and
...
into negprot_spnego() where it belongs (it's not an SPNEGO operation).
Add a TALLOC_CTX for callers of negprot_spnego(). Closer to unifying all
the gen_negTokenXXX calls.
Jeremy.
2010-07-19 16:45:16 -07:00
Jeremy Allison
625a511389
Remove parse_negTokenTarg(), as it's actually incorrect. We're processing
...
negTokenInit's here. Use common code in spnego_parse_negTokenInit().
Jeremy.
2010-07-19 15:41:45 -07:00
Andreas Schneider
5cefbfef26
s3-rpc_server: Added callbacks for init and shutdown of a rpc service.
...
This adds two callback function for each rpc service. One is for
initialisation and the other for shutdown. rpc_<service>_unregister()
needs to be called to execute the shutdown function.
2010-07-19 12:59:18 +02:00
Simo Sorce
c09dcb903c
s3-auth: Use talloc hierarchies to properly free auth_ntlmssp_state contexts
...
Turn auth_ntlmssp_end into a destructor and attach it to auth_ntlmssp_state.
Remote auth_ntlmssp_end and use TALLOC_FREE in the callers.
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2010-07-19 14:20:04 +10:00
Simo Sorce
cdcdaaa6dd
s3-ntlmssp: Remove ntlmssp_end and let the talloc hierarchy handle it.
...
All the members are children of ntlmssp_state anyway.
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2010-07-19 14:19:47 +10:00
Simo Sorce
65116adceb
s3-dcerpc: Fix ability to receive Big Endian PDUs
2010-07-16 16:02:39 -04:00
Jeremy Allison
e058de31e8
Make the "map to guest" parameter work correctly with NTLMSSP (spnego
...
and raw) under SMB2. Still need to investigate fixing this with krb5
auth (does this make sense ?).
Jeremy.
2010-07-16 11:05:34 -07:00
Simo Sorce
f4c6c7e7b8
Move the remnants of rpc_parse code under registry/
...
The registry code is the only last user of this code.
Move everything under registry/ and hope someone will get rid od
it completely from there in the future.
Signed-off-by: Günther Deschner <gd@samba.org>
2010-07-16 01:51:18 +02:00
Simo Sorce
7520d8e926
s3-parse_prs: Remove unuesd functions
...
Signed-off-by: Günther Deschner <gd@samba.org>
2010-07-16 01:51:18 +02:00
Simo Sorce
67b6fe3dc3
s3-misc: Move smb_io_time() to regfio.c
...
This is the last file using this function and we do not want anyone
else to keep using hand marshalled stuff anyway.
So make it also private to that file.
Signed-off-by: Günther Deschner <gd@samba.org>
2010-07-16 01:51:18 +02:00
Simo Sorce
8f2bfa88b5
s3-dcerpc: Use DATA_BLOB instead of prs_struct for req_data
...
Signed-off-by: Günther Deschner <gd@samba.org>
2010-07-16 01:51:18 +02:00
Simo Sorce
ff121c89d3
s3-dcerpc: Use DATA_BLOB instead of prs_struct for reply_pdu
...
Signed-off-by: Günther Deschner <gd@samba.org>
2010-07-16 01:51:17 +02:00
Simo Sorce
bd19c964d5
s3-dcerpc: Move common helpers into a common file
...
Signed-off-by: Günther Deschner <gd@samba.org>
2010-07-16 01:51:17 +02:00
Simo Sorce
cb3725a931
dcerpc: remove ncacn_packet_header and related functions
...
ncacn_packet_header was an artifact and it is not necessary anymore
Signed-off-by: Günther Deschner <gd@samba.org>
2010-07-16 01:51:17 +02:00
Simo Sorce
2452a7a4c1
s3-dcerpc: consolidate respones packet creation code
...
Signed-off-by: Günther Deschner <gd@samba.org>
2010-07-16 01:51:16 +02:00
Simo Sorce
31b59bbf99
s3-dcerpc: Convert rdata from prs_struct to a simple DATA_BLOB
...
Signed-off-by: Günther Deschner <gd@samba.org>
2010-07-16 01:51:16 +02:00
Simo Sorce
8246214e7e
s3-dcerpc: Remove unused functions and headers
...
parse_rpc.c is dead, long live parse_rpc.c !
Signed-off-by: Günther Deschner <gd@samba.org>
2010-07-16 01:51:16 +02:00
Andrew Bartlett
0d95cee58f
s3:auth Change auth_ntlmssp_server_info API to return NTSTATUS
...
This fixes a bug where register_existing_vuid() could be called with a
NULL server_info if the alloction failed.
Andrew Bartlett
Signed-off-by: Andrew Tridgell <tridge@samba.org>
2010-07-14 16:22:49 +10:00
Simo Sorce
0c93b7dff7
s3-dcerpc: Remove unused functions and headers
...
Signed-off-by: Günther Deschner <gd@samba.org>
2010-07-13 14:44:12 +02:00
Simo Sorce
87605e2030
s3-dcerpc: fix dcerpc_push_ncacn_packet, pass arg by address
...
There is no need to copy the whole structure twice by passing it in by value.
Signed-off-by: Günther Deschner <gd@samba.org>
2010-07-13 14:44:11 +02:00
Simo Sorce
29a3142be8
s3-dcerpc: Remove unused functions
...
Signed-off-by: Günther Deschner <gd@samba.org>
2010-07-13 14:44:11 +02:00
Simo Sorce
8e235df2de
s3-dcerpc: Use dcerpc_pull_ncacn_packet() to unmarshall dceprc requests
...
Signed-off-by: Günther Deschner <gd@samba.org>
2010-07-13 14:44:11 +02:00
Simo Sorce
e340aa40d1
dcerpc: move dcerpc_pull_auth_trailer into a the common dcerpc_util.c file
...
Signed-off-by: Günther Deschner <gd@samba.org>
2010-07-13 14:44:10 +02:00
Simo Sorce
77699c777e
sr-dcerpc: add dcerpc_push_ncacn_packet_header()
...
Signed-off-by: Günther Deschner <gd@samba.org>
2010-07-13 14:44:10 +02:00
Simo Sorce
cf664b73a4
s3-dcerpc: Use dcerpc_set_frag_length()
...
Automatically calculate the fragment length where possible.
Signed-off-by: Günther Deschner <gd@samba.org>
2010-07-13 14:44:09 +02:00
Günther Deschner
ea66d8e4a5
s3-dcerpc: link against ../librpc/rpc/dcerpc_util.c
...
Guenther
Signed-off-by: Simo Sorce <idra@samba.org>
Signed-off-by: Günther Deschner <gd@samba.org>
2010-07-13 14:44:09 +02:00
Simo Sorce
2297913829
s3-dcerpc: Remove unused prototype
...
Signed-off-by: Günther Deschner <gd@samba.org>
2010-07-13 14:44:09 +02:00
Volker Lendecke
c186f92437
s3: [ug]id_to_unix_... can not fail
...
Remove some silly failure checks
2010-07-11 17:33:34 +02:00
Simo Sorce
1796767a36
s3-dcerpc: make dcerpc_pull_dcerpc_auth() public
2010-07-08 18:38:56 -04:00
Simo Sorce
a054832f4f
s3-dcerpc: make dceprc_push_dcerpc_auth public
2010-07-08 18:38:56 -04:00
Günther Deschner
690ed0c5e2
s3-rpc: when using rpc_pipe_open_internal, make sure to go through NDR.
...
Otherwise a lot of information that is usually generated in the ndr_push remains
in an uninitialized state.
Guenther
2010-07-08 16:35:26 +02:00
Simo Sorce
7571c15af9
s3:dcerpc Remove unused structure and functions
2010-07-08 01:48:05 -04:00
Simo Sorce
0d9b63663f
s3:dcerpc Add prs_parse_dcerpc_bind
2010-07-08 01:41:24 -04:00
Simo Sorce
ae526514a9
s3:rpc user idl define dcerpc_ctx_list instead of custom RPC_CONTEXT
2010-07-08 01:08:05 -04:00
Günther Deschner
77e3fffd09
s3-dcerpc: add dcerpc_pull_ncacn_packet_header().
...
Guenther
Signed-off-by: Simo Sorce <idra@samba.org>
2010-07-08 00:29:33 -04:00
Günther Deschner
257f5145b5
s3-dcerpc: remove unused init_rpc_hdr_rb and init_rpc_context.
...
Guenther
Signed-off-by: Simo Sorce <idra@samba.org>
2010-07-07 23:45:51 -04:00
Günther Deschner
dc6e0cedfc
s3-dcerpc: remove unused smb_io_rpc_hdr_fault.
...
Guenther
Signed-off-by: Simo Sorce <idra@samba.org>
2010-07-07 23:45:50 -04:00
Günther Deschner
cb9eddb312
s3-dcerpc: add dcerpc_pull_ncacn_packet().
...
Guenther
Signed-off-by: Simo Sorce <idra@samba.org>
2010-07-07 23:45:50 -04:00
Günther Deschner
3d9a12dca7
s3-dcerpc: add dcerpc_push_ncacn_packet().
...
Guenther
Signed-off-by: Simo Sorce <idra@samba.org>
2010-07-07 23:45:50 -04:00
Günther Deschner
7e1fa8d067
s3-rpc_parse: remove finally unused prs_unistr().
...
Guenther
2010-07-07 15:29:25 +02:00
Volker Lendecke
3278554b3e
s3: Make talloc_attrs() static
2010-07-05 12:37:13 +02:00
Volker Lendecke
e168b85f00
s3: Remove procid_self() from fill_deferred_open_entry()
2010-07-05 11:06:31 +02:00
Volker Lendecke
13441a9e18
s3: Remove procid_self() from session_claim()
2010-07-05 11:06:25 +02:00
Volker Lendecke
23a31becac
s3: Remove unused msg_flags from connections.tdb
...
This breaks rolling code upgrade!
2010-07-04 21:49:03 +02:00
Volker Lendecke
b0c83d50f9
s3: Replace register_message_flags() with serverid_register_msg_flags()
...
message_send_all is now done by walking the serverid.tdb, not the
connections.tdb anymore.
Günther, Simo, please check!
2010-07-04 21:49:03 +02:00
Volker Lendecke
7f0e6df883
s3: Pass the new server_id through reinit_after_fork
2010-07-04 17:29:23 +02:00
Günther Deschner
04641abb33
s3-libads: move ldap posix schema defines to their own header file.
...
Guenther
2010-07-01 23:20:40 +02:00
Günther Deschner
56538be6af
s3-libads: move ads_dns out of main includes.
...
Guenther
2010-07-01 23:20:40 +02:00
Günther Deschner
e64df82146
s3-libads: move ads_status to a separate header file.
...
Guenther
2010-07-01 23:20:39 +02:00
Günther Deschner
6625aada81
s3-libsmb: move change_trust_account_password out of smbd into libsmb.
...
Guenther
2010-06-30 21:46:08 +02:00
Volker Lendecke
ba0ba4e85b
s3: Make some routines static in smbldap
2010-06-28 16:57:04 +02:00
Jeremy Allison
5a77d648d9
Remove two unused functions (prs_force_dynamic, prs_set_session_key).
...
Jeremy.
2010-06-16 10:26:47 -07:00
Andreas Schneider
47ae4a518c
s3-spoolss: Provide a memory context for clean_up_driver_struct().
...
If we use a stack variable to setup spoolss_AddDriverInfoCtr this would
segfault with a talloc bad magic value.
2010-06-16 12:03:46 +02:00
Jeremy Allison
81f70834ca
Remove unused function.
2010-06-15 15:33:44 -07:00
Volker Lendecke
c7f44801e3
s3: Remove fsp_belongs_conn
...
check_open_fsp does exactly the same
2010-06-13 15:20:58 +02:00
Volker Lendecke
330a64c72b
s3: Explicitly pass sconn to process_blocking_lock_queue
2010-06-12 15:42:56 +02:00
Volker Lendecke
ec2079f5d0
s3: Explicitly pass sconn to blocking_lock_was_deferred_smb1
2010-06-12 15:42:56 +02:00
Volker Lendecke
f856fb0b35
s3: Explicitly pass sconn to remove_pending_lock_requests_by_mid_smb1
2010-06-12 15:42:56 +02:00
Volker Lendecke
5d43180a55
s3: Explicitly pass sconn to the remove_pending_change_notify_request_by_mid
2010-06-12 15:42:55 +02:00
Volker Lendecke
f589909eb1
s3: change_notify_reply() does not need its "conn" argument
2010-06-12 15:42:55 +02:00
Volker Lendecke
dd192bb649
s3: Explicitly pass sconn to is_valid_writeX_buffer
2010-06-12 15:42:52 +02:00
Volker Lendecke
d5f20aea73
s3: Pass sconn explicitly to reply_special
2010-06-12 15:42:52 +02:00
Simo Sorce
a53ca94416
s3:rpc improve handles memory hierarchy and use better name.
...
While there also cleanup the code a bit.
Signed-off-by: Günther Deschner <gd@samba.org>
2010-06-11 00:43:23 +02:00
Simo Sorce
5e576a53ab
s3:lib make server contexts generic
...
Pair-programmed-with: Andreas Schneider <asn@samba.org>
2010-06-10 17:30:45 -04:00
Jeremy Allison
321d7a6303
Implement AIO in SMB2. Doesn't allow cancel calls yet (to be added).
...
Jeremy.
2010-06-10 13:20:37 -07:00
Volker Lendecke
34b29b1198
Revert "s3:auth Change auth_ntlmssp_server_info API to return NTSTATUS"
...
This reverts commit edba46ce94
.
Conflicts:
source3/auth/auth_ntlmssp.c
2010-06-08 11:38:08 +02:00
Simo Sorce
5da783f4a7
s3:smbd add utility function to check if there are open pipes
2010-06-07 17:25:48 -04:00
Simo Sorce
f9fc4df0c0
s3:rpc make num_pipe_handles get an actual pipe as argument
...
Let the function abstract out how handles are counted
2010-06-07 17:25:48 -04:00
Andrew Bartlett
9a747d500f
s3:auth add hooks to indicate if signing or sealing is desired with NTLMSSP
...
This allows the right hooks to be called in GENSEC when s3compat
implements the auth_ntlmssp interface. Otherwise, we can't do the
signing or sealing as we have not negoitated it's use.
Andrew Bartlett
2010-06-07 23:34:29 +10:00
Andrew Bartlett
edba46ce94
s3:auth Change auth_ntlmssp_server_info API to return NTSTATUS
...
It's nicer to have an NTSTATUS return, and in s3compat there may be a
reason other than 'no memory' why this can fail.
Andrew Bartlett
2010-06-07 23:34:29 +10:00
Simo Sorce
0a7ff14617
s3:passdb Export function to calculate the proper primary group sid
...
Don't keep it buried in passdb, this function need to be available
for use in places where we do not want to construct an artificial
samu struct just to play tricks.
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2010-06-07 22:53:08 +10:00
Simo Sorce
aa1a3cbad2
s3:auth create nt token from info3 directly
...
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2010-06-07 22:53:07 +10:00
Simo Sorce
e6456df148
s3:auth handle unix domain sids in samu
...
When we generate a user out of thin air we may end up adding sids
that are not part of the sam domain (unix domain sids).
Handle the case and preserve these sids as extra sids.
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2010-06-07 22:53:07 +10:00
Günther Deschner
4591fdbc18
s3-privileges: use LUID defines from lsa IDL.
...
Guenther
2010-06-07 10:33:36 +02:00
Jeremy Allison
e0acee4919
Change smbd_aio_complete_mid() -> smbd_aio_complete_aio_ex(). Simplifies
...
the code and eliminates find_aio_ex().
Jeremy.
2010-06-04 11:30:46 -07:00
Andreas Schneider
15f64af8e3
s3-rpc: Create a file with all functions for a internal named pipe.
...
This makes it possible to use the samr rpc server in winbind without
linking in smbd.
Reviewed-by: Simo Sorce <idra@samba.org>
2010-06-04 12:12:50 -04:00