Prostrednictvom doveryhodnej tretej strany poskytnut moznost spolahlivej autentizacie v nespolahlivom prostredi:
# emerge --pretend --verbose heimdal
Heimdal vyzaduje:
# USE="cokolvek" emerge heimdal
* DANGER WILL ROBINSON!
* There has been a change in the libgssapi shared library version
* This means that _EVERYTHING_ that linked against libgssapi.so.1
* will now be broken. Examples include, but may not be limited to:
* samba, mozilla, mozilla-firefox, subversion and neon, cvs,
* evolution-data-server, and gnome-vfs. As a consequence:
* PLEASE PLEASE PLEASE PLEASE PLEASE run revdep-rebuild right now
# ./configure && make && make install
Budem sa zaoberat konfiguraciou Heimdalu pod Gentoo
$ man krb5.conf
[section1]
a-subsection = {
var = value1
other-var = value with {}
sub-sub-section = {
var = 123
}
}
var = some other value
[section2]
var = yet another value
[libdefaults]
ticket_lifetime = 600
default_realm = EXAMPLE.COM
default_etypes = des3-hmac-sha1 des-cbc-crc des-cbc-md5
default_etypes_des = des3-hmac-sha1 des-cbc-crc des-cbc-md5
[realms]
EXAMPLE.COM = {
kdc = kerberos.example.com:88
admin_server = kerberos.example.com:749
}
[logging]
kdc = CONSOLE
kdc = SYSLOG:INFO:DAEMON
[libdefaults]
ticket_lifetime = 600
default_realm = OSTOPOVICE.ORIOTRADE.CZ
default_etypes = des3-hmac-sha1 des-cbc-crc des-cbc-md5
default_etypes_des = des3-hmac-sha1 des-cbc-crc des-cbc-md5
[realms]
OSTOPOVICE.ORIOTRADE.CZ = {
kdc = nise.ostopovice.oriotrade.cz macIntosh.ostopovice.oriotrade.cz
}
[domain_realm]
.ostopovice.oriotrade.cz = OSTOPOVICE.ORIOTRADE.CZ
Kerberos si udrzuje kluce riaditelov v databaze. Defaultne by mala byt v adresari /var/heimdal:
Je vhodne mat databazu zasifrovanu. Pre vytvorenie sifrovacieho kluca:
milan@nise ~ $ ls -la /var/heimdal/
total 1
drwxr-xr-x 2 root root 72 Mar 14 11:49 .
drwxr-xr-x 20 root root 512 Mar 15 15:34 ..
-rw-r--r-- 1 root root 0 Mar 14 11:49 .keep
Nezabudnite si ale kluc zkopirovat!
nise milan # kstash --random-key
kstash: writing key to `/var/heimdal/m-key'
nise milan # kadmin -l
kadmin> init ostopovice.oriotrade.cz
Realm max ticket life [unlimited]:
Realm max renewable ticket life [unlimited]:
kadmin> add milan
Max ticket life [1 day]:
Max renewable life [1 week]:
Principal expiration time [never]:
Password expiration time [never]:
Attributes []:
milan@OSTOPOVICE.ORIOTRADE.CZ's Password:
Verifying - milan@OSTOPOVICE.ORIOTRADE.CZ's Password:
kadmin$gt exit
nise milan # kadmin -l
kadmin> add --random-key nise.ostopovice.oriotrade.cz
Max ticket life [1 day]:
Max renewable life [1 week]:
Principal expiration time [never]:
Password expiration time [never]:
Attributes []:
kadmin> ext nise.ostopovice.oriotrade.cz
nise milan # rc-update add heimdal-kdc default
* heimdal-kdc added to runlevel default
* Caching service dependencies...
* rc-update complete.
nise milan # /etc/init.d/heimdal-kdc start
* Starting heimdal kdc... [ ok ]
milan@nise ~ $ kinit
milan@OSTOPOVICE.ORIOTRADE.CZ's Password:
milan@nise ~ $ klist
Credentials cache: FILE:/tmp/krb5cc_1000
Principal: milan@OSTOPOVICE.ORIOTRADE.CZ
Issued Expires Principal
Mar 16 04:35:28 Mar 16 04:45:28 krbtgt/OSTOPOVICE.ORIOTRADE.CZ@OSTOPOVICE.ORIOTRADE.CZ