Contributor: Jim Doyle <doyle@oec.com>
Date: 06-02-95
Status: Current but needs updating
Subject: Basic DCE/DFS Support for SAMBA 1.9.13
=============================================================================
Functionality:
--------------
Per-instance authentication for DCE/DFS.
Missing Functionality in this Implementation:
---------------------------------------------
* No automatic refresh of credentials
To do so would not be that hard.. One could simply
stash the clear-text key in memory, spawn a key management
thread to wake up right before credentials expire and
refresh the login context.
* No UNIX Signals support (SIGCLD, SIGPIPE, SIGHUP, SIGBUS, SIGSEGV)
There is no support for signal processing in Samba daemons
that need to authenticate with DCE. The explanation for this
is that the smbd is linked against thread-safe libraries in
order to be able to use DCE authentication mechanisms.
Because smbd uses signal() and fork(), it represents the
worst case scenario for DCE portability. In order
to properly support signals in a forked server environment,
some rework of smbd is needed in order to properly
construct, shutdown and reconstruct asynchronous signal
handling threads and synchronous signal traps across the
parent and child. I have not had contiguous time to work
on it, I expect it to be a weeks worth of work to cleanly
integrate thread-safe signal handing into the code and
test it. Until I can get to this task, I will leave it up
to someone adventurous enough to engineer it and negotiate
with Andrew to integrate the changes into the mainline branch.
The lack of full signal support means that you cannot
rely upon SIGHUP-ing the parent daemon to refresh
the configuration data. Likewise, you cannot take advantage
of the builtin SIGBUS/SIGSEGV traps to diagnose failures.
You will have to halt Samba in order to make changes
and then have them take effect.
The SMBD server as it stands is suitable to use if you
already have experience with configuring and running
SAMBA.
Tested Platforms:
-----------------
HP-UX 9.05 / HP-UX DCE 1.2.1
AIX 3.2.5 / AIX DCE/6000 1.3
DEC OSF-1 3.0 / DEC DCE 1.3
Building:
---------
- Uncomment the the appropriate block in the Makefile
for the platform you wish to build on.
- Samples of Samba server configuration files for our
DFS environment are included in samples.dcedfs/
Bugs, Suggestions, etc..
--------------------------
Please post them to the mailing list.
That way I will see them and they will become part of
the archives so others can share the knowledge.
$B!|(B samba $BF|K\8lBP1~$K$D$$$F(B
1. $BL\E*(B
$BF|K\8lBP1~$O!"(B
(1) MS-Windows $B>e$G!"4A;z%U%!%$%kL>$r$I$&$7$F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(B
$B("(Bjis7 $B("(B\E$B $B("(B\E(J $B("(B0x0e $B("(B0x0f $B("(B\E(J $B("(Bjis 7$BC10LId9f(B $B("(B
$B("(Bjunet $B("(B\E$B $B("(B\E(J $B("(B\E(I $B("(B\E(J $B("(B\E(J $B("(B7bits $B%3!<%I(B $B("(B
$B("(Bjis8 $B("(B\E$B $B("(B\E(J $B("(B-- $B("(B-- $B("(B\E(J $B("(Bjis 8$BC10LId9f(B $B("(B
$B("(Bj7bb $B("(B\E$B $B("(B\E(B $B("(B0x0e $B("(B0x0f $B("(B\E(B $B("(B $B("(B
$B("(Bj7bj $B("(B\E$B $B("(B\E(J $B("(B0x0e $B("(B0x0f $B("(B\E(J $B("(Bjis7$B$HF1$8(B $B("(B
$B("(Bj7bh $B("(B\E$B $B("(B\E(H $B("(B0x0e $B("(B0x0f $B("(B\E(H $B("(B $B("(B
$B("(Bj7@b $B("(B\E$@ $B("(B\E(B $B("(B0x0e $B("(B0x0f $B("(B\E(B $B("(B $B("(B
$B("(Bj7@j $B("(B\E$@ $B("(B\E(J $B("(B0x0e $B("(B0x0f $B("(B\E(J $B("(B $B("(B
$B("(Bj7@h $B("(B\E$@ $B("(B\E(H $B("(B0x0e $B("(B0x0f $B("(B\E(H $B("(B $B("(B
$B("(Bj8bb $B("(B\E$B $B("(B\E(B $B("(B-- $B("(B-- $B("(B\E(B $B("(B $B("(B
$B("(Bj8bj $B("(B\E$B $B("(B\E(J $B("(B-- $B("(B-- $B("(B\E(J $B("(Bjis8$B$HF1$8(B $B("(B
$B("(Bj8bh $B("(B\E$B $B("(B\E(H $B("(B-- $B("(B-- $B("(B\E(H $B("(B $B("(B
$B("(Bj8@b $B("(B\E@@ $B("(B\E(B $B("(B-- $B("(B-- $B("(B\E(B $B("(B $B("(B
$B("(Bj8@j $B("(B\E$@ $B("(B\E(J $B("(B-- $B("(B-- $B("(B\E(J $B("(B $B("(B
$B("(Bj8@h $B("(B\E$@ $B("(B\E(H $B("(B-- $B("(B-- $B("(B\E(H $B("(B $B("(B
$B("(Bjubb $B("(B\E$B $B("(B\E(B $B("(B\E(I $B("(B\E(B $B("(B\E(B $B("(B $B("(B
$B("(Bjubj $B("(B\E$B $B("(B\E(J $B("(B\E(I $B("(B\E(J $B("(B\E(J $B("(Bjunet$B$HF1$8(B $B("(B
$B("(Bjubh $B("(B\E$B $B("(B\E(H $B("(B\E(I $B("(B\E(H $B("(B\E(H $B("(B $B("(B
$B("(Bju@b $B("(B\E$@ $B("(B\E(B $B("(B\E(I $B("(B\E(B $B("(B\E(B $B("(B $B("(B
$B("(Bju@j $B("(B\E$@ $B("(B\E(J $B("(B\E(I $B("(B\E(J $B("(B\E(J $B("(B $B("(B
$B("(Bju@h $B("(B\E$@ $B("(B\E(H $B("(B\E(I $B("(B\E(H $B("(B\E(H $B("(B $B("(B
$B(&(!(!(!(*(!(!(!(!(*(!(!(!(!(*(!(!(!(!(*(!(!(!(!(*(!(!(!(!(*(!(!(!(!(!(!(!(!(!(%(B
$B$$$:$l$N>l9g$b!"$9$G$KB8:_$7$F$$$kL>A0$KBP$7$F$O!"4A;z$N3+;O=*N;%7!<%1%s%9$O!"0J2<(B
$B$N$b$N$rG'<1$7$^$9!#(B
$B4A;z$N;O$^$j(B: \E$B $B$+(B \E$@
$B4A;z$N=*$j(B: \E(J $B$+(B \E(B $B$+(B \E(H
(2) smbclient $B$N%*%W%7%g%s(B
$B%/%i%$%"%s%H%W%m%0%i%`$G$b!"4A;z$d2>L>$r4^$s$@%U%!%$%k$r07$($k$h$&$K!"<!$N%*%W%7%g%s(B
$B$rDI2C$7$^$7$?!#(B
-t <$B%?!<%_%J%k%3!<%I7O(B>
$B$3$3$G!"(B<$B%?!<%_%J%k%3!<%I7O(B>$B$K;XDj$G$-$k$b$N$O!">e$N(B<$B%3!<%I7O(B>$B$HF1$8$b$N$G$9!#(B
(3) $B%G%U%)%k%H(B
$B%G%U%)%k%H$N%3!<%I7O$O!"%3%s%Q%$%k;~$K7h$^$j$^$9!#(B
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n(B13$BF|(B $BBh#4HG(B
$BF#ED(B $B?r(B fujita@ainix.isac.co.jp
Contributor/s: Martin.Kraemer <Martin.Kraemer@mch.sni.de>
and Ricky Poulten (ricky@logcam.co.uk)
Date: Unknown - circa 1994
Status: Obsoleted - smbtar has been a stable part of Samba
since samba-1.9.13
Subject: Sambatar (now smbtar)
=============================================================================
This is version 1.4 of my small extension to samba that allows PC shares
to be backed up directly to a UNIX tape. It only has been tested under
Solaris 2.3, Linux 1.1.59 and DG/UX 5.4r3.10 with version 1.9.13 of samba.
See the file INSTALL for installation instructions, and
the man page and NOTES file for some basic usage. Please let me know if you
have any problems getting it to work under your flavour of Unix.
This is only (yet another) intermediate version of sambatar.
This version also comes with an extra gift, zen.bas, written in
microsoft qbasic by a colleague. It is (apparently) based on a 70s
British sci-fi series known as Blake's 7. If you have any questions
about this program, or any suggestions (e.g. what about servillan.bas
?), feel free to mail the author (of zen.bas) greenm@lilhd.logica.com.
These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.