Günther Deschner
7a05ca2c9c
s3-build: use dbwrap.h only where needed.
...
Guenther
2010-08-26 00:25:55 +02:00
Günther Deschner
ca765d2f50
s3-build: only include krb5 environment variables where required.
...
Guenther
2010-08-26 00:20:29 +02:00
Günther Deschner
c8f8110342
s3-build: only include libnscd.h where needed.
...
Guenther
2010-08-26 00:20:29 +02:00
Günther Deschner
184339825d
s3-build: include mangle.h only where needed.
...
Guenther
2010-08-26 00:20:29 +02:00
Günther Deschner
7b6fc9f414
s3-dcerpc: only include rpc_dce.h where needed.
...
Guenther
2010-08-26 00:20:29 +02:00
Günther Deschner
d9a7605431
s3-build: remove unrequired ntlmssp forward declaration.
...
Guenther
2010-08-26 00:20:29 +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
3ef531ec34
s3-build: no point in including doserr.h, noone uses them.
...
Guenther
2010-08-26 00:20:29 +02:00
Günther Deschner
b5bdcdd65e
s3-build: only include "fake_file.h" where needed.
...
Guenther
2010-08-26 00:20:28 +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
7ff7eb0b52
s3-build: only include nsswitch header where needed.
...
Guenther
2010-08-26 00:20:28 +02:00
Günther Deschner
08eff4d311
s3-build: remove unrequired forward declaration for struct printjob.
...
Guenther
2010-08-26 00:20:28 +02:00
Günther Deschner
aba1bf4b5e
s3-build: only include memcache.h where needed.
...
Guenther
2010-08-26 00:20:28 +02:00
Günther Deschner
c5ffecb136
s3-build: further rationalise LIBMSRPC_OBJ and remove RPC_CLIENT_OBJ.
...
Guenther
2010-08-26 00:17:10 +02:00
Günther Deschner
6a795dd146
s3-waf: further rationalise LIBMSRPC_SRC and remove RPC_CLIENT_SRC.
...
Guenther
2010-08-26 00:17:10 +02:00
Günther Deschner
d6949f58fa
s3-build: remove RPC_CLIENT_OBJ1.
...
Guenther
2010-08-26 00:17:10 +02:00
Günther Deschner
75e55f9535
s3-waf: remove RPC_CLIENT_SRC1.
...
Guenther
2010-08-26 00:17:10 +02:00
Günther Deschner
a52fde4f94
s3-build: use LIBMSRPC_OBJ instead of single files.
...
Guenther
2010-08-26 00:17:10 +02:00
Günther Deschner
1217c4f484
s3-waf: use LIBMSRPC_SRC instead of single files.
...
Guenther
2010-08-26 00:17:09 +02:00
Günther Deschner
0b05e32f92
s3-waf: only link in samr util code where needed.
...
Guenther
2010-08-26 00:17:09 +02:00
Günther Deschner
4991af46d7
s3-build: only link in samr util code where needed.
...
Guenther
2010-08-26 00:17:09 +02:00
Günther Deschner
ecf32c851a
s3-build: remove RPC_PARSE_OBJ.
...
Guenther
2010-08-26 00:17:09 +02:00
Günther Deschner
83dc8314f1
s3-waf: remove RPC_PARSE_SRC.
...
Guenther
2010-08-26 00:17:09 +02:00
Günther Deschner
88720f80c5
s3-build: only link in epmapper client code where needed.
...
Guenther
2010-08-26 00:17:08 +02:00
Günther Deschner
4d78984570
s3-waf: only link in epmapper client code where needed.
...
Guenther
2010-08-26 00:17:08 +02:00
Günther Deschner
ff5ab04882
s3-build: only link in netlogon client code where needed.
...
Guenther
2010-08-26 00:17:08 +02:00
Günther Deschner
13cff58917
s3-waf: only link in netlogon client code where needed.
...
Guenther
2010-08-26 00:17:08 +02:00
Günther Deschner
0ed16e94c3
s3: separate out cli schannel functions that depend on cli_netlogon.
...
Guenther
2010-08-26 00:16:57 +02:00
Günther Deschner
064826c4d1
s3-build: only link in samr client code where needed.
...
Guenther
2010-08-25 23:07:39 +02:00
Günther Deschner
6810ead40d
s3-waf: only link in samr client code where needed.
...
Guenther
2010-08-25 23:07:29 +02:00
Günther Deschner
1895d669c2
s3-build: only link in lsa client code where needed.
...
Guenther
2010-08-25 23:07:17 +02:00
Günther Deschner
c107c66203
s3-waf: only link in lsa client code where needed.
...
Guenther
2010-08-25 23:07:09 +02:00
Günther Deschner
562c5999ec
s3-build: only link in srvsvc client code where needed.
...
Guenther
2010-08-25 23:06:59 +02:00
Günther Deschner
0d0deba7bc
s3-waf: only link in srvsvc client code where needed.
...
Guenther
2010-08-25 23:06:48 +02:00
Günther Deschner
0ae0ca062b
s3-build: only link in wkssvc client code where needed.
...
Guenther
2010-08-25 23:06:37 +02:00
Günther Deschner
cfca94656a
s3-waf: only link in wkssvc client code where needed.
...
Guenther
2010-08-25 23:06:25 +02:00
Günther Deschner
2190386518
s3-build: only link in svcctl client code where needed.
...
Guenther
2010-08-25 23:06:15 +02:00
Günther Deschner
03269d6783
s3-waf: only link in svcctl client code where needed.
...
Guenther
2010-08-25 23:06:05 +02:00
Günther Deschner
9a195fd233
s3-build: only link in dssetup client code where needed.
...
Guenther
2010-08-25 23:05:54 +02:00
Günther Deschner
2d72cab5d0
s3-waf: only link in dssetup client code where needed.
...
Guenther
2010-08-25 23:05:43 +02:00
Günther Deschner
5c8b54820b
s3-build: only link in initshutdown client code where needed.
...
Guenther
2010-08-25 23:05:32 +02:00
Günther Deschner
e25e9bec24
s3-waf: only link in initshutdown client code where needed.
...
Guenther
2010-08-25 23:05:15 +02:00
Günther Deschner
f97ff9d440
s3-build: only link in echo client code where needed.
...
Guenther
2010-08-25 23:05:03 +02:00
Günther Deschner
3b24db6bf8
s3-waf: only link in eventlog echo code where needed.
...
Guenther
2010-08-25 23:04:53 +02:00
Günther Deschner
0f10349f14
s3-build: only link in dfs client code where needed.
...
Guenther
2010-08-25 23:04:42 +02:00
Günther Deschner
09b973f6bb
s3-waf: only link in dfs client code where needed.
...
Guenther
2010-08-25 23:04:32 +02:00
Günther Deschner
a66bb0d8ec
s3-build: only link in drsuapi client code where needed.
...
Guenther
2010-08-25 23:04:21 +02:00
Günther Deschner
bd22ef79c2
s3-waf: only link in drsuapi client code where needed.
...
Guenther
2010-08-25 23:04:10 +02:00
Günther Deschner
4dbb682bc5
s3-build: only link in ntsvcs client code where needed.
...
Guenther
2010-08-25 23:03:54 +02:00
Günther Deschner
1a00dd4aa7
s3-waf: only link in ntsvcs client code where needed.
...
Guenther
2010-08-25 23:03:41 +02:00
Günther Deschner
50df1c6f87
s3-build: only link in winreg client code where needed.
...
Guenther
2010-08-25 23:03:23 +02:00
Günther Deschner
ad855c0970
s3-waf: only link in winreg client code where needed.
...
Guenther
2010-08-25 23:03:07 +02:00
Günther Deschner
2af95fc88b
s3-build: only link in eventlog client code where needed.
...
Guenther
2010-08-25 22:56:59 +02:00
Günther Deschner
dc663295d1
s3-build: only link in spoolss client code where needed.
...
Shrinks a lot of binaries by 1 MB each.
Guenther
2010-08-25 22:56:29 +02:00
Günther Deschner
72f30e82e4
s3-waf: only link in spoolss client code where needed.
...
Shrinks a lot of binaries by 1 MB each.
Guenther
2010-08-25 22:55:16 +02:00
Günther Deschner
e978a3d3f4
s3-lsa: separate out init_lsa headers.
...
Guenther
2010-08-25 22:50:39 +02:00
Michael Adam
be598569bb
s3:smbd: add nfs quota support to the linux-non-sysquota code
...
This is based on the implementation for solaris and FreeBSD.
It makes rpc calls out to the nfs server to retrieve quota
information.
2010-08-25 14:05:51 +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
Andreas Schneider
2eff142cce
s3-build: Use a wrapper script to run the tests.
...
This fixes the buildfarm and returns the correct exit code of selftest.
2010-08-25 12:39:52 +02:00
Volker Lendecke
d3a0ff311e
s3: Make char_flags and base_reverse const arrays
...
This moves those arrays from dynamic to static, shared memory, removing them
from globals.c.
I did it by dumping the result of init_tables() with dump_data(). Some massage
by an editor macro made it the initializer.
2010-08-24 22:45:41 +02:00
Volker Lendecke
2d81721a3f
s3: Move "trans_num" to smbd_server_connection
2010-08-24 21:06:41 +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
Björn Jacke
aa830cde6a
pam: fix unused variable warning
2010-08-24 11:18:34 +02:00
Günther Deschner
898c612335
s3-dcerpc: avoid talloc_move on schannel creds in cli_rpc_pipe_open_schannel_with_key().
...
Initially, the schannel creds were talloc memduped, then, during the netlogon
creds client merge (baf7274fed
) they were first
talloc_referenced and then later (53765c81f7
)
talloc_moved.
The issue with using talloc_move here is that users of that function in winbind
will only be able to have two schanneled connections, as the cached schannel
credentials pointer from the netlogon pipe will be set to NULL. Do a deep copy
of the struct instead.
Guenther
2010-08-24 02:04:27 +02:00
Jeremy Allison
33060f67be
Final part of fix for bug #7636 - winbind internal error, backtrace.
...
Ensure cm_get_schannel_creds() returns NTSTATUS.
Jeremy.
2010-08-23 16:53:45 -07:00
Simo Sorce
a782a80d2f
s3-dcerpc: Allocate structure members on the right context
2010-08-23 17:11:32 -04:00
Volker Lendecke
a16a56f601
s3: PAM_RHOST and PAM_TTY are enums on FreeBSD
2010-08-23 22:59:56 +02:00
Andrew Bartlett
abcfc11497
s3:pdbtest Fix command name of pdbtest
...
Signed-off-by: Michael Adam <obnox@samba.org>
2010-08-22 23:20:40 +02:00
Andreas Schneider
0d9460a368
s3-build: Add a test-buildfarm target to stay UNIX Makefile compatible.
2010-08-22 23:04:28 +02:00
Andrew Bartlett
d8734c3c03
s3:param Clarify parameter name on init_globals()
...
This parameter is used with the registry backend to
cause the globals table to be re-initialised.
Andrew Bartlett
Signed-off-by: Michael Adam <obnox@samba.org>
2010-08-22 22:54:59 +02:00
Volker Lendecke
8531921e3d
s3: Turn two macros into functions
2010-08-22 22:42:21 +02:00
Volker Lendecke
177e394f93
s3: Pass the rhost through smb_pam_accountcheck
2010-08-22 22:42:21 +02:00
Volker Lendecke
265f0b7745
s3: Rename auth.c:backends to auth_backends
2010-08-22 22:42:21 +02:00
Volker Lendecke
6ff012a777
s3: Fix some nonemtpy blank lines
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
Volker Lendecke
70c5bed4b2
s3: Replace calls to check_access by allow_access
...
We already have both the name and address of the client stored now
2010-08-22 14:28:34 +02:00
Kai Blin
45ac8ffdb4
s3: Fix netgrent configure checks for compilers not supporting -Werror-implicit-function-declaration
...
This should fix bug 7620.
2010-08-21 12:05:40 +02:00
Volker Lendecke
554b1140a8
s3: Fix bug 7635
2010-08-21 11:55:46 +02:00
Jeremy Allison
af081ec4a1
Fix bug 7627 - smbclient ignores "-I" when used with "-L", fails name resolution.
...
Still needs some more work to fix missing netbios name issues, but fixes
underlying issue of IP address being ignored.
Jeremy.
2010-08-20 15:57:08 -07:00
Jeremy Allison
22a0168504
Fix const warning.
2010-08-20 15:56:37 -07:00
Volker Lendecke
f35811bfe0
s3: Use sconn->client_id in session_claim
2010-08-20 21:28:44 +02:00
Stefan Metzmacher
5d7c27cb5b
s3:librpc: make dcerpc_read_ncacn_packet_send/recv() available
...
metze
2010-08-20 18:09:26 +02:00
Stefan Metzmacher
922f33521e
s3:Makefile.in: use python with -u to disable stdin/out caching
...
metze
2010-08-20 18:09:23 +02:00
Stefan Metzmacher
c9621a8c00
s3:winbindd: fix error handling in wb_next_grent_fetch_done()
...
We should not use 'result' uninitialized.
metze
2010-08-20 14:23:41 +02: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
Jim McDonough
0ec0095d1a
s3-libsmbclient Convert dos error codes to NTstatus in async libsmbclient.
...
DOS error codes were being lost with the conversion to async
libsmbclient. If we're passing around NTSTATUS internally,
let's just convert it when we get it.
DOS ACCESS_DENIED on nautilus was not prompting for other credentials,
because it was not being mapped.
2010-08-19 15:49:31 -04:00
Simo Sorce
cbe9f879af
s3-ads: Fix wrong test in if statement
2010-08-19 11:28:12 -04:00
Günther Deschner
861566c6d0
s3-waf: fix the build.
...
Guenther
2010-08-19 15:24:51 +02:00
Günther Deschner
4349027b63
s3-cli: fix uninitialized variable.
...
Volker, please check.
Guenther
2010-08-19 14:08:06 +02:00
Günther Deschner
28ba023b4c
s3-idmap: fix uninitialized variable in idmap_tdb_sids_to_unixids_action().
...
Michael, please check.
Guenther
2010-08-19 14:08:06 +02:00
Günther Deschner
f6ac919a91
s3-libsmb: fix some uninitialized variables.
...
Volker, please check.
Guenther
2010-08-19 12:36:23 +02:00
Surbhi Palande
9b8f7a2a01
-ENOTSUP translates to NT_STATUS_NOT_SUPPORTED
...
https://launchpad.net/bugs/276472
This patch adds the translation of Unix Error code -ENOTSUP to NT Error Code
NT_STATUS_NOT_SUPPORTED. The absense of this translation wrongly sends back to
the client a STATUS_DENIED message in samba3.
Signed-off-by: Surbhi Palande <surbhi.palande@canonical.com>
2010-08-19 12:11:26 +02:00
Volker Lendecke
ba706d696b
s3: Remove smb_pam_accountcheck from the auth modules
...
We go through the same check in auth/auth.c line 287 after the module has done
its job. So we don't have to do that check twice.
2010-08-19 11:54:36 +02:00
Jeremy Allison
da2554117e
Fix bug 7626 - Typo in configure samba_cv__CC_NEGATIVE_ENUM_VALUES two underscores.
...
Noticed by bj@sernet.de .
2010-08-18 16:25:15 -07:00
Jeremy Allison
34230608df
Fix bug 7563 - Creation of symlink using smbclient is buggy.
...
Fix semantics of symlink. "oldpath" should be an untouched blob,
"newpath" should fit the share path semantics.
Jeremy.
2010-08-18 15:51:43 -07:00
Volker Lendecke
8f7bf85c40
s3: Remove an unused variable
2010-08-18 17:13:48 +02:00
Simo Sorce
1ab17f13a2
s3-ads: Remove unused wrapper and make function static
2010-08-18 09:37:56 -04: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
Simo Sorce
71dfa62b61
s3-ads: cleanup ads_keytab_list()
2010-08-18 07:47:10 -04:00
Simo Sorce
64d8300a56
s3-ads: cleanup ads_keytab_create_default()
2010-08-18 07:47:10 -04:00
Simo Sorce
3a9912370d
s3-ads: cleanup ads_keytab_add_entry()
2010-08-18 07:47:10 -04:00
Simo Sorce
d6d1ed8bdf
s3-ads: Split, simplify and cleanup keytab functions
...
add helper function for both smb_krb5_kt_add_entry_ext() and
ads_keytab_flush()
2010-08-18 07:47:09 -04:00
Volker Lendecke
b9353c65c0
s3: Fix serverid_register_msg_flags
...
Thanks, Andreas, for pointing this out! (How drunk have I been?...)
2010-08-18 13:33:24 +02:00
Andreas Schneider
937da4d141
s3-lib: Fixed a possible crash bug.
...
Volker please check!
2010-08-18 12:08:47 +02:00
Andreas Schneider
555b175212
s3-printing: Added function to update the queue.
2010-08-18 11:43:18 +02:00
Andreas Schneider
7e9d6021c9
s3-printing: Rename jobs_changed functions to jobs_added.
2010-08-18 11:43:17 +02:00
Volker Lendecke
536d4d48bf
s3: Fix an uninitialized variable
2010-08-18 11:18:24 +02:00
Volker Lendecke
a847f13d7b
s3: Use pipe_struct->client_id->name for pjob.clientmachine
2010-08-18 11:18:24 +02:00
Volker Lendecke
29093bc000
s3: Move initializing pjob.clientname to print_job_start()
2010-08-18 11:18:23 +02:00
Volker Lendecke
4b5e252354
s3: Add "client_id" to pipes_struct
2010-08-18 11:18:23 +02:00
Volker Lendecke
6d10684556
s3: Remove unneeded "client_address" from connection_struct
2010-08-18 11:18:23 +02:00
Volker Lendecke
7b6835ec1d
s3: Add smbd_server_connection->client_id
2010-08-18 11:18:22 +02:00
Volker Lendecke
ac7b63384d
s3: Lift smbd_server_fd from reload_services()
2010-08-18 11:18:21 +02:00
Günther Deschner
59289d4fa9
s3-build: only include smb_signing.h where needed.
...
Guenther
2010-08-18 09:20:13 +02:00
Andrew Bartlett
5a2f6c9700
s3:selftest This test does not fail anymore (Samba4's smbtorture has been fixed)
2010-08-18 16:21:32 +10:00
Volker Lendecke
26ff858934
s3: Remove smbd_server_fd() from session_claim
2010-08-17 22:52:03 +02:00
Volker Lendecke
f8ecec21e2
s3: Remove smbd_server_fd() from read_smb_length()
2010-08-17 22:44:04 +02:00
Volker Lendecke
840b0f523b
s3: Move read_smb_length() to smbd/reply.c
2010-08-17 22:44:04 +02:00
Volker Lendecke
e65197e56f
s3: Remove smbd_server_fd from receive_smb_raw
...
This is only called from client code
2010-08-17 22:44:03 +02:00
Volker Lendecke
a58cea0026
s3: Lift smbd_server_fd() from receive_smb_raw_talloc
2010-08-17 22:44:03 +02:00
Volker Lendecke
1f0afe1aed
s3: Lift smbd_server_fd() from read_smb_length_return_keepalive
2010-08-17 22:44:03 +02:00
Volker Lendecke
7d164498db
s3: Lift smbd_server_fd() from read_data()
...
All callers have appropriate debug messages themselves
2010-08-17 22:44:03 +02:00
Volker Lendecke
9671547d17
s3: Lift smbd_server_fd() from read_fd_with_timeout()
2010-08-17 22:44:03 +02:00
Volker Lendecke
c360822226
s3: Directly call write_data from print_job_write()
2010-08-17 15:31:49 +02:00
Volker Lendecke
3aba8e9b7e
s3: Remove unused "pos" arg from print_job_write
2010-08-17 15:31:49 +02:00
Andreas Schneider
feb22e0897
s3-samr: Correctly fix the transition from enum to uint32_t.
...
What type an enum is depends on the implementation, the compiler and
probably the compiler options. sizeof(enum) is normally not sizeof(int)!
2010-08-17 13:48:05 +02:00
Günther Deschner
16ad1bbb4e
s3-dcerpc: try to fix the non gssapi build.
...
Guenther
2010-08-17 13:18:34 +02:00
Günther Deschner
36cfadcf6a
s3-dcerpc: fix c++ build warning.
...
Guenther
2010-08-17 13:06:36 +02:00
Günther Deschner
35052d71d3
s3-dcerpc: fix uninitialized variable in cli_get_session_key().
...
Simo, please check.
Guenther
2010-08-17 13:06:13 +02:00
Günther Deschner
ff17516732
s3-util: remove unused variable.
...
Guenther
2010-08-17 13:04:32 +02:00
Simo Sorce
0a89722671
s3-ads: Remove unused function and file
2010-08-17 06:48:56 -04:00
Stefan Metzmacher
aca7b22e96
s3:winbindd: don't ignore 'result' in wb_dsgetdcname_done()
...
Ignoring it could cause a segfault in winbindd_getdcname_recv()
metze
2010-08-17 12:46:53 +02:00
Volker Lendecke
40ae8b74b6
s3: Remove smbd_server_fd() from write_data()
...
This completely removes the DEBUG(0, ..) error message from write_data(). I've
gone through all callers of write_data() and made sure that they have their own
equivalent error message printing.
2010-08-17 12:46:53 +02:00
Simo Sorce
f40ef7e24c
s3-dcerpc: Use common send functions for ntlmssp too
...
Remove unused function.
2010-08-17 06:33:14 -04:00
Simo Sorce
86914b8fab
s3-dcerpc: properly implement gse/spnego_get_session_key
2010-08-17 06:33:13 -04:00
Simo Sorce
26a3ba60e6
s3-dcerpc: Check data and return appropriate error
2010-08-17 06:33:13 -04:00
Simo Sorce
9b8c7d47f9
s3-dcerpc: Remove unused function
2010-08-17 06:33:13 -04:00
Simo Sorce
7b12513d12
s3-dcerpc: make a few local functions as static
2010-08-17 06:33:13 -04:00
Simo Sorce
9a9a38c666
Change debug statements to use __location__
2010-08-17 06:33:13 -04:00
Simo Sorce
72a0098415
s3-dcerpc: Pull packet in the caller, before validation
2010-08-17 06:33:13 -04:00
Simo Sorce
558320cf58
Add my (c)
2010-08-17 06:33:13 -04:00
Andreas Schneider
1791d05335
s3-samr: Fixed some build warnings.
2010-08-17 11:44:49 +02:00
Volker Lendecke
68e86969fa
s3: Remove smbd_server_fd() from smbd_process
2010-08-16 22:39:25 +02:00
Volker Lendecke
0bd39c73be
s3: Remove smbd_server_fd() from smbd_echo_loop
2010-08-16 22:39:25 +02:00
Volker Lendecke
2cd643865d
s3: Remove smbd_server_fd() from smbd_echo_reader
2010-08-16 22:39:25 +02:00
Volker Lendecke
a23483310d
s3: Remove smbd_server_fd() from smbd_echo_reply
2010-08-16 22:39:25 +02:00
Volker Lendecke
bb867df269
s3: Remove smbd_server_fd() from keepalive_fn
2010-08-16 22:39:25 +02:00
Volker Lendecke
a2bf46e9ec
s3: Remove smbd_server_fd() from smbd_server_connection_handler
2010-08-16 22:39:25 +02:00
Volker Lendecke
8e7a92bc24
s3: Remove smbd_server_fd() from smbd_server_connection_read_handler
2010-08-16 22:39:25 +02:00