1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-14 19:24:43 +03:00

26690 Commits

Author SHA1 Message Date
Günther Deschner
d6426f1f9a Re-run make idl.
Guenther
(This used to be commit 1b6083449fbc2a252c046a0757c411be64e6b6c0)
2008-04-01 00:26:32 +02:00
Günther Deschner
2a957b38b3 Use uint32 in max_users field in SRVSVC ShareInfo levels consistently.
Guenther
(This used to be commit 29c42792567870f3dc23363f4357fecbec862937)
2008-04-01 00:26:32 +02:00
Günther Deschner
dbe34cf0ae Fix _srvsvc_NetShareSetInfo.
Guenther
(This used to be commit 2fd90b62d7e61fa0c23f8f41e9f12fc16f29a8b1)
2008-04-01 00:26:32 +02:00
Michael Adam
96801c3f63 test: add test script for testing "net registry".
Michael
(This used to be commit fa5968a26b552d7f13574a826e506ed2d6630feb)
2008-04-01 00:09:59 +02:00
Jeff Layton
161db3e8e8 mount.cifs: fix several problems when mounting subdirectories of shares (try 2)
This patch is the second patch to attempt to fix up some of the problems
with mounting subdirectories of shares. The earlier patch didn't handle
this correctly when POSIX extensions were enabled. This one does.

This is a bit of a confusing area since the different components of
a service string have different rules:

1) hostname: no '/' (slash) or '\' (backslash) is allowed to be
	     embedded within the string

2) sharename: same rules as hostname

3) prefixpath: '\' *is* allowed to be embedded in a path component,
	       iff POSIX extensions are enabled. Otherwise, neither
	       character is allowed.

The idea here is to allow either character to act as a delimiter when we
know that the character can't be anything but a delimiter (namely
everywhere up to the start of the prefixpath). The patch will convert
any '\' unconditionally to '/' in the UNC portion of the string.

However, inside the prefixpath, we can't make assumptions about what
constitutes a delimiter because POSIX allows for embedded '\'
characters. So there we don't attempt to do any conversion, and pass the
prefixpath to the kernel as is. Once the kernel determines whether POSIX
extensions are enabled, it can then convert the path if needed and it's
able to do so. A patch to handle this has already been committed to the
cifs-2.6 git tree.

This patch also fixes an annoyance. When you mount a subdir of a share,
mount.cifs munges the device string so that you can't tell what the
prefixpath is. So if I mount:

	//server/share/p1/p2/p3

..then /proc/mounts and mtab will show only:

	//server/share

Finally, it also tries to apply some consistent rules to the uppercasing
of strings.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
(This used to be commit e03d1dfdb80333c071b600245eb749ef5664aa22)
2008-03-31 16:05:20 -04:00
Gerald W. Carter
8940fd09a6 Patch from Nicholas Brealey <nick@brealey.org> to distinguish between WinXP and WinXP64.
Defines a new value for the %a variable when detecting a Windows XP 64-bit client.
(This used to be commit 0c94918fb52c5345ce30490046b79f81712c30bf)
2008-03-31 14:34:43 -05:00
Günther Deschner
4369c14a66 Re-add support for the samr parameters string.
(dialin settings, terminal server settings, etc.)

Guenther
(This used to be commit c4f248df8e34c6a028bf8d789fe9763b0ea063fe)
2008-03-31 20:55:40 +02:00
Günther Deschner
09ab0d11e5 Re-run make idl.
Guenther
(This used to be commit 35a70c65beed1c4a1fab4113af7a5b232f23063b)
2008-03-31 20:55:40 +02:00
Günther Deschner
b65da1326e The parameters string (aka munged dial string) in samr is not a normal lsa_String.
Guenther
(This used to be commit 98606c667a425113d87b2756ee7df34f67445539)
2008-03-31 20:55:40 +02:00
Günther Deschner
e8775623bd Add init_samr_parameters_string().
Guenther
(This used to be commit 8f6f0d1601cb93af51f8d493382cd707c3eb0cdf)
2008-03-31 20:55:40 +02:00
Gerald W. Carter
5414a21ba3 Fix enumeration of forest trusts from our root domain.
Do not overwrite the domain->domain_flags when setting infomation
in set_dc_type_and_flags_connect().
(This used to be commit 3414eac439b731ad7204b821ddc4fec54fe4435d)
2008-03-31 13:40:58 -05:00
Gerald W. Carter
0552d7df54 DIsplay the short domain name in "wbinfo -m " by default.
This fixes wbinfo -m to make preexisting behavior.
Also adds the dns domain to the --verbose output.
(This used to be commit b68caaa81bd75bb882c9363612d11d49dd73cb6f)
2008-03-31 13:40:58 -05:00
Steven Danneman
2b70174e1b Augmented "wbinfo -m" to list additional information about the type, direction, and transitivty of trusts.
* added several helper functions to convert the trust_flags field in the
winbindd_tdc_domain to more useful administrator ideas of trust type, trust
direction, and trust transitivity.

