1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-12 09:18:10 +03:00
Commit Graph

36 Commits

Author SHA1 Message Date
Shirish Kalele
041a1dd543 Fix the msdfs proxy handling code in dfsenum to return the cumulative number of
dfs links encountered. Previously the number was being mistakenly reset to 1.
Thanks to Guenther Deschner <gd@suse.de> for pointing this out and a fix.
[Check into SAMBA_3_0]
0001-01-01 00:00:00 +00:00
Shirish Kalele
560bb8a115 Modify DfsEnum to handle 'msdfs proxy' shares. No NETDFS editing support for
the proxy target.
0001-01-01 00:00:00 +00:00
Shirish Kalele
514f548b18 Add msdfs proxy functionality; a CIFS share can directly be a stand-in for
another share, and when clients connect to the first share, they will be
redirected to the proxied share.
0001-01-01 00:00:00 +00:00
Andrew Tridgell
03ac082dcb updated the 3.0 branch from the head branch - ready for alpha18 0001-01-01 00:00:00 +00:00
Tim Potter
6a58c9bd06 Removed version number from file header.
Changed "SMB/Netbios" to "SMB/CIFS" in file header.
0001-01-01 00:00:00 +00:00
Herb Lewis
51cb4411df get rid of compiler warnings (casts and delete unused variables) 0001-01-01 00:00:00 +00:00
Tim Potter
7c3542ba87 Renamed vfs_init() to smbd_vfs_init() to allow vfs modules to compile. 0001-01-01 00:00:00 +00:00
Tim Potter
2d0922b0ea Removed 'extern int DEBUGLEVEL' as it is now in the smb.h header. 0001-01-01 00:00:00 +00:00
Simo Sorce
e61aec84ed move to SAFE_FREE() 0001-01-01 00:00:00 +00:00
Tim Potter
95df7ede46 Terminate dfs referral alternate path string. DFS now works again in head
- hooray!
0001-01-01 00:00:00 +00:00
Tim Potter
ec7296d6e9 Converted msdfs referral server code to use rpcstr_push() functions. Still
doesn't work though.  )-:
0001-01-01 00:00:00 +00:00
Andrew Tridgell
b8651acb9c - enable MSDFS by default, there seems no reason not to have it enabled
by default in Samba 3.x

- got rid of some unused parameters in Makefile.in

- declare DEBUGLEVEL in debug.h rather than in each file
0001-01-01 00:00:00 +00:00
Tim Potter
5686a2cfe8 Hmm - needs to be converted to pull/push unistr routines. But at least it
compiles now which should keep the build farm happy.
0001-01-01 00:00:00 +00:00
Andrew Tridgell
83d9896c1e converted smbd to use NTSTATUS by default
major changes include:

- added NSTATUS type
- added automatic mapping between dos and nt error codes
- changed all ERROR() calls to ERROR_DOS() and many to ERROR_NT()
  these calls auto-translate to the client error code system
- got rid of the cached error code and the writebmpx code

We eventually will need to also:
- get rid of BOOL, so we don't lose error info
- replace all ERROR_DOS() calls with ERROR_NT() calls

but that is too much for one night
0001-01-01 00:00:00 +00:00
Simo Sorce
fa8e55b8b4 this is a big global fix for the ptr = Realloc(ptr, size) bug.
many possible mem leaks, and segfaults fixed.

someone should port this fix to 2.2 also.
0001-01-01 00:00:00 +00:00
Andrew Tridgell
c41fc06376 strchr and strrchr are macros when compiling with optimisation in gcc, so we can't redefine them. damn. 0001-01-01 00:00:00 +00:00
Andrew Tridgell
debb471267 The big character set handling changeover!
This commit gets rid of all our old codepage handling and replaces it with
iconv. All internal strings in Samba are now in "unix" charset, which may
be multi-byte. See internals.doc and my posting to samba-technical for
a more complete explanation.
0001-01-01 00:00:00 +00:00
Andrew Bartlett
58b981a56f This should return the build to normallity.
When you update an #ifdef'ed function, also update its matching null function
or all hell breaks loose on the build farm!

