1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-28 17:47:29 +03:00

58 Commits

Author SHA1 Message Date
Jeremy Allison
7e799b3036 Added a varient of Volker's patch to fix the "self-referrals as anonymous user"
problem.
Jeremy.
(This used to be commit 74de9a61407e6c5a15fc7becca085a1d40199080)
2004-03-18 02:17:23 +00:00
Jeremy Allison
03c0e32c28 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.
(This used to be commit 2979c3e388400fb030b94da5c711f803f81ae0b9)
2004-03-12 01:43:25 +00:00
Jeremy Allison
f2efeca274 Ensure we use check_path_syntax() to pull out DFS paths.
Jeremy
(This used to be commit 28f1e21c583ea9a7771d6e0134b09a7acd5f054d)
2004-03-11 00:42:33 +00:00
Jeremy Allison
2867b9e2a0 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.
(This used to be commit e2709f99fc4e603897472d3ba3bf1ca2e7ca728f)
2004-03-10 02:38:39 +00:00
Jeremy Allison
46a718189c Fix dfs referrals - don't use check_path_syntax. Also use mb char calls in
dfs code.
Jeremy.
(This used to be commit 42175b4518764e484d33d9fbfba3b78ba4102ead)
2004-03-09 23:26:58 +00:00
Jeremy Allison
438bfa6efb Remove references to 'jn' which gcc-3.4 with precompiled headers
doesn't like.
Jeremy.
(This used to be commit da51988cfac91e63f6e0213701aad652bc1bd55e)
2004-01-14 06:41:50 +00:00
Jeremy Allison
2e46c7648b Don't log at level zero when chdir fails. Ensure correct error message is returned.
Jeremy.
(This used to be commit 26bfe37a10f7337acb8c5ac0e04fac7a8dddc769)
2003-10-28 18:32:03 +00:00
Jeremy Allison
0ce2c6ecb8 Fix for bug #667. DFS filenames can now have arbitrary case.
Jeremy.
(This used to be commit 74148111e16a863d5a33511e5b15632a736d7e99)
2003-10-28 00:51:21 +00:00
Jeremy Allison
bb0598faf5 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.
(This used to be commit d7e35dfb9283d560d0ed2ab231f36ed92767dace)
2003-10-22 23:38:20 +00:00
Gerald Carter
88c95aa735 fix some warnings found by the Sun C compiler
(This used to be commit e1fac713e25692a5790c3261ba323732930f5249)
2003-09-22 17:53:59 +00:00
Tim Potter
678de276cd 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.
(This used to be commit cebb2abd2e946a5f9f2d84a7e8ae82eceecd0274)
2003-09-08 00:55:29 +00:00
Jeremy Allison
94f59f5492 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.
(This used to be commit f35e9a8b909d3c74be47083ccc4a4e91a14938db)
2003-09-05 19:59:55 +00:00
Tim Potter
2dacf5e00c Return 0 DFS links instead of -1 when dfs support is not enabled.
Possible fix for bug 403.
(This used to be commit 6babab93ff845c18f7c0d73e6a016764e31f4fac)
2003-09-05 00:55:44 +00:00
Jelmer Vernooij
5ac23a96a2 This file has been in the HOWTO for ages
(This used to be commit e97ff92a27eee81c5a6f648e3a898fed66c6a63f)
2003-08-14 00:07:42 +00:00
Gerald Carter
8829553b16 fix MS-DFS (my bug) stupid return code error that cose me more time
that I would like to admit.
(This used to be commit 082b1cf06fd3b144b9713045672028f16e20aff4)
2003-08-10 06:45:04 +00:00
Gerald Carter
2a091c4e89 need to make sure that the connection struct mem_ctx is initialized and destroyed
(This used to be commit e0c061b94d4cb181afcd70c5d6398e0c2f446449)
2003-08-08 05:10:12 +00:00
Jeremy Allison
ce72beb2b5 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.
(This used to be commit ff222716a08af65d26ad842ce4c2841cc6540959)
2003-07-03 19:11:31 +00:00
Alexander Bokovoy
bc2a3748e9 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
(This used to be commit c2689ed118b490e49497a76ed6a2251262018769)
2003-05-14 10:59:01 +00:00
Alexander Bokovoy
e7c8c15888 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
(This used to be commit 91984ef5caa2d13c5d52e1f535bd3bbbae1ec978)
2003-05-11 23:34:18 +00:00
Shirish Kalele
8a106dcda9 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.
(This used to be commit d6a326ba46b0e45a2d97b7aa9762bfefca347d89)
2003-04-23 19:06:21 +00:00
Shirish Kalele
5c6fde8eb1 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.
(This used to be commit 2c4e59cf26b7169fda824ca86e437a99a02345d2)
2003-04-10 19:54:17 +00:00
Jeremy Allison
b8fbb3189a Merge from HEAD. Use pstrcpy not safe_strcpy.
Jeremy.
(This used to be commit 9634b1fba059228d436198629a5c7cf01fb6736c)
2003-02-24 19:37:20 +00:00
Shirish Kalele
70f1fcb87b 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]
(This used to be commit 041a1dd543ae5c197e17aae0b35a41060efc35f0)
2003-02-11 01:45:48 +00:00
Shirish Kalele
df7b562de2 Modify DfsEnum to handle 'msdfs proxy' shares. No NETDFS editing support for
the proxy target.
(This used to be commit 560bb8a115049cd5de1c16087dfecb5b2b75293c)
2002-12-28 00:18:23 +00:00
Shirish Kalele
8701eb8db2 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.
(This used to be commit 514f548b183b73e1970989d47fb9e6a87e440748)
2002-12-27 20:08:35 +00:00
Andrew Tridgell
e90b652848 updated the 3.0 branch from the head branch - ready for alpha18
(This used to be commit 03ac082dcb375b6f3ca3d810a6a6367542bc23ce)
2002-07-15 10:35:28 +00:00
Tim Potter
cd68afe312 Removed version number from file header.
Changed "SMB/Netbios" to "SMB/CIFS" in file header.
(This used to be commit 6a58c9bd06d0d7502a24bf5ce5a2faf0a146edfa)
2002-01-30 06:08:46 +00:00
Herb Lewis
3ea3492713 get rid of compiler warnings (casts and delete unused variables)
(This used to be commit 51cb4411df61d1caec9d84809b1a53a6a632f808)
2001-10-23 19:10:30 +00:00
Tim Potter
f0e0dd6507 Renamed vfs_init() to smbd_vfs_init() to allow vfs modules to compile.
(This used to be commit 7c3542ba8764be48b88255dd7f73ea6d87be10ac)
2001-10-18 00:27:20 +00:00
Tim Potter
dc1fc3ee8e Removed 'extern int DEBUGLEVEL' as it is now in the smb.h header.
(This used to be commit 2d0922b0eabfdc0aaf1d0797482fef47ed7fde8e)
2001-10-02 04:29:50 +00:00
Simo Sorce
81fdc3c3f7 move to SAFE_FREE()
(This used to be commit e61aec84edaf55b9ee087b076d2f1311033dc839)
2001-09-17 04:16:35 +00:00
Tim Potter
544d0cf829 Terminate dfs referral alternate path string. DFS now works again in head
- hooray!
(This used to be commit 95df7ede465d835eb8ca1d1466c5153caf1a0d71)
2001-09-13 00:30:16 +00:00
Tim Potter
45762a62ce Converted msdfs referral server code to use rpcstr_push() functions. Still
doesn't work though.  )-:
(This used to be commit ec7296d6e9b5b61bac778c2093ee0cd0e23a2344)
2001-09-12 12:20:14 +00:00
Andrew Tridgell
39d7983a47 - 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
(This used to be commit b8651acb9c0d7248a6a2e82c33b1e43633fd83fd)
2001-09-12 03:08:51 +00:00
Tim Potter
e041c15c53 Hmm - needs to be converted to pull/push unistr routines. But at least it
compiles now which should keep the build farm happy.
(This used to be commit 5686a2cfe874e8b30bcb2781fa4bfe7ae0cefb17)
2001-09-12 01:15:24 +00:00
Andrew Tridgell
e8e98c9ea0 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
(This used to be commit 83d9896c1ea8be796192b51a4678c2a3b87f7518)
2001-08-27 08:19:43 +00:00
Simo Sorce
2e783a4707 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.
(This used to be commit fa8e55b8b465114ce209344965c1ca0333b84db9)
2001-08-12 17:30:01 +00:00
Andrew Tridgell
527e824293 strchr and strrchr are macros when compiling with optimisation in gcc, so we can't redefine them. damn.
(This used to be commit c41fc06376d1a2b83690612304e85010b5e5f3cf)
2001-07-04 07:36:09 +00:00
Andrew Tridgell
87fbb7092b 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.
(This used to be commit debb471267960e56005a741817ebd227ecfc512a)
2001-07-04 07:15:53 +00:00
Andrew Bartlett
13bd0453ee 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
(This used to be commit 58b981a56f99bce0e98c9e1752c99a69e3cb2a25)
2001-06-30 02:45:16 +00:00
Jeremy Allison
e2ced932db 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.
(This used to be commit c24e6b41ea60ab4bac2fcd19da947851d6df3c7c)
2001-06-29 22:32:24 +00:00
Jeremy Allison
f9a15ce1a6 Got "medieval on our ass" about adding the -1 to slprintf.
Jeremy.
(This used to be commit 94747b4639ed9b19f7d0fb896e43aa392a84989a)
2001-04-08 20:22:39 +00:00
Shirish Kalele
a149c6b025 Ran DFS on Linux and found that readlink() on Linux does not append NUL
to the link read. So add a NUL..
(This used to be commit 04ebcf954c7568fc16ff4a75b31715d6b0a34aa4)
2000-11-28 00:26:42 +00:00
Jeremy Allison
4d968ed35d Missing conn parameter missed in vfs rewrite.
Jeremy.
(This used to be commit 4eecc63be5bd11590972ee4f446b7a80d46a713b)
2000-10-09 00:06:30 +00:00
Shirish Kalele
8a86541e28 Changed MS_DFS to WITH_MSDFS throughout.
Fixed trans2 calls on IPC$ to let dfs referral calls through.
(This used to be commit e0965a80bdca5239886b11ef55dc29fed261bfc0)
2000-05-26 17:10:40 +00:00
Shirish Kalele
74d677ec59 Added the NETDFS pipe to allow remote administration of the msdfs symlinks
on the samba server.
(This used to be commit 15e7d8f6c5cddf6ce409ee2505744250d181ec34)
2000-05-18 18:43:53 +00:00
Shirish Kalele
651946153e 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.
(This used to be commit 6803d2574fab9e5931786d5c9aa5dc5867bb5f05)
2000-05-16 01:13:16 +00:00
Jeremy Allison
612738a9e1 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.
(This used to be commit 1ed146467e764e6a81d8f78cd58fb5765ebf5d21)
2000-05-10 22:47:09 +00:00
Shirish Kalele
bcaf1211f2 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.
(This used to be commit 462ea8b7fdaa528c3e9bfaca4fdd031888157124)
2000-04-17 22:40:02 +00:00
Shirish Kalele
483e61b97f 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.
(This used to be commit 3b79df24687afce4780884b7a784661f69752fe1)
2000-04-17 21:25:32 +00:00