Joining a domain with TNG cvs from 8th March

Tom Crummey tom at ee.ucl.ac.uk
Wed Mar 8 11:59:51 GMT 2000


Hello,

I was encouraged by reports on the list that a number of bugs had been
found and fixed and that I should be able to now join a domain with
an NT workstation that failed to join properly yesterday.

Unfortunately, I still cannot join the domain. I did a cvs update at
11:00am GMT, a make clean and a configure. I then installed everything,
removed the /opt/samba-TNG/var/locks directory and restarted the daemons.

(BTW I have expanded the daemon start/stop script to cope with all the
extra daemons in TNG and also rename the log files on startup. It's attached
if anyone is interested)

As, yesterday, I can joun the domain on NT4 SP6, but when I try to log in
I get the error message that the computer's domain account is missing or
the password is wrong.

The logs again reveal the fact that the credentials don't match.

Has anyone else with a Solaris server got this to work today?

Tom.

----------------------------------------------------------------------------
 Tom Crummey, Systems and Network Manager,      EMAIL: tom at ee.ucl.ac.uk
 Department of Electronic and Electrical Engineering,                  
 University College London,                       TEL: +44 (0)20 7679 3898    
 Torrington Place,                                FAX: +44 (0)20 7388 9307
 London, UK, WC1E 7JE.                         
----------------------------------------------------------------------------
-------------- next part --------------

-------------- next part --------------

-------------- next part --------------
#! /bin/sh
# USAGE: rotate file [limit]
# This script will rotate a file using the .0 .1 .. .n convention.  The limit
# parameter (if given) will limit n provided 2 <= n <= 7, if not given 7 is
# assumed.
#
# NOTE this script has only been executed on SunOS 4.1.3 but should be safe to
#      to execute on SunOS 5.2, BSD 4.3 and 386BSD
#
# IMPORTANT
# _________  For safe execution of this script it is vital that the uname
# command is in a consistant place on all machines i.e. it should be in
# /usr/bin , this command is used to determine the architecture and operating
# system type, its presence and location should be the only assumptions in
# this script.
#
UNAME=/usr/bin/uname
#
# Test host machine and its operating system then setup the command paths 
case `$UNAME -s` in
SunOS)	case `$UNAME -r` in
	4.1.2 | 4.1.3 | 4.1.3_U1 | 4.1.4)
		# SunOS 4.1.x 
		MV=/usr/bin/mv
		CP=/usr/bin/cp
		;;
	5.2 | 5.3 | 5.5 | 5.5.1 | 5.6 | 5.7 )
		# SunOS 5.x (Solaris)
		MV=/usr/bin/mv
		CP=/usr/bin/cp
		;;
	*)	# Unknown OS version paths may need revising
		echo "$0: Unknown SunOS version number - aborted"
		exit 1
		;;
	esac
	;;
BSD)	case `$UNAME -r` in
	4.3)	# BSD 4.3
		MV=/bin/mv
		CP=/bin/cp
		;;
	*)	# Unknown OS version paths may need revising
		echo "$0: Unknown BSD version number - aborted"
		exit 1
		;;
	esac
	;;
386BSD)	case `$UNAME -r` in
	0.1)	# 386BSD
		MV=/bin/mv
		CP=/bin/cp
		;;
	*)	# Unknown OS version paths may need revising
		echo "$0: Unknown 386bsd version number - aborted"
		exit 1
		;;
	esac
	;;
FreeBSD)
	case `$UNAME -r` in
	2.1.7-RELEASE | 2.1.5-RELEASE | 2.1.0-RELEASE | 2.0.5-RELEASE | 2.2.1-RELEASE)
		# FreeBSD
		MV=/bin/mv
		CP=/bin/cp
		;;
	*)	# Unknown OS version paths may need revising
		echo "$0: Unknown FreeBSD version number - aborted"
		exit 1
		;;
	esac
	;;
*)	# Unknown OS type
	echo "$0: Unknown OS type - aborted"
	exit 1
	;;
esac
#
#
if [ -s $1 ] 
then
	case $2 in
2)		if [ -f $1.0 ] ; then $MV $1.0 $1.1 ; fi ;;
3)		if [ -f $1.1 ] ; then $MV $1.1 $1.2 ; fi
		if [ -f $1.0 ] ; then $MV $1.0 $1.1 ; fi ;;