Andrew Bartlett
0001-01-01 00:00:00 +00:00
Jeremy Allison
c24e6b41ea Ensured all the system calls in msdfs.c go through the vfs layer.
Added vfs calls to symlink() and readlink() with appropriate configure
checks.
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
94747b4639 Got "medieval on our ass" about adding the -1 to slprintf.
Jeremy.
0001-01-01 00:00:00 +00:00
Shirish Kalele
04ebcf954c Ran DFS on Linux and found that readlink() on Linux does not append NUL
to the link read. So add a NUL..
0001-01-01 00:00:00 +00:00
Jeremy Allison
4eecc63be5 Missing conn parameter missed in vfs rewrite.
Jeremy.
0001-01-01 00:00:00 +00:00
Shirish Kalele
e0965a80bd Changed MS_DFS to WITH_MSDFS throughout.
Fixed trans2 calls on IPC$ to let dfs referral calls through.
0001-01-01 00:00:00 +00:00
Shirish Kalele
15e7d8f6c5 Added the NETDFS pipe to allow remote administration of the msdfs symlinks
on the samba server.
0001-01-01 00:00:00 +00:00
Shirish Kalele
6803d2574f The new msdfs implementation that uses symlinks to point to other
servers. Very intuitive.

Removed the dfs map parsing code and tdb maintenance code (files
msdfs/parse_dfs_map.c & msdfs/msdfs_tdb.c), dfs map loading and unloading
calls (param/loadparm.c smbd/server.c).

Added code to display msdfs format symlinks as directories in a
transact2_findfirst/findnext. (smbd/trans2.c)

Modified msdfs/msdfs.c to use the msdfs symlinks to
create dfs referrals.

Changed msdfs/README to reflect new operability.
0001-01-01 00:00:00 +00:00
Jeremy Allison
1ed146467e lib/util_unistr.c:
libsmb/clilist.c:
rpc_server/srv_spoolss_nt.c:
smbd/trans2.c: Changed unistr_to_ascii to unistr_to_dos - do codepage conversion.
msdfs/msdfs.c: Removed stub unistr_to_dos.
libsmb/pwd_cache.c: Removed obfuscation functions as they don't do anything and
					don't add any security.
Jeremy.
0001-01-01 00:00:00 +00:00
Shirish Kalele
462ea8b7fd Corrected minor parsing errors.
Not adding a Dfs junction to msdfs.tdb if it doesn't have any referred paths
as parsed from the dfsmap file.
0001-01-01 00:00:00 +00:00
Shirish Kalele
3b79df2468 When parsing a dfs map for a service, see if the mount points exist that stand
for token junction points in the Dfs. If not, create these mount points as
subdirectories of the service directory.
0001-01-01 00:00:00 +00:00
Shirish Kalele
6ce72c3742 Cleaned up unused variables, returns from non-void functions etc. 0001-01-01 00:00:00 +00:00
Shirish Kalele
c48579a4fc Cleaning warnings from configure.developer 0001-01-01 00:00:00 +00:00
Shirish Kalele
ca02d9f821 Cleaning up the warnings from configure.developer.
Found that Jeremy had already made some of the changes.
0001-01-01 00:00:00 +00:00
Jeremy Allison
a462191698 Fixups for compiles with gcc flags -Wall -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-qual
Partially implemented rpc daemon redirect (needs more work).
Jeremy.
0001-01-01 00:00:00 +00:00
Jean-François Micouleau
87da4404ab getprinter level 0: was to short, found most of the fields, undocumented,
undecoded, nothing in MSDN, but now it works :-)

cleanup of error codes.
fixed some dfs declarations function.

	J.F.
0001-01-01 00:00:00 +00:00
Jeremy Allison
833cd9fba9 Big update moving the multi-pdu support from 2.0.x into HEAD for JF
and the printer functions.
Also tidied up some header includes and got the order right so you
can now do a :

make proto
make clean
make

Jeremy.
0001-01-01 00:00:00 +00:00
Shirish Kalele
a2d62cd30a Corrected DEBUG messages. 0001-01-01 00:00:00 +00:00
Shirish Kalele
4684b4a188 dded Microsoft Dfs services.
* added a new msdfs/ directory under source/
* added msdfs sources under this directory.
* modified configure setup to add a --with-msdfs configure time option

 Modified Files:
 	Makefile.in acconfig.h configure configure.in
 	include/config.h.in include/includes.h include/proto.h
 	include/smb.h include/smb_macros.h param/loadparm.c
 	smbd/negprot.c smbd/nttrans.c smbd/process.c smbd/reply.c
 	smbd/server.c smbd/trans2.c
 Added Files:
 	include/msdfs.h msdfs/README msdfs/msdfs.c msdfs/msdfs_tdb.c
 	msdfs/parse_dfs_map.c
 ----------------------------------------------------------------------
0001-01-01 00:00:00 +00:00