File: krb5_init

package info (click to toggle)
ldaptive 2.1.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 14,192 kB
  • sloc: java: 68,618; xml: 3,223; sh: 338; makefile: 2
file content (29 lines) | stat: -rwxr-xr-x 485 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/bin/bash

echo "172.28.1.11 ldap-test" >>/etc/hosts
cat /etc/hosts
tee /etc/krb5.conf <<EOF
[libdefaults]
    default_realm = VT.EDU

[realms]
    VT.EDU = {
        kdc = ldap-test
        admin_server = ldap-test
        default_domain = VT.EDU
    }

[domain_realm]
    . = VT.EDU
    .vt.edu = VT.EDU
    vt.edu = VT.EDU
EOF
ktutil <<EOF
addent -password -p test@VT.EDU -k 1 -e aes256-cts
password
wkt /etc/krb5.keytab
list
exit
EOF
kinit -kt /etc/krb5.keytab test@VT.EDU
klist