set passes {
{
des
+ mode=udp
des3_krbtgt=0
{supported_enctypes=des-cbc-crc:normal}
{kdc_supported_enctypes=des-cbc-crc:normal}
}
{
des.des3tgt
+ mode=udp
des3_krbtgt=1
{supported_enctypes=des-cbc-crc:normal}
{kdc_supported_enctypes=des3-cbc-sha1:normal des-cbc-crc:normal}
}
{
des3
+ mode=udp
des3_krbtgt=1
{supported_enctypes=des3-cbc-sha1:normal des-cbc-crc:normal}
{kdc_supported_enctypes=des3-cbc-sha1:normal des-cbc-crc:normal}
}
{
aes
+ mode=udp
des3_krbtgt=0
{supported_enctypes=aes256-cts-hmac-sha1-96:normal des-cbc-crc:normal}
{kdc_supported_enctypes=aes256-cts-hmac-sha1-96:normal des-cbc-crc:normal}
}
{
aesonly
+ mode=udp
des3_krbtgt=0
{supported_enctypes=aes256-cts-hmac-sha1-96:normal}
{kdc_supported_enctypes=aes256-cts-hmac-sha1-96:normal}
{master_key_type=aes256-cts-hmac-sha1-96}
{dummy=[verbose -log "AES enctypes"]}
}
+ {
+ aes-tcp
+ mode=tcp
+ des3_krbtgt=0
+ {supported_enctypes=aes256-cts-hmac-sha1-96:normal}
+ {kdc_supported_enctypes=aes256-cts-hmac-sha1-96:normal}
+ {permitted_enctypes(kdc)=aes256-cts-hmac-sha1-96}
+ {permitted_enctypes(client)=aes256-cts-hmac-sha1-96}
+ {permitted_enctypes(server)=aes256-cts-hmac-sha1-96}
+ {master_key_type=aes256-cts-hmac-sha1-96}
+ {dummy=[verbose -log "AES via TCP"]}
+ }
{
aes-des3
+ mode=udp
des3_krbtgt=0
{supported_enctypes=aes256-cts-hmac-sha1-96:normal des3-cbc-sha1:normal des-cbc-crc:normal}
{kdc_supported_enctypes=aes256-cts-hmac-sha1-96:normal des3-cbc-sha1:normal des-cbc-crc:normal}
}
{
des3-aes
+ mode=udp
des3_krbtgt=1
{supported_enctypes=aes256-cts-hmac-sha1-96:normal des3-cbc-sha1:normal des-cbc-crc:normal}
{kdc_supported_enctypes=aes256-cts-hmac-sha1-96:normal des3-cbc-sha1:normal des-cbc-crc:normal}
}
{
des-v4
+ mode=udp
des3_krbtgt=0
{supported_enctypes=des-cbc-crc:v4}
{kdc_supported_enctypes=des-cbc-crc:v4}
}
{
des-md5-v4
+ mode=udp
des3_krbtgt=0
{supported_enctypes=des-cbc-md5:v4 des-cbc-crc:v4}
{kdc_supported_enctypes=des-cbc-md5:v4 des-cbc-crc:v4}
}
{
all-des-des3-enctypes
+ mode=udp
des3_krbtgt=1
{supported_enctypes=des3-cbc-sha1:normal des-cbc-crc:normal \
des-cbc-md5:normal des-cbc-crc:v4 des-cbc-md5:norealm \
}
{
des.no-kdc-md5
+ mode=udp
des3_krbtgt=0
tgt_support_desmd5=0
{permitted_enctypes(kdc)=des-cbc-crc}
}
{
des.des3-tgt.no-kdc-des3
+ mode=udp
tgt_support_desmd5=0
{permitted_enctypes(kdc)=des-cbc-crc}
{default_tgs_enctypes(client)=des-cbc-crc}
global last_passname_conf
global multipass_name
global master_key_type
+ global mode
if ![get_hostname] {
return 0
set conffile [open $tmppwd/kdc.conf w]
puts $conffile "\[kdcdefaults\]"
puts $conffile " kdc_ports = 3085,3086,3087,3088,3089"
+ puts $conffile " kdc_tcp_ports = 3085,3086,3087,3088,3089"
puts $conffile ""
puts $conffile "\[realms\]"
puts $conffile " $REALMNAME = \{"
puts $conffile " master_key_name = master/key"
puts $conffile " supported_enctypes = $supported_enctypes"
puts $conffile " kdc_supported_enctypes = $kdc_supported_enctypes"
- puts $conffile " kdc_ports = 3088"
+ if { $mode == "tcp" } {
+ puts $conffile " kdc_ports = 3081"
+ puts $conffile " kdc_tcp_ports = 3088,3091"
+ } else {
+ puts $conffile " kdc_ports = 3088"
+ puts $conffile " kdc_tcp_ports = 3081"
+ }
puts $conffile " default_principal_expiration = 2037.12.31.23.59.59"
puts $conffile " default_principal_flags = -postdateable forwardable"
puts $conffile " dict_file = $tmppwd/dictfile"
global default_tgs_enctypes
global default_tkt_enctypes
global permitted_enctypes
+ global mode
# Create a krb5.conf file.
if { ![file exists $tmppwd/krb5.$type.conf] \
puts $conffile " krb4_config = $tmppwd/krb.conf"
puts $conffile " krb4_realms = $tmppwd/krb.realms"
puts $conffile " krb4_srvtab = $tmppwd/v4srvtab"
+ if { $mode == "tcp" } {
+ puts $conffile " udp_preference_limit = 1"
+ }
puts $conffile ""
puts $conffile "\[realms\]"
puts $conffile " $REALMNAME = \{"
+ # I hope nothing's listening on 15294...
+ puts $conffile " kdc = $hostname:15294"
puts $conffile " kdc = $hostname:3088"
puts $conffile " admin_server = $hostname:3750"
puts $conffile " kpasswd_server = $hostname:3751"