5 echo "$0 PREFIX DOMAIN USERNAME PASSWORD"
14 USERNAME
=administrator
18 oldpwd
=`dirname $0`/..
/..
22 ETCDIR
=$PREFIX_ABS/etc
23 NCALRPCDIR
=$PREFIX_ABS/ncalrpc
24 PIDDIR
=$PREFIX_ABS/pid
25 PRIVATEDIR
=$PREFIX_ABS/private
26 LOCKDIR
=$PREFIX_ABS/lockdir
27 WINBINDD_SOCKET_DIR
=$PREFIX_ABS/winbind_socket
28 CONFFILE
=$ETCDIR/smb.conf
29 TMPDIR
=$PREFIX_ABS/tmp
30 NETBIOSNAME
=localmember
33 mkdir
-p $PRIVATEDIR $ETCDIR $PIDDIR $NCALRPCDIR $LOCKDIR $TMPDIR
37 netbios name = $NETBIOSNAME
39 private dir = $PRIVATEDIR
40 pid directory = $PIDDIR
41 ncalrpc dir = $NCALRPCDIR
43 setup directory = $SRCDIR/setup
44 js include = $SRCDIR/scripting/libjs
45 winbindd socket directory = $WINBINDD_SOCKET_DIR
46 name resolve order = bcast
47 interfaces = 127.0.0.5/8
48 panic action = $SRCDIR/script/gdb_backtrace %PID% %PROG%
50 server role = domain member
52 server max protocol = SMB2
53 notify:inotify = false
55 system:anonymous = true
56 #We don't want to pass our self-tests if the PAC code is wrong
57 gensec:require_pac = true
58 log level = $SMBD_LOGLEVEL
61 PROVISION_OPTIONS
="$CONFIGURATION --host-name=$NETBIOSNAME --host-ip=127.0.0.1"
62 PROVISION_OPTIONS
="$PROVISION_OPTIONS --quiet --domain $DOMAIN --realm $REALM"
63 PROVISION_OPTIONS
="$PROVISION_OPTIONS --adminpass $PASSWORD --root=$ROOT"
64 PROVISION_OPTIONS
="$PROVISION_OPTIONS --simple-bind-dn=cn=Manager,$BASEDN --password=$PASSWORD --root=$ROOT"
65 $srcdir/bin
/smbscript
$srcdir/setup
/provision
$PROVISION_OPTIONS >&2
67 $srcdir/bin
/net
join member
$DOMAIN -U$DC_USERNAME%$DC_PASSWORD >&2 ||
{
72 echo "PREFIX_ABS=$PREFIX_ABS"
75 echo "NETBIOSNAME=$NETBIOSNAME"
77 echo "USERNAME=$USERNAME"
79 echo "PASSWORD=$PASSWORD"
82 echo "CONFFILE=$CONFFILE"
83 echo "WINBINDD_SOCKET_DIR=$WINBINDD_SOCKET_DIR"
84 echo "NCALRPCDIR=$NCALRPCDIR"
85 echo "CONFIGURATION=$CONFIGURATION"