summaryrefslogtreecommitdiffstats
path: root/source3/msdfs/msdfs.c
Commit message (Collapse)AuthorAgeFilesLines
* 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 (This used to be commit c2689ed118b490e49497a76ed6a2251262018769)
* 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 (This used to be commit 91984ef5caa2d13c5d52e1f535bd3bbbae1ec978)
* 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. (This used to be commit d6a326ba46b0e45a2d97b7aa9762bfefca347d89)
* 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. (This used to be commit 2c4e59cf26b7169fda824ca86e437a99a02345d2)
* Merge from HEAD. Use pstrcpy not safe_strcpy.Jeremy Allison2003-02-241-2/+2
| | | | | Jeremy. (This used to be commit 9634b1fba059228d436198629a5c7cf01fb6736c)
* 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] (This used to be commit 041a1dd543ae5c197e17aae0b35a41060efc35f0)
* Modify DfsEnum to handle 'msdfs proxy' shares. No NETDFS editing support forShirish Kalele2002-12-281-23/+27
| | | | | the proxy target. (This used to be commit 560bb8a115049cd5de1c16087dfecb5b2b75293c)
* 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. (This used to be commit 514f548b183b73e1970989d47fb9e6a87e440748)
* updated the 3.0 branch from the head branch - ready for alpha18Andrew Tridgell2002-07-151-239/+379
| | | | (This used to be commit 03ac082dcb375b6f3ca3d810a6a6367542bc23ce)
* Removed version number from file header.Tim Potter2002-01-301-2/+1
| | | | | Changed "SMB/Netbios" to "SMB/CIFS" in file header. (This used to be commit 6a58c9bd06d0d7502a24bf5ce5a2faf0a146edfa)
* get rid of compiler warnings (casts and delete unused variables)Herb Lewis2001-10-231-2/+2
| | | | (This used to be commit 51cb4411df61d1caec9d84809b1a53a6a632f808)
* Renamed vfs_init() to smbd_vfs_init() to allow vfs modules to compile.Tim Potter2001-10-181-1/+1
| | | | (This used to be commit 7c3542ba8764be48b88255dd7f73ea6d87be10ac)
* Removed 'extern int DEBUGLEVEL' as it is now in the smb.h header.Tim Potter2001-10-021-3/+0
| | | | (This used to be commit 2d0922b0eabfdc0aaf1d0797482fef47ed7fde8e)
* move to SAFE_FREE()Simo Sorce2001-09-171-2/+2
| | | | (This used to be commit e61aec84edaf55b9ee087b076d2f1311033dc839)
* Terminate dfs referral alternate path string. DFS now works again in headTim Potter2001-09-131-1/+1
| | | | | - hooray! (This used to be commit 95df7ede465d835eb8ca1d1466c5153caf1a0d71)
* Converted msdfs referral server code to use rpcstr_push() functions. StillTim Potter2001-09-121-12/+10
| | | | | doesn't work though. )-: (This used to be commit ec7296d6e9b5b61bac778c2093ee0cd0e23a2344)
* - 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 (This used to be commit b8651acb9c0d7248a6a2e82c33b1e43633fd83fd)
* 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. (This used to be commit 5686a2cfe874e8b30bcb2781fa4bfe7ae0cefb17)
* 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 used to be commit 83d9896c1ea8be796192b51a4678c2a3b87f7518)
* 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. (This used to be commit fa8e55b8b465114ce209344965c1ca0333b84db9)
* strchr and strrchr are macros when compiling with optimisation in gcc, so we ↵Andrew Tridgell2001-07-041-4/+4
| | | | | | can't redefine them. damn. (This used to be commit c41fc06376d1a2b83690612304e85010b5e5f3cf)
* 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 used to be commit debb471267960e56005a741817ebd227ecfc512a)
* 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 (This used to be commit 58b981a56f99bce0e98c9e1752c99a69e3cb2a25)
* 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. (This used to be commit c24e6b41ea60ab4bac2fcd19da947851d6df3c7c)
* Got "medieval on our ass" about adding the -1 to slprintf.Jeremy Allison2001-04-081-1/+1
| | | | | Jeremy. (This used to be commit 94747b4639ed9b19f7d0fb896e43aa392a84989a)
* 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.. (This used to be commit 04ebcf954c7568fc16ff4a75b31715d6b0a34aa4)
* Missing conn parameter missed in vfs rewrite.Jeremy Allison2000-10-091-1/+1
| | | | | Jeremy. (This used to be commit 4eecc63be5bd11590972ee4f446b7a80d46a713b)
* Changed MS_DFS to WITH_MSDFS throughout.Shirish Kalele2000-05-261-97/+115
| | | | | Fixed trans2 calls on IPC$ to let dfs referral calls through. (This used to be commit e0965a80bdca5239886b11ef55dc29fed261bfc0)
* Added the NETDFS pipe to allow remote administration of the msdfs symlinksShirish Kalele2000-05-181-35/+200
| | | | | on the samba server. (This used to be commit 15e7d8f6c5cddf6ce409ee2505744250d181ec34)
* The new msdfs implementation that uses symlinks to point to otherShirish Kalele2000-05-161-188/+328
| | | | | | | | | | | | | | | | | 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. (This used to be commit 6803d2574fab9e5931786d5c9aa5dc5867bb5f05)
* lib/util_unistr.c:Jeremy Allison2000-05-101-16/+0
| | | | | | | | | | | 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. (This used to be commit 1ed146467e764e6a81d8f78cd58fb5765ebf5d21)
* Corrected minor parsing errors.Shirish Kalele2000-04-171-1/+1
| | | | | | Not adding a Dfs junction to msdfs.tdb if it doesn't have any referred paths as parsed from the dfsmap file. (This used to be commit 462ea8b7fdaa528c3e9bfaca4fdd031888157124)
* Cleaned up unused variables, returns from non-void functions etc.Shirish Kalele2000-03-101-1/+1
| | | | (This used to be commit 6ce72c37429c3fc0629fdbd5f5656f07970a8e4a)
* Cleaning warnings from configure.developerShirish Kalele2000-03-101-5/+3
| | | | (This used to be commit c48579a4fc6c17126712f3a9a9c5212063a6a24d)
* Fixups for compiles with gcc flags -Wall -Wshadow -Wstrict-prototypes ↵Jeremy Allison2000-03-101-2/+2
| | | | | | | | -Wpointer-arith -Wcast-qual Partially implemented rpc daemon redirect (needs more work). Jeremy. (This used to be commit a462191698fa589ceac4afd14c652adf699eccad)
* Big update moving the multi-pdu support from 2.0.x into HEAD for JFJeremy Allison2000-03-091-8/+0
| | | | | | | | | | | | | 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. (This used to be commit 833cd9fba92e4ad5297b235d108dd2be8c17079b)
* dded Microsoft Dfs services.Shirish Kalele2000-03-081-0/+466
* 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 ---------------------------------------------------------------------- (This used to be commit 4684b4a188b54493dbe7f0de2909a8d3c5c3ebf9)