1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-05 21:57:51 +03:00

26520 Commits

Author SHA1 Message Date
Michael Adam
268caef85e [s3]test: fix testparm_s3 tests: don't create truncated smb.conf files.
Use whole argument string in test_one_global_option(), not only first.

Michael
2008-10-27 13:02:36 +01:00
Michael Adam
65ca8eb3dd [s3]pdbedit: remove unused variable.
Note: The change of commit r21962 (or fe962d2e48, aka f540c18b2)
that was partly lost in the SVN->git glue commit e5a951325a6
(aka 5c6c8e1fe93f34) is not needed any more since the handler
for option "-s" calls set_dyn_CONFIGFILE().

Michael
2008-10-27 13:02:36 +01:00
Michael Adam
1c6aa01e1f [s3]build: fix bug #5677 - fix test_{shlibs,nss_modules,pam_modules} on Solaris
and other systems where sh does not support "export FOO=bar"
by separating setting and exporting the variable.

Thanks to Yasuma Takeda <yasuma@osstech.co.jp> for the patch.

Michael
2008-10-27 13:02:35 +01:00
Volker Lendecke
7bea6684c2 Add proxied named pipe support
This is a central piece of the "merged build" thing: Forward named pipes from
samba3 to samba4. This patch is not finished yet, as we will have to forward
the smb-level authentication information to samba4, but I'm pushing this patch
already to demonstrate the implementation without clutter.

It adds an intermediate parameter

np:proxy = srvsvc samr winreg wkssvc ... and so on

that states which of the pipes should be forwarded to the s4 unix domain socket
DEFAULT. The parameter is intermediate because once we have a proper endpoint
mapper implementation, this information will be retrieved out of a database.

If anybody wants to try this, do the merged build and configure s4 with

server services = samba3_smb, rpc, nbt, wrepl, ldap, cldap, kdc, drepl
samba3:smbd = /data/inst/sbin/smbd

and s3 with

auth methods = guest netlogond
np:proxy = srvsvc samr winreg wkssvc netlogon ntlsa ntsvcs lsass lsarpc netdfs \
rpcecho initshutdown epmapper svcctl eventlog drsuapi

Then run rpcclient against samba4. It will fork s3, which authenticates against
s4, and then forwards the rpc requests to s4.

Volker
2008-10-25 15:42:51 +02:00
Volker Lendecke
f87219d6e6 Move the is_known_pipename check into np_open 2008-10-25 15:23:36 +02:00
Volker Lendecke
1ad54998a9 Add str_list_check[_ci] to s3's proto.h
Jelmer, when I include lib/util/util.h into some s3 file I get errors, this is
why I put those prototypes here as a workaround. Might be fixed differently
later.
2008-10-25 13:50:25 +02:00
Volker Lendecke
5616480514 Fix "make etags" -- the args list gets really long for s4 with the prefix 2008-10-25 13:33:21 +02:00
Volker Lendecke
ff211be696 Remove "pipe_handle_offset" -- pipes now use "struct files_struct" 2008-10-25 12:09:58 +02:00
Derrell Lipman
2a76f4d8c8 Error return is False, not -1
- There were a few places in SMBC_getatr() that returned -1 instead of a
  boolean.  -1 was intended to mean error, but that's what False is for, and
  the usages of this function assume that it returns a boolean with False as
  the error condition.

Derrell
2008-10-24 10:31:31 -04:00
Jelmer Vernooij
ea474647f8 Revert Samba3 back to using its own charset handling code. 2008-10-24 16:05:15 +02:00
Jelmer Vernooij
56a0b035c6 Remove more uses of global_loadparm. 2008-10-24 14:31:16 +02:00
Jelmer Vernooij
2cabbb2eeb Merge branch 'master' of ssh://git.samba.org/data/git/samba 2008-10-24 04:19:08 +02:00
Jelmer Vernooij
9d679c9a67 Fix merged build paths. 2008-10-24 04:18:47 +02:00
Tim Prouty
0058176ae3 s3: fix simple "incompatible pointer type" build warning 2008-10-23 16:38:19 -07:00
Tim Prouty
1b42152454 Fix "ndr_size_PAC_LOGON_INFO defined but not used" build warning
This patch removes the gensize option from krb5pac.idl because it
generates an unused function that has been causing warnings during the
s3 build.  I re-ran 'make samba3-idl' to update the generated files
for s3.  For s4 I ran a full build with no problems.
2008-10-23 15:13:54 -07:00
Günther Deschner
0bfbae0f50 netapi: make sure to always cleanup after testing NetUser calls.
Guenther
2008-10-24 00:06:43 +02:00
Günther Deschner
d27bc7377a netapi: add more group tests to netapitest.
Guenther
2008-10-24 00:06:33 +02:00
Günther Deschner
3971492301 s3-samr-server: return NT_STATUS_NOT_SUPPORTED for group rename.
Guenther
2008-10-24 00:06:24 +02:00
Günther Deschner
2b364550a9 s3-samr-server: remove unused historic code.
Guenther
2008-10-24 00:06:16 +02:00
Günther Deschner
78a85f9e96 svcctl: move some non-rpc related bits out of rpc_svcctl.h.
Guenther
2008-10-24 00:06:07 +02:00
Jelmer Vernooij
ce0ac322b4 Fix prototype for set_sockaddr_port. 2008-10-23 23:20:50 +02:00
Jelmer Vernooij
f18296151d Merge branch 'master' of ssh://git.samba.org/data/git/samba 2008-10-23 21:59:15 +02:00
Tim Prouty
0b68762af7 Fix "parameter has incomplete type" build warning.
When libcli-util was moved to the top level
(3be0f6ea56ed8e43cd287ed020e942efb675b87b) it introduced a build
warning.  Since ndr_map_error2ntstatus depends on the definition of
enum ndr_err_code and libndr.h can't be easily included in error.h, I
moved the definition of enum ndr_err_code to libndr.h.