* converted winbindd_list_trusted_domains() to enumerate the trusted domain
cache, instead of the domain list, and return additional trust information to
the calling process

* modified wbinfo to pretty print this additional trust information when a new
--verbose switch is given with -m.  Thus "wbinfo -m" and "wbinfo -all-domains"
output as before, but "wbinfo --verbose -m" prints extra trust info.

* updated some comments and fixed typos
(This used to be commit e7827bb6afa264c12ecdc0858f49707ca3d6104f)
2008-03-31 13:40:58 -05:00
Steven Danneman
223071f01d Forest root trust flags won't overwrite child trust flags
* changed the behavior of winbind_ads.c:trusted_domains() to not overwrite
existing trust information if we're joined to a child domain, and querying the
forest root domain.  Previously if we were joined to a child domain, we'd
request all known trust information from this child domain (our primary domain)
and store it in the tdc.  We'd then request all trust information from our tree
root (to get the forests we transitively trust) and overwrite the existing trust
information we already had from the perspective of the tree root.

* updated several comments and fixed typos
(This used to be commit 6aac972d790ad5ca65096cb2e85e6819b60a5413)
2008-03-31 13:40:58 -05:00
Michael Adam
0ad8a002ce test: add (and unify) sectioning output of subtests in tests_all.sh
Michael
(This used to be commit d775194e9c7b75182c485fba427b20ec2bfcf16c)
2008-03-31 17:22:03 +02:00
Michael Adam
0c3b8e2cab test: add possibility to select tests to run via tests_all.sh (make test)
This allows to select the tests to run with tests_all.sh by setting
the environment variable "RUNTESTS". Example:

RUNTESTS="smbclient_s3_encrypted wbinfo_s3" make test

Michael
(This used to be commit bf4af79f050cceb6611a8aa3d893b59b816a41ce)
2008-03-31 17:22:03 +02:00
Michael Adam
e3aef196e4 test: in tests_all.sh, wrap calls to test scripts into shell functions.
This is in preparation for enabling running only selected test scripts
through "make test".

Michael
(This used to be commit ad1fbadf81c915425301ec495744c11f3103169f)
2008-03-31 17:22:02 +02:00
Michael Adam
0bf8ba9f26 registry: reg_deletevalue should return error, when the value does not exist.
Michael
(This used to be commit 04b48984bbf84c55bb41a74a11cbcc7358377fed)
2008-03-31 17:22:02 +02:00
Stefan Metzmacher
f4a1e30be5 wbinfo: use wbcAllocateGid()
metze
(This used to be commit 960c069a2354e0803e2cbf22c26e1a9d0b657b79)
2008-03-31 12:17:37 +02:00
Stefan Metzmacher
0b7610b9c9 wbinfo: use wbcAllocateUid()
metze
(This used to be commit a7d735df292cee7dd6e23c7d2328481d57162904)
2008-03-31 12:17:37 +02:00
Stefan Metzmacher
9f110a7353 wbinfo: use wbcSidToGid()
metze
(This used to be commit 43df48bdca1a71fa44b24bb3917869f886555d9c)
2008-03-31 12:17:36 +02:00
Stefan Metzmacher
3dc1545b24 wbinfo: use wbcSidToUid()
metze
(This used to be commit a25b39cac1716323154dd30acb30180d3273587b)
2008-03-31 12:17:36 +02:00
Stefan Metzmacher
d3a6368cfd wbinfo: use wbcGitToSid()
metze
(This used to be commit 9936d861a1c1163ce6fd079211b50fd9b52bc05d)
2008-03-31 12:17:35 +02:00
Stefan Metzmacher
aa4033a21e wbinfo: use wbcUidToSid()
metze
(This used to be commit 4766ebf7ac8d33f9cd0f983ecdc54ef44959648b)
2008-03-31 12:17:35 +02:00
Stefan Metzmacher
fd8cf63811 wbinfo: use wbcPing()
metze
(This used to be commit 9a2f0b21925e630fa9b268cedbc19cf814686b42)
2008-03-31 12:17:34 +02:00
Michael Adam
3ea216f888 build: fix configure option --with-static-libs=libXYZ
This should not prevent building but linking of shared lib for
subsystem XYZ (example --with-static-libs=libtdb).

