mirror of
https://github.com/samba-team/samba.git
synced 2025-01-12 09:18:10 +03:00
r10387: By exporting KRB5_CONFIG pointing at a file of our choosing, we can
avoid DNS delays in our testsuite. The next step will be to use
kerberos in the tests (awaits application of socketwrapper or hooks
into our socket layer).
Andrew Bartlett
(This used to be commit b9e9cca14e
)
This commit is contained in:
parent
c44efdaa22
commit
1d4fcd40a6
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
DOMAIN=SAMBADOMAIN
|
DOMAIN=SAMBADOMAIN
|
||||||
USERNAME=administrator
|
USERNAME=administrator
|
||||||
REALM=$DOMAIN
|
REALM=SAMBA.EXAMPLE.COM
|
||||||
PASSWORD=penguin
|
PASSWORD=penguin
|
||||||
SRCDIR=`pwd`
|
SRCDIR=`pwd`
|
||||||
ROOT=$USER
|
ROOT=$USER
|
||||||
@ -45,6 +45,7 @@ TMPDIR=$PREFIX_ABS/tmp
|
|||||||
LIBDIR=$PREFIX_ABS/lib
|
LIBDIR=$PREFIX_ABS/lib
|
||||||
PIDDIR=$PREFIX_ABS/pid
|
PIDDIR=$PREFIX_ABS/pid
|
||||||
CONFFILE=$LIBDIR/smb.conf
|
CONFFILE=$LIBDIR/smb.conf
|
||||||
|
KRB5_CONFIG=$LIBDIR/krb5.conf
|
||||||
PRIVATEDIR=$PREFIX_ABS/private
|
PRIVATEDIR=$PREFIX_ABS/private
|
||||||
NCALRPCDIR=$PREFIX_ABS/ncalrpc
|
NCALRPCDIR=$PREFIX_ABS/ncalrpc
|
||||||
LOCKDIR=$PREFIX_ABS/lockdir
|
LOCKDIR=$PREFIX_ABS/lockdir
|
||||||
@ -113,6 +114,26 @@ cat >$CONFFILE<<EOF
|
|||||||
cifs:share = tmp
|
cifs:share = tmp
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
cat >$KRB5_CONFIG<<EOF
|
||||||
|
[libdefaults]
|
||||||
|
default_realm = SAMBA.EXAMPLE.COM
|
||||||
|
dns_lookup_realm = false
|
||||||
|
dns_lookup_kdc = false
|
||||||
|
ticket_lifetime = 24h
|
||||||
|
forwardable = yes
|
||||||
|
|
||||||
|
[realms]
|
||||||
|
SAMBA.EXAMPLE.COM = {
|
||||||
|
kdc = 127.0.0.1
|
||||||
|
admin_server = 127.0.0.1
|
||||||
|
default_domain = samba.example.com
|
||||||
|
}
|
||||||
|
[domain_realm]
|
||||||
|
.samba.example.com = SAMBA.EXAMPLE.COM
|
||||||
|
EOF
|
||||||
|
|
||||||
|
export KRB5_CONFIG
|
||||||
|
|
||||||
./setup/provision $CONFIGURATION --quiet --domain $DOMAIN --realm $REALM \
|
./setup/provision $CONFIGURATION --quiet --domain $DOMAIN --realm $REALM \
|
||||||
--adminpass $PASSWORD --root=$ROOT || exit 1
|
--adminpass $PASSWORD --root=$ROOT || exit 1
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user