tree: 8fa39228810c610da1457e8bd0f1ac1db3851af0 [path history] [tgz]
  1. README.md
  2. kdc-dist/
  3. pom.xml
  4. tool-dist/
kerby-dist/README.md

Kerby-dist

The distribution of Kerby.

To run with a standalone kdc server, kdcinit, kadmin, kinit and klist

    1. Generate libraries for distribution:
mvn package -Pdist
    1. Run kdcinit:
cd kerby-dist/kdc-dist
sh bin/kdcinit.sh [server-conf-dir] [keytab]

The admin principal will be exported into [keytab], it will be used by kadmin tool for the authentication.

    1. Start kerby-kdc-server:
cd kerby-dist/kdc-dist
sh bin/start-kdc.sh [server-conf-dir] [work-dir]
    1. Run kadmin to add principals:
cd kerby-dist/kdc-dist
sh bin/kadmin.sh [server-conf-dir] -k [keytab]

The keytab file is created by the kdcinit. In kadmin, you can type “?” for help.

    1. Run kinit:
cd kerby-dist/tool-dist
sh bin/kinit.sh -conf [client-conf-dir] [principal-name]
    1. Run klist:
cd kerby-dist/tool-dist
sh bin/klist.sh -c [credentials-cache]

If you don‘t specify [server-conf-dir] in step 2, 3 or 4, it will be set as /etc/kerby. In [server-conf-dir], there should be kdc.conf, backend.conf. And if you don’t specify [client-conf-dir] in step 5, it will be set as /etc/, there should be krb5.conf.

An example of kdc.conf:

[kdcdefaults]
    kdc_host = localhost
    kdc_tcp_port = 8015
    kdc_realm = TEST.COM

An example of json backend backend.conf:

kdc_identity_backend = org.apache.kerby.kerberos.kdc.identitybackend.JsonIdentityBackend
backend.json.dir = /tmp/kerby/jsonbackend

An example of zookeeper backend backend.conf:

kdc_identity_backend = org.apache.kerby.kerberos.kdc.identitybackend.ZookeeperIdentityBackend
data_dir = /tmp/kerby/zookeeper/data
data_log_dir = /tmp/kerby/zookeeper/datalog

An example of krb5.conf:

[libdefaults]
    kdc_realm=TEST.COM
    kdc_tcp_port = 8015