mirror of
https://github.com/samba-team/samba.git
synced 2024-12-27 03:21:53 +03:00
7bea6684c2
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
42 lines
1.3 KiB
C
42 lines
1.3 KiB
C
/*
|
|
Unix SMB/CIFS implementation.
|
|
FAKE FILE suppport, for faking up special files windows want access to
|
|
Copyright (C) Stefan (metze) Metzmacher 2003
|
|
|
|
This program is free software; you can redistribute it and/or modify
|
|
it under the terms of the GNU General Public License as published by
|
|
the Free Software Foundation; either version 3 of the License, or
|
|
(at your option) any later version.
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
GNU General Public License for more details.
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
*/
|
|
|
|
#ifndef _FAKE_FILE_H
|
|
#define _FAKE_FILE_H
|
|
|
|
enum FAKE_FILE_TYPE {
|
|
FAKE_FILE_TYPE_NONE = 0,
|
|
FAKE_FILE_TYPE_QUOTA,
|
|
FAKE_FILE_TYPE_NAMED_PIPE,
|
|
FAKE_FILE_TYPE_NAMED_PIPE_PROXY
|
|
};
|
|
|
|
/*
|
|
we now get the unix name --metze
|
|
*/
|
|
#define FAKE_FILE_NAME_QUOTA_WIN32 "\\$Extend\\$Quota:$Q:$INDEX_ALLOCATION"
|
|
#define FAKE_FILE_NAME_QUOTA_UNIX "$Extend/$Quota:$Q:$INDEX_ALLOCATION"
|
|
|
|
struct fake_file_handle {
|
|
enum FAKE_FILE_TYPE type;
|
|
void *private_data;
|
|
};
|
|
|
|
#endif /* _FAKE_FILE_H */
|