Compare commits

...

1 Commits

Author SHA1 Message Date
f2f4d17e72 修改kerberos相关 (#9)
1.修改域名为test.hadoop.com。
2.增加readme。

Reviewed-on: #9
2023-10-05 13:16:43 +00:00
5 changed files with 26 additions and 5 deletions

21
kerberos/README.md Normal file
View File

@ -0,0 +1,21 @@
## 编译
```bash
docker build -t zeekling/kerberos ./
```
## 启动
```bash
docker run -d --name=kerberos zeekling/kerberos
```
## 安装依赖
```bash
apt install krb5-user
```

View File

@ -4,7 +4,7 @@ kdc = FILE:/var/log/krb5kdc.log
admin_server = FILE:/var/log/kadmind.log admin_server = FILE:/var/log/kadmind.log
[libdefaults] [libdefaults]
default_realm = TEST.COM default_realm = TEST.HADOOP.COM
dns_lookup_realm = false dns_lookup_realm = false
dns_lookup_kdc = false dns_lookup_kdc = false
ticket_lifetime = 24h ticket_lifetime = 24h
@ -12,7 +12,7 @@ renew_lifetime = 7d
forwardable = true forwardable = true
[realms] [realms]
TEST.COM = { TEST.HADOOP.COM = {
kdc = krb5-kdc-server:88 kdc = krb5-kdc-server:88
admin_server = krb5-kdc-server admin_server = krb5-kdc-server
} }

View File

@ -1 +1 @@
*/admin@TEST.COM * */admin@TEST.HADOOP.COM *

View File

@ -3,7 +3,7 @@ kdc_ports = 88
kdc_tcp_ports = 88 kdc_tcp_ports = 88
[realms] [realms]
TEST.COM = { TEST.HADOOP.COM = {
#master_key_type = aes256-cts #master_key_type = aes256-cts
acl_file = /etc/krb5kdc/kadm5.acl acl_file = /etc/krb5kdc/kadm5.acl
dict_file = /usr/share/dict/words dict_file = /usr/share/dict/words

View File

@ -1,6 +1,6 @@
#!/bin/bash #!/bin/bash
FQDN="test.com" FQDN="test.hadoop.com"
ADMIN="admin" ADMIN="admin"
PASS="Admin12!" PASS="Admin12!"