m4 quotation is tricky...

Michael
(This used to be commit 4d0a5d5c93ddab444a0097e1c56e4363574cb2b6)
2008-03-31 11:58:35 +02:00
Michael Adam
ce0bbc82fd Revert "regdb: use dbwrap->fetch() instead of fetch_locked() for readonly access"
This reverts commit 4e2be189e97f653b75bd88135a631ce0f42db267.

Metze, this broke the registry (reg_api layer), but I don't yet know
exactly how and why. By the way, the locks there had the purpose of
fetching the seqnum that really matches the data.

This needs some more thought / debugging. But I wanted to have
the tree in a working state again.

Michael
(This used to be commit 5c28c74aa06a82559f498373b3d6e9892d5c2cbe)
2008-03-30 03:05:34 +02:00
Volker Lendecke
7f71d1e8bd Fix a segfault (an uninitialized variable)
(This used to be commit 75eb30884a83266fd7331d8f1e3905a0245bb3d8)
2008-03-29 13:28:37 +01:00
Michael Adam
2487f0c88c winbindd_cache: add missing validation function for pwinfo cache entry
Michael
(This used to be commit 6d3fc63bfab06346fa57719e8747397873a3c46d)
2008-03-29 02:10:41 +01:00
Jeremy Allison
43fdd1748c Fix missing '&&'.
Jeremy.
(This used to be commit 251df53811e4272b629575a4b50c29a99715ccf9)
2008-03-28 17:32:52 -07:00
Jeremy Allison
fba9aa4ecf Merge branch 'v3-2-test' of ssh://jra@git.samba.org/data/git/samba into v3-2-test
(This used to be commit 985bd1e642b6e54f1bc95cd4cfcceb96107e383d)
2008-03-28 17:31:33 -07:00
Jeremy Allison
e00bfc5092 Only allow sendfile on non-stream fsp's. Should fix make test for streams
as sendfile isn't implemented in the streams vfs modules yet.
Jeremy.
(This used to be commit eef53e9603d4f3d892ffe00b061def5d717ca481)
2008-03-28 17:31:06 -07:00
Günther Deschner
9e328fe942 Zero initial return_authenticator in net rpc samdump.
Guenther
(This used to be commit 73ead752c5ec7104ea0eed7d963dc36467c81981)
2008-03-29 00:49:09 +01:00
Günther Deschner
4ce88f719e Don't let winbind getgroups crash when we have no gids in the token.
Guenther
(This used to be commit 6a576cfe9b87e69af6acbe9abc04124b8b743fd3)
2008-03-29 00:47:42 +01:00
Günther Deschner
25da02554b Re-run make idl.
Guenther
(This used to be commit 58018ad7f65409d971e5db7165f1b32b572cc275)
2008-03-28 23:46:26 +01:00
Günther Deschner
3fac37d0ff Fill in netr_NegotiateFlags.
Guenther
(This used to be commit 1cd1c27a0e5aa87682820c8dd81188b7bcc6551a)
2008-03-28 23:44:43 +01:00
Günther Deschner
921bdec52d Add some paranoia fixes for _wkssvc_NetrJoinDomain2/UnjoinDomain2.
Guenther
(This used to be commit 72101a7d0868b19a413b17f8142637f92c6cdad5)
2008-03-28 23:43:31 +01:00
Stefan Metzmacher
e191b0edd5 mapping_ldb: fix memory leak in group enumeration
metze
(This used to be commit 235c056a0ecbb70b21a2572d42c32067dd699988)
2008-03-28 19:48:42 +01:00
Jeremy Allison
d1e99642f7 Fix bug #5326 - OS/2 servers give strange "high word" replies for print jobs.
Jeremy.
(This used to be commit d090d25cb702965b3d5e4635a26a06f2b62d235d)
2008-03-28 10:12:07 -07:00
Günther Deschner
8b29c8f634 Support "net ads join" format while joining to a specific ou.
libnetjoin now supports Computers/Servers/Unix as well as
ou=Computers,ou=Servers,ou=Unix,dc=ber,dc=realm,dc=com.