This also eliminates the need for the duplicate definition in proto.h
2008-10-23 12:21:44 -07:00
Jelmer Vernooij
22f566c39b Move set_sockaddr_port to libutil. 2008-10-23 21:08:13 +02:00
Jelmer Vernooij
7577d9ebf0 Merge branch 'master' of ssh://git.samba.org/data/git/samba 2008-10-23 20:42:30 +02:00
Jelmer Vernooij
fe36fe8c3e Use common net utility code (address and sockaddr manipulation). 2008-10-23 20:41:15 +02:00
Günther Deschner
27c4cf4e7b s3-build: add missing generated svcctl changes.
Guenther
2008-10-23 20:00:03 +02:00
Jelmer Vernooij
d6a5476ee7 Use sockaddr_storage only where we rely on the size, use sockaddr
otherwise (to clarify we can also pass in structs smaller than
sockaddr_storage, such as sockaddr_in).
2008-10-23 19:53:15 +02:00
Jelmer Vernooij
c17898db4e Merge branch 'master' of ssh://git.samba.org/data/git/samba 2008-10-23 18:50:34 +02:00
Jelmer Vernooij
81fabeff2d Use libutil genrand. 2008-10-23 18:46:35 +02:00
Günther Deschner
f36ffa7681 s3-build: remove duplicate svcctl bits and re-run make samba3-idl.
Guenther
2008-10-23 18:34:57 +02:00
Jelmer Vernooij
d805c714bb Merge branch 'master' of ssh://git.samba.org/data/git/samba 2008-10-23 17:51:30 +02:00
Volker Lendecke
097f40249c Make use of a large buffer for smbclient put command 2008-10-23 17:46:00 +02:00
Jelmer Vernooij
cf659fa4fe Import talloc_stack into util library. 2008-10-23 17:27:30 +02:00
Jelmer Vernooij
db65c3374a Merge branch 'master' of ssh://git.samba.org/data/git/samba 2008-10-23 17:12:16 +02:00
Jelmer Vernooij
5b5e36085a Share codepages. 2008-10-23 16:58:11 +02:00
Jelmer Vernooij
f9fb9436ae Use WERR_FILE_EXISTS which is the equivalent of WERR_ALREADY_EXISTS
previously present in Samba 3.
2008-10-23 15:37:39 +02:00
Jelmer Vernooij
44b728958a Use common error definitions. 2008-10-23 15:35:21 +02:00
Günther Deschner
8a3bff343a s3-build: fix another build warning with the new ASN1 code.
Guenther
2008-10-23 11:46:18 +02:00
Günther Deschner
b7c38abe27 netapi: fix add_GROUP_USERS_INFO_X_buffer.
Guenther
2008-10-23 11:46:18 +02:00
Günther Deschner
fafa608441 netapi: fix NetUserGetGroups_r returning partial results.
Guenther
2008-10-23 11:46:18 +02:00
Günther Deschner
6e058e5977 s3-samr-server: unify callback convention: _samr_UserSetInfo.
Guenther
2008-10-23 11:46:18 +02:00
Günther Deschner
3566efede2 s3-samr-server: unify callback convention: _samr_QueryDomainInfo.
Guenther
2008-10-23 11:46:18 +02:00
Günther Deschner
29737ab5da s3-samr-server: fix return code in _samr_QueryDisplayInformation.
Guenther
2008-10-23 11:46:18 +02:00
Jelmer Vernooij
60164e9002 Merge branch 'master' of ssh://git.samba.org/data/git/samba 2008-10-23 04:58:08 +02:00
Jelmer Vernooij
52923c4ff4 Remove unused copy of tables.pl 2008-10-23 03:07:27 +02:00
Jelmer Vernooij
ad50d78496 Remove unused copy of ndrdump.c. 2008-10-23 03:04:48 +02:00
Günther Deschner
d115c4587f s3-build: fix some const build warnings.
Guenther
2008-10-23 01:43:41 +02:00
Günther Deschner
c017909e2e netapi: NetGroupEnum_r needs to handle servers with no groups.
Guenther
2008-10-23 01:43:06 +02:00
Günther Deschner
74a9a391aa s3-samr-server: _samr_DeleteUser needs to wipe out the user_handle on success.
Guenther
2008-10-23 01:42:27 +02:00