-DUSE_ARCFOUR_FROM_SSH_SOURCE still enables to login with wr
johanh at fusion.kth.se
johanh at fusion.kth.se
Thu Mar 26 00:28:35 GMT 1998
Hi
I just must start with saying that I think everyone has done a GREAT job
with Samba and Samba NTDOMAIN.
I compiled with -DUSE_ARCFOUR_FROM_SSH_SOURCE and arcfour.c from
ssh-1.2.22, but logins are still possible with the wrong password. My
source is up to date with the CVS tree, with the modifications in
Appendix A to Makefile. We use Solaris 2.6 and Samba is compiled with
WorkShop Compilers 4.2 30 Oct 1996 C 4.2. I did notice that the option
USE_ARCFOUR is used in more files than USE_ARCFOUR_FROM_SSH_SOURCE
tatooine>grep USE_ARCFOUR */*/*
lib/util/smbencrypt.c:#ifdef USE_ARCFOUR_FROM_SSH_SOURCE
lib/util/smbencrypt.c:#ifdef USE_ARCFOUR
lib/util/smbencrypt.c:#ifdef USE_ARCFOUR
lib/util/smbencrypt.c:#ifdef USE_ARCFOUR_FROM_SSH_SOURCE
tatooine>grep USE_ARCFOUR */*/*/*
lib/rpc/parse/parse_net.c:#ifdef USE_ARCFOUR
lib/rpc/server/srv_netlog.c:#ifdef USE_ARCFOUR
TIA
Johan Hedin
/---------------------------------------------------------------------\
| Johan Hedin | johanh at fusion.kth.se |
| Ph.D. Student and System Manager | http://www.fusion.kth.se/~johanh |
\---------------------------------------------------------------------/
--- Appendix A ---
Index: Makefile
===================================================================
RCS file: /cvsroot/samba/source/Makefile,v
retrieving revision 1.106.2.30
diff -u -r1.106.2.30 Makefile
--- Makefile 1998/03/02 20:46:23 1.106.2.30
+++ Makefile 1998/03/25 08:18:13
@@ -5,7 +5,7 @@
###########################################################################
# The base directory for all samba files
-BASEDIR = /usr/local/samba
+BASEDIR = /usr/local/samba-nt
# The base manpages directory to put the man pages in
# Note: $(MANDIR)/man1, $(MANDIR)/man5 and $(MANDIR)/man8 must exist.
@@ -20,7 +20,7 @@
BINDIR = $(BASEDIR)/bin
SBINDIR = $(BASEDIR)/bin
LIBDIR = $(BASEDIR)/lib
-VARDIR = $(BASEDIR)/var
+VARDIR = /var/samba
# The permissions to give the executables
INSTALLPERMS = 0755
@@ -53,7 +53,7 @@
LMHOSTSFILE = $(LIBDIR)/lmhosts
DRIVERFILE = $(LIBDIR)/printers.def
SMB_PASSWD = $(BINDIR)/smbpasswd
-SMB_PASSWD_FILE = $(BASEDIR)/private/smbpasswd
+SMB_PASSWD_FILE = $(VARDIR)/private/smbpasswd
WEB_ROOT = $(BASEDIR)
# the directory where lock files go
@@ -240,9 +240,9 @@
# This is for SUNOS5.4 and later (also known as Solaris 2.4 and later)
# contributed by Andrew.Tridgell at anu.edu.au
-# FLAGSM = -DSUNOS5 -DSHADOW_PWD -DNETGROUP -DFAST_SHARE_MODES
-# LIBSM = -lsocket -lnsl
-# AWK = nawk
+FLAGSM = -DSUNOS5 -DSHADOW_PWD -DNETGROUP -DFAST_SHARE_MODES
-DUSE_ARCFOUR_FROM_SSH_SOURCE -DQUOTAS
+LIBSM = -lsocket -lnsl
+AWK = nawk
# This is for SUNOS 5.2 and 5.3 (also known as Solaris 2.2 and 2.3)
# contributed by hdsi at newtech.net
@@ -796,7 +796,7 @@
$(UTIL_SRC_DIR)time.o \
$(UTIL_SRC_DIR)membuffer.o \
$(UTIL_SRC_DIR)smbpass.o \
- $(UTIL_SRC_DIR)access.o \
+ $(UTIL_SRC_DIR)access.o \
$(UTIL_SRC_DIR)credentials.o \
$(MM_SRC_DIR)mem_man.o
# object code for smbd
@@ -892,17 +892,19 @@
# object files for targets
######################################################################
+ARCFOUR_OBJ = from-ssh/arcfour.o
+
# object files for smbstatus
-STATUS_OBJ = $(STATUSOBJ) $(ARCFOUR_OBJ) $(RPC_SRC_DIR)parse/parse_misc.o
$(RPC_SRC_DIR)parse/parse_prs.o $(UTILOBJ) $(LOCKOBJ)
+STATUS_OBJ = $(STATUSOBJ) $(ARCFOUR_OBJ) $(RPC_SRC_DIR)parse/parse_misc.o
$(RPC_SRC_DIR)parse/parse_prs.o $(UTILOBJ) $(LOCKOBJ)
$(UTIL_SRC_DIR)getsmbpass.o
# object files for nmblookup
-LOOKUP_OBJ = $(NMBLOOK_SRC_DIR)nmblookup.o $(RPC_SRC_DIR)parse/parse_misc.o
$(RPC_SRC_DIR)parse/parse_prs.o $(ARCFOUR_OBJ) $(NMBLIBOBJ) $(UTILOBJ)
+LOOKUP_OBJ = $(NMBLOOK_SRC_DIR)nmblookup.o $(RPC_SRC_DIR)parse/parse_misc.o
$(RPC_SRC_DIR)parse/parse_prs.o $(ARCFOUR_OBJ) $(NMBLIBOBJ) $(UTILOBJ)
$(UTIL_SRC_DIR)getsmbpass.o
# object files for smbd
-SMBD_OBJ = $(UTILOBJ) $(RPC_LIB_OBJ) $(RPC_SRV_OBJ) $(ARCFOUR_OBJ) $(SMBDOBJ)
$(SMBLIBOBJ) $(UBIOBJ) $(RPC_OBJ) $(RPC_SERV_OBJ) $(VTP_OBJ) $(LOCKOBJ)
+SMBD_OBJ = $(UTILOBJ) $(RPC_LIB_OBJ) $(RPC_SRV_OBJ) $(ARCFOUR_OBJ) $(SMBDOBJ)
$(SMBLIBOBJ) $(UBIOBJ) $(RPC_OBJ) $(RPC_SERV_OBJ) $(VTP_OBJ) $(LOCKOBJ)
$(UTIL_SRC_DIR)getsmbpass.o
# object files for nmbd
-NMBD_OBJ = $(NMBDOBJ) $(ARCFOUR_OBJ) $(SMBLIBOBJ) $(UTILOBJ)
$(RPC_SRC_DIR)parse/parse_misc.o $(RPC_SRC_DIR)parse/parse_prs.o
+NMBD_OBJ = $(NMBDOBJ) $(ARCFOUR_OBJ) $(SMBLIBOBJ) $(UTILOBJ)
$(RPC_SRC_DIR)parse/parse_misc.o $(RPC_SRC_DIR)parse/parse_prs.o
$(UTIL_SRC_DIR)getsmbpass.o
# object files for smbclient
CLIENT_OBJ = $(CLIENTOBJ) $(ARCFOUR_OBJ) $(SMBLIBOBJ) $(UTILOBJ) $(RPC_CLI_OBJ)
$(RPC_LIB_OBJ) \
@@ -965,23 +967,23 @@
testparm: $(TSTPRM_SRC_DIR)testparm.o $(UTILOBJ)
@echo Linking testparm
- @$(CC) $(CFLAGS) -o testparm $(ARCFOUR_OBJ) $(TSTPRM_SRC_DIR)testparm.o
$(RPC_SRC_DIR)parse/parse_misc.o $(RPC_SRC_DIR)parse/parse_prs.o $(UTILOBJ)
$(LIBS)
+ @$(CC) $(CFLAGS) -o testparm $(ARCFOUR_OBJ) $(TSTPRM_SRC_DIR)testparm.o
$(RPC_SRC_DIR)parse/parse_misc.o $(RPC_SRC_DIR)parse/parse_prs.o $(UTILOBJ)
$(LIBS) $(UTIL_SRC_DIR)getsmbpass.o
testprns: $(TSTPRN_SRC_DIR)testprns.o $(UTILOBJ)
@echo Linking testprns
- @$(CC) $(CFLAGS) -o testprns $(ARCFOUR_OBJ) $(TSTPRN_SRC_DIR)testprns.o
$(RPC_SRC_DIR)parse/parse_misc.o $(RPC_SRC_DIR)parse/parse_prs.o $(UTILOBJ)
$(LIBS)
+ @$(CC) $(CFLAGS) -o testprns $(ARCFOUR_OBJ) $(TSTPRN_SRC_DIR)testprns.o
$(RPC_SRC_DIR)parse/parse_misc.o $(RPC_SRC_DIR)parse/parse_prs.o $(UTILOBJ)
$(LIBS) $(UTIL_SRC_DIR)getsmbpass.o
smbpasswd: $(SMBPWD_SRC_DIR)smbpasswd.o $(UTIL_SRC_DIR)getsmbpass.o
$(RPC_SRC_DIR)parse/parse_misc.o $(RPC_SRC_DIR)parse/parse_prs.o $(UTILOBJ)
@echo Linking smbpasswd
- @$(CC) $(CFLAGS) -o smbpasswd $(ARCFOUR_OBJ)
$(SMBPWD_SRC_DIR)smbpasswd.o $(UTIL_SRC_DIR)getsmbpass.o
$(RPC_SRC_DIR)parse/parse_misc.o $(RPC_SRC_DIR)parse/parse_prs.o $(UTILOBJ)
$(LIBS)
+ @$(CC) $(CFLAGS) -o smbpasswd $(ARCFOUR_OBJ)
$(SMBPWD_SRC_DIR)smbpasswd.o $(UTIL_SRC_DIR)getsmbpass.o
$(RPC_SRC_DIR)parse/parse_misc.o $(RPC_SRC_DIR)parse/parse_prs.o $(UTILOBJ)
$(LIBS) $(UTIL_SRC_DIR)getsmbpass.o
make_smbcodepage: $(SMBCPG_SRC_DIR)make_smbcodepage.o $(UTILOBJ)
@echo Linking make_smbcodepage
- @$(CC) $(CFLAGS) -o make_smbcodepage $(ARCFOUR_OBJ)
$(SMBCPG_SRC_DIR)make_smbcodepage.o $(RPC_SRC_DIR)parse/parse_misc.o
$(RPC_SRC_DIR)parse/parse_prs.o $(UTILOBJ) $(LIBS)
+ @$(CC) $(CFLAGS) -o make_smbcodepage $(ARCFOUR_OBJ)
$(SMBCPG_SRC_DIR)make_smbcodepage.o $(RPC_SRC_DIR)parse/parse_misc.o
$(RPC_SRC_DIR)parse/parse_prs.o $(UTILOBJ) $(LIBS) $(UTIL_SRC_DIR)getsmbpass.o
make_printerdef: $(PRTDEF_SRC_DIR)make_printerdef.o $(UTILOBJ)
@echo Linking make_printerdef
- @$(CC) $(CFLAGS) -o make_printerdef $(ARCFOUR_OBJ)
$(RPC_SRC_DIR)parse/parse_misc.o $(RPC_SRC_DIR)parse/parse_prs.o
$(PRTDEF_SRC_DIR)make_printerdef.o $(UTILOBJ) $(LIBS)
+ @$(CC) $(CFLAGS) -o make_printerdef $(ARCFOUR_OBJ)
$(RPC_SRC_DIR)parse/parse_misc.o $(RPC_SRC_DIR)parse/parse_prs.o
$(PRTDEF_SRC_DIR)make_printerdef.o $(UTILOBJ) $(LIBS)
$(UTIL_SRC_DIR)getsmbpass.o
wsmbstatus: wsmbstatus.o $(UTILOBJ)
@echo Linking wsmbstatus
@@ -1092,7 +1094,7 @@
old-links:
@$(SHELL) $(SCRIPT_SRC_DIR)links.sh $(ALLSRC) $(INCLUDES)
@$(SHELL) $(SCRIPT_SRC_DIR)nmblinks.sh $(NMBDSRC)
-
+
old-update:
@$(SHELL) $(SCRIPT_SRC_DIR)update.sh $(ALLSRC) $(INCLUDES)
@@ -1102,3 +1104,5 @@
ctags:
ctags `find . -name "*.[ch]"`
+$(ARCFOUR_OBJ): from-ssh/arcfour.c
+ gcc $(CFLAGS) -c from-ssh/arcfour.c -o from-ssh/arcfour.o
More information about the samba-ntdom
mailing list