summaryrefslogtreecommitdiffstats
path: root/source/msdfs
Commit message (Collapse)AuthorAgeFilesLines
* r160: Fix msdfs proxy. Could others please also test this, this code is sooVolker Lendecke2007-10-101-7/+9
| | | | | | | | | cluttered. I've tested with w2k and xp with msdfs proxy and normal msdfs root, but I would like others to also look at the code. Thanks, Volker
* Move the Client-IP based msdfs target expansion to a VFS module.Volker Lendecke2004-03-261-134/+5
| | | | Volker
* Always use strchr_m, not strchr on unix character sets.Jeremy Allison2004-03-261-4/+4
| | | | Jeremy.
* After briefly talking to jerry, commit this:Volker Lendecke2004-03-261-5/+134
| | | | | | | | | | | | | | | | | | | | | Redirect clients to shares based on the the client's IP address. The msdfs link has the following form: temp1 -> msdfs:@/data/tmp/redir@\temp The file /data/tmp/redir has the contents: 192.168.234.128 closest 192.168.234 close default Everything in between the @-signs in the link target is replaced by the substituion in the file. Jerry, errors in the filename expansion are now answered with NT_STATUS_OBJECT_NAME_NOT_FOUND Volker
* jra's patch -- fix anonymous self referral code to check that a share is an ↵Gerald Carter2004-03-251-6/+6
| | | | msdfs root first
* Added a varient of Volker's patch to fix the "self-referrals as anonymous user"Jeremy Allison2004-03-181-19/+49
| | | | | problem. Jeremy.
* Allow msdfs symlink syntax to be more forgiving (it took me ages to rememberJeremy Allison2004-03-121-4/+12
| | | | | | | | what it was :-). Allow msdfs links to now look like UNC paths : eg. sym_link -> msdfs://server/share/path/in/share or : sym_link -> msdfs:\\server\share\path\in\share Jeremy.
* Ensure we use check_path_syntax() to pull out DFS paths.Jeremy Allison2004-03-111-7/+2
| | | | Jeremy
* Moving towards getting msdfs working again (this looks like it was brokenJeremy Allison2004-03-101-5/+62
| | | | | | | in 3.0.2a actually). We now send a correct referral back, but the client refuses to follow it... Not sure why. Will do more tests.. Maybe unicode character count is wrong (it looks it). Jeremy.
* Fix dfs referrals - don't use check_path_syntax. Also use mb char calls inJeremy Allison2004-03-091-10/+9
| | | | | dfs code. Jeremy.
* Remove references to 'jn' which gcc-3.4 with precompiled headersJeremy Allison2004-01-141-36/+36
| | | | | doesn't like. Jeremy.
* Don't log at level zero when chdir fails. Ensure correct error message is ↵Jeremy Allison2003-10-281-1/+2
| | | | | | returned. Jeremy.
* Fix for bug #667. DFS filenames can now have arbitrary case.Jeremy Allison2003-10-281-47/+46
| | | | Jeremy.
* Put strcasecmp/strncasecmp on the banned list (except for needed callsJeremy Allison2003-10-221-3/+3
| | | | | | in iconv.c and nsswitch/). Using them means you're not thinking about multibyte at all and I really want to discourage that. Jeremy.
* fix some warnings found by the Sun C compilerGerald Carter2003-09-221-1/+1
|
* When enumerating dfs shares loop from 0 to lp_numservices() instead ofTim Potter2003-09-081-1/+1
| | | | | | | relying on lp_servicename(n) to return an empty string for invalid service numbers. For some reason it is returning NULL now. Fixes bug 403.
* More tuning from cachegrind. Change most trim_string() calls to trim_char(0,Jeremy Allison2003-09-051-3/+3
| | | | | as that's what they do. Fix string_replace() to fast-path ascii. Jeremy.
* Return 0 DFS links instead of -1 when dfs support is not enabled.Tim Potter2003-09-051-1/+1
| | | | Possible fix for bug 403.
* This file has been in the HOWTO for agesJelmer Vernooij2003-08-141-32/+0
|
* fix MS-DFS (my bug) stupid return code error that cose me more timeGerald Carter2003-08-101-0/+2
| | | | that I would like to admit.
* need to make sure that the connection struct mem_ctx is initialized and ↵Gerald Carter2003-08-081-25/+48
| | | | destroyed
* Removed strupper/strlower macros that automatically map to ↵Jeremy Allison2003-07-031-2/+2
| | | | | | | strupper_m/strlower_m. I really want people to think about when they're using multibyte strings. Jeremy.
* Prefix VFS API macros with SMB_ for consistency and to avoid problems with ↵Alexander Bokovoy2003-05-141-7/+7
| | | | VFS_ macros at system side. We currently have one clash with AIX and its VFS_LOCK. Compiled and tested -- no new functionality or code, just plain rename of macros for yet-unreleased VFS API version. Needs to be done before a24 is out
* Fix VFS layer:Alexander Bokovoy2003-05-111-7/+7
| | | | | | | | | 1. Finally work with cascaded modules with private data storage per module 2. Convert VFS API to macro calls to simplify cascading 3. Add quota support to VFS layer (prepare to NT quota support) Patch by Stefan (metze) Metzemacher, with review of Jelmer and me Tested in past few weeks. Documentation to new VFS API for third-party developers to follow
* For deep referrals, track consumed path using a counter, and calculate theShirish Kalele2003-04-231-10/+11
| | | | consumed count only if and when it is needed. Check into SAMBA_3_0.
* Handle deep referrals: check whether each component in the requested path ofShirish Kalele2003-04-101-9/+10
| | | | | a dfs referral is a dfs link, and redirect. Thanks to John Janosik <jpjanosi@us.ibm.com> for the patch.
* Merge from HEAD. Use pstrcpy not safe_strcpy.Jeremy Allison2003-02-241-2/+2
| | | | Jeremy.
* Fix the msdfs proxy handling code in dfsenum to return the cumulative number ofShirish Kalele2003-02-111-1/+1
| | | | | | 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]
* Modify DfsEnum to handle 'msdfs proxy' shares. No NETDFS editing support forShirish Kalele2002-12-281-23/+27
| | | | the proxy target.
* Add msdfs proxy functionality; a CIFS share can directly be a stand-in forShirish Kalele2002-12-271-1/+21
| | | | | another share, and when clients connect to the first share, they will be redirected to the proxied share.
* updated the 3.0 branch from the head branch - ready for alpha18Andrew Tridgell2002-07-151-239/+379
|
* Removed version number from file header.Tim Potter2002-01-301-2/+1
| | | | Changed "SMB/Netbios" to "SMB/CIFS" in file header.
* get rid of compiler warnings (casts and delete unused variables)Herb Lewis2001-10-231-2/+2
|
* Renamed vfs_init() to smbd_vfs_init() to allow vfs modules to compile.Tim Potter2001-10-181-1/+1
|
* Removed 'extern int DEBUGLEVEL' as it is now in the smb.h header.Tim Potter2001-10-021-3/+0
|
* move to SAFE_FREE()Simo Sorce2001-09-171-2/+2
|
* Terminate dfs referral alternate path string. DFS now works again in headTim Potter2001-09-131-1/+1
| | | | - hooray!
* Converted msdfs referral server code to use rpcstr_push() functions. StillTim Potter2001-09-121-12/+10
| | | | doesn't work though. )-:
* - enable MSDFS by default, there seems no reason not to have it enabledAndrew Tridgell2001-09-121-15/+0
| | | | | | | | 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
* Hmm - needs to be converted to pull/push unistr routines. But at least itTim Potter2001-09-121-2/+8
| | | | compiles now which should keep the build farm happy.
* converted smbd to use NTSTATUS by defaultAndrew Tridgell2001-08-271-12/+0
| | | | | | | | | | | | | | | | 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
* this is a big global fix for the ptr = Realloc(ptr, size) bug.Simo Sorce2001-08-121-2/+4
| | | | | | many possible mem leaks, and segfaults fixed. someone should port this fix to 2.2 also.
* strchr and strrchr are macros when compiling with optimisation in gcc, so we ↵Andrew Tridgell2001-07-041-4/+4
| | | | can't redefine them. damn.
* The big character set handling changeover!Andrew Tridgell2001-07-041-4/+4
| | | | | | | 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.
* This should return the build to normallity.Andrew Bartlett2001-06-301-2/+1
| | | | | | | When you update an #ifdef'ed function, also update its matching null function or all hell breaks loose on the build farm! Andrew Bartlett
* Ensured all the system calls in msdfs.c go through the vfs layer.Jeremy Allison2001-06-291-569/+567
| | | | | | Added vfs calls to symlink() and readlink() with appropriate configure checks. Jeremy.
* Got "medieval on our ass" about adding the -1 to slprintf.Jeremy Allison2001-04-081-1/+1
| | | | Jeremy.
* Ran DFS on Linux and found that readlink() on Linux does not append NULShirish Kalele2000-11-281-1/+3
| | | | to the link read. So add a NUL..
* Missing conn parameter missed in vfs rewrite.Jeremy Allison2000-10-091-1/+1
| | | | Jeremy.
* Changed MS_DFS to WITH_MSDFS throughout.Shirish Kalele2000-05-261-97/+115
| | | | Fixed trans2 calls on IPC$ to let dfs referral calls through.