4)		if [ -f $1.2 ] ; then $MV $1.2 $1.3 ; fi
		if [ -f $1.1 ] ; then $MV $1.1 $1.2 ; fi
		if [ -f $1.0 ] ; then $MV $1.0 $1.1 ; fi ;;
5)		if [ -f $1.3 ] ; then $MV $1.3 $1.4 ; fi
		if [ -f $1.2 ] ; then $MV $1.2 $1.3 ; fi
		if [ -f $1.1 ] ; then $MV $1.1 $1.2 ; fi
		if [ -f $1.0 ] ; then $MV $1.0 $1.1 ; fi ;;
6)		if [ -f $1.4 ] ; then $MV $1.4 $1.5 ; fi
		if [ -f $1.3 ] ; then $MV $1.3 $1.4 ; fi
		if [ -f $1.2 ] ; then $MV $1.2 $1.3 ; fi
		if [ -f $1.1 ] ; then $MV $1.1 $1.2 ; fi
		if [ -f $1.0 ] ; then $MV $1.0 $1.1 ; fi ;;
*)		if [ -f $1.5 ] ; then $MV $1.5 $1.6 ; fi
		if [ -f $1.4 ] ; then $MV $1.4 $1.5 ; fi
		if [ -f $1.3 ] ; then $MV $1.3 $1.4 ; fi
		if [ -f $1.2 ] ; then $MV $1.2 $1.3 ; fi
		if [ -f $1.1 ] ; then $MV $1.1 $1.2 ; fi
		if [ -f $1.0 ] ; then $MV $1.0 $1.1 ; fi ;;
	esac
	$CP -p $1 $1.0
	$CP /dev/null $1
fi
exit 0
-------------- next part --------------
#!/bin/sh
#ident  "@(#)samba.server 1.0   96/06/19 TK"    /* SVr4.0 1.1.13.1*/
#
# Please send info on modifications to knuutila at cs.utu.fi
#
# This file should have uid root, gid sys and chmod 744
#
if [ ! -d /usr/bin ]
then                    # /usr not mounted
        exit
fi

killproc() {            # kill the named process(es)
        pid=`/usr/bin/ps -e |
             /usr/bin/grep -w $1 |
             /usr/bin/sed -e 's/^  *//' -e 's/ .*//'`
        [ "$pid" != "" ] && kill $pid
}

# Start/stop processes required for samba server

case "$1" in

'start')
#
# Edit these lines to suit your installation (paths, workgroup, host)
#
   /opt/samba-TNG/bin/smbd -D 
   /opt/samba-TNG/bin/nmbd -D 
   /opt/samba-TNG/bin/browserd  
   /opt/samba-TNG/bin/lsarpcd 
   /opt/samba-TNG/bin/netlogond
   /opt/samba-TNG/bin/samrd
   /opt/samba-TNG/bin/spoolssd 
   /opt/samba-TNG/bin/srvsvcd 
   /opt/samba-TNG/bin/svcctld 
   /opt/samba-TNG/bin/winregd
   /opt/samba-TNG/bin/wkssvcd
   ;;
'stop')
   killproc nmbd
   killproc smbd
   killproc browserd
   killproc lsarpcd
   killproc netlogon
   killproc samrd
   killproc srvsvcd
   killproc svcctld
   killproc spoolssd
   killproc winregd
   killproc wkssvcd
   /home/manager/bin/rotate /var/log/samba/log.nmb 9 
   /home/manager/bin/rotate /var/log/samba/log.smb 9 
   /home/manager/bin/rotate /var/log/samba/log.browser 9 
   /home/manager/bin/rotate /var/log/samba/log.srvsvc 9 
   /home/manager/bin/rotate /var/log/samba/log.svcctl 9 
   /home/manager/bin/rotate /var/log/samba/log.spoolss 9 
   /home/manager/bin/rotate /var/log/samba/log.winreg 9 
   /home/manager/bin/rotate /var/log/samba/log.netlogon 9 
   /home/manager/bin/rotate /var/log/samba/log.lsarpc 9 
   /home/manager/bin/rotate /var/log/samba/log.samr 9 
   /home/manager/bin/rotate /var/log/samba/log.wkssvc 9 
   ;;
*)
   echo "Usage: /etc/init.d/samba.server { start | stop }"
   ;;
esac


More information about the samba-ntdom mailing list