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

57 Commits

Author SHA1 Message Date
Jeremy Allison
2979c3e388 Allow msdfs symlink syntax to be more forgiving (it took me ages to remember
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.
-
Jeremy Allison
28f1e21c58 Ensure we use check_path_syntax() to pull out DFS paths.
Jeremy
-
Jeremy Allison
e2709f99fc Moving towards getting msdfs working again (this looks like it was broken
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.
-
Jeremy Allison
42175b4518 Fix dfs referrals - don't use check_path_syntax. Also use mb char calls in
dfs code.
Jeremy.
-
Jeremy Allison
da51988cfa Remove references to 'jn' which gcc-3.4 with precompiled headers
doesn't like.
Jeremy.
-
Jeremy Allison
26bfe37a10 Don't log at level zero when chdir fails. Ensure correct error message is returned.
Jeremy.
-
Jeremy Allison
74148111e1 Fix for bug #667. DFS filenames can now have arbitrary case.
Jeremy.
-
Jeremy Allison
d7e35dfb92 Put strcasecmp/strncasecmp on the banned list (except for needed calls
in iconv.c and nsswitch/). Using them means you're not thinking about multibyte at
all and I really want to discourage that.
Jeremy.
-
Gerald Carter
e1fac713e2 fix some warnings found by the Sun C compiler -
Tim Potter
cebb2abd2e When enumerating dfs shares loop from 0 to lp_numservices() instead of
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.
-
Jeremy Allison
f35e9a8b90 More tuning from cachegrind. Change most trim_string() calls to trim_char(0,
as that's what they do. Fix string_replace() to fast-path ascii.
Jeremy.
-
Tim Potter
6babab93ff Return 0 DFS links instead of -1 when dfs support is not enabled.
Possible fix for bug 403.
-
Jelmer Vernooij
e97ff92a27 This file has been in the HOWTO for ages -
Gerald Carter
082b1cf06f fix MS-DFS (my bug) stupid return code error that cose me more time
that I would like to admit.
-
Gerald Carter
e0c061b94d need to make sure that the connection struct mem_ctx is initialized and destroyed -
Jeremy Allison
ff222716a0 Removed strupper/strlower macros that automatically map to strupper_m/strlower_m.
I really want people to think about when they're using multibyte strings.
Jeremy.
-
Alexander Bokovoy
c2689ed118 Prefix VFS API macros with SMB_ for consistency and to avoid problems with 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 -
Alexander Bokovoy
91984ef5ca Fix VFS layer:
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
-
Shirish Kalele
d6a326ba46 For deep referrals, track consumed path using a counter, and calculate the
consumed count only if and when it is needed. Check into SAMBA_3_0.
-
Shirish Kalele
2c4e59cf26 Handle deep referrals: check whether each component in the requested path of
a dfs referral is a dfs link, and redirect.
Thanks to John Janosik <jpjanosi@us.ibm.com> for the patch.
-
Jeremy Allison
9634b1fba0 Merge from HEAD. Use pstrcpy not safe_strcpy.
Jeremy.
-
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]
-
Shirish Kalele
560bb8a115 Modify DfsEnum to handle 'msdfs proxy' shares. No NETDFS editing support for
the proxy target.
-
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.
-
Andrew Tridgell
03ac082dcb updated the 3.0 branch from the head branch - ready for alpha18 -
Tim Potter
6a58c9bd06 Removed version number from file header.
Changed "SMB/Netbios" to "SMB/CIFS" in file header.
-
Herb Lewis
51cb4411df get rid of compiler warnings (casts and delete unused variables) -
Tim Potter
7c3542ba87 Renamed vfs_init() to smbd_vfs_init() to allow vfs modules to compile. -
Tim Potter
2d0922b0ea Removed 'extern int DEBUGLEVEL' as it is now in the smb.h header. -
Simo Sorce
e61aec84ed move to SAFE_FREE() -
Tim Potter
95df7ede46 Terminate dfs referral alternate path string. DFS now works again in head
- hooray!
-
Tim Potter
ec7296d6e9 Converted msdfs referral server code to use rpcstr_push() functions. Still
doesn't work though.  )-:
-
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
-
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.
-
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
-
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.
-
Andrew Tridgell
c41fc06376 strchr and strrchr are macros when compiling with optimisation in gcc, so we can't redefine them. damn. -
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.
-
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
-
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.
-
Jeremy Allison
94747b4639 Got "medieval on our ass" about adding the -1 to slprintf.
Jeremy.
-
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..
-
Jeremy Allison
4eecc63be5 Missing conn parameter missed in vfs rewrite.
Jeremy.
-
Shirish Kalele
e0965a80bd Changed MS_DFS to WITH_MSDFS throughout.
Fixed trans2 calls on IPC$ to let dfs referral calls through.
-
Shirish Kalele
15e7d8f6c5 Added the NETDFS pipe to allow remote administration of the msdfs symlinks
on the samba server.
-
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.
-
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.
-
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.
-
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.
-
Shirish Kalele
6ce72c3742 Cleaned up unused variables, returns from non-void functions etc. -