Guenther
(This used to be commit c0be84c96d8133c6b77d1f0efe41f5f2373febb3)
2008-03-28 16:43:59 +01:00
Günther Deschner
33a3766f03 Add ads_check_ou_dn().
Guenther
(This used to be commit 380e9d26db5341d10807ccbfb413d0f53d3ffc71)
2008-03-28 16:43:59 +01:00
Michael Adam
9644b6cb50 Add a talloc context parameter to current_timestring() to fix memleaks.
current_timestring used to return a string talloced to talloc_tos().
When called by DEBUG from a TALLOC_FREE, this produced messages
"no talloc stackframe around, leaking memory". For example when
used from net conf.

This also adds a temporary talloc context to alloc_sub_basic().
For this purpose, the exit strategy is slightly altered: a common
exit point is used for success and failure.

Michael
(This used to be commit 16b5800d4e3a8b88bac67b2550d14e0aaaa302a9)
2008-03-28 16:34:51 +01:00
Michael Adam
cc2f5fd1b5 srv_winreg: add a debug message to _winreg_CreateKey().
Michael
(This used to be commit 971f6749ed23523f6eafe5136f6d4c920c20aec4)
2008-03-28 16:19:35 +01:00
Michael Adam
fb6fb69966 net: add a "net registry" subcommand to locally access the registry.
The interface is like that of net rpc registry.
Access is direct local access to the registry tdb through reg_api.

Michael
(This used to be commit 3250068eb980bd0489f814f702401cdc9c925a8d)
2008-03-28 16:19:35 +01:00
Volker Lendecke
8f6b03b673 More ssize_t->SMB_OFF_T
(This used to be commit 8dd6458049d1b9d6849730ac19c39b049a68f302)
2008-03-28 15:32:02 +01:00
Stefan Metzmacher
5273f05b89 libreplace(samba4): let LIBREPLACE depend on LIBREPLACE_NETWORK for now
This should fix the build on solaris.
Later this needs better fixing...

metze
(cherry picked from commit 89b7955733c34e9699a3b43ee54de92cb9469b90)
(This used to be commit fcb497951a86551ce9c4be7b352335dad3be127a)
2008-03-28 15:17:54 +01:00
Stefan Metzmacher
0f4446d6b2 wbinfo: use wbcDomainInfo()
metze
(This used to be commit 7714f9232110b2ee50e6ba8371f0bc23b83717a6)
2008-03-28 15:11:42 +01:00
Stefan Metzmacher
b6e3a9b8e5 wbinfo: use wbcGetgrnam()
metze
(This used to be commit 8945dce4a18874bdf1a57f1ff8116a66a6f699a0)
2008-03-28 15:11:42 +01:00
Stefan Metzmacher
8686d47bad wbinfo: use wbcListUsers() and wbcListGroups()
metze
(This used to be commit 5a0ae1ad0c36e5ef97008a2c6bc2a921ca6538bd)
2008-03-28 15:11:42 +01:00
Stefan Metzmacher
87ea917e5d wbinfo: use wbcLookupUserSids()
metze
(This used to be commit ff16b66631bc93909c0e7adf9e6bb1cf1d641ffd)
2008-03-28 15:11:41 +01:00