以下为脚本内容
#!/bin/bash
echo "install packages..."
yum install sssd krb5-workstation -y &> /dev/null
echo "config authconfig..."
authconfig \
--enableldap \
--enablekrb5 \
--disableldapauth \
--enableldaptls \
--ldapserver="classroom.example.com" \
--ldapbasedn="dc=example,dc=com" \
--ldaploadcacert=http://172.25.254.254/pub/example-ca.crt \
--krb5realm="EXAMPLE.COM" \
--krb5kdc="classroom.example.com"

本文提供了一个脚本,用于通过authconfig工具在系统启动时自动认证LDAP用户并挂载其家目录,确保ldap用户的认证和服务在开机时无缝运行。
最低0.47元/天 解锁文章
812

被折叠的 条评论
为什么被折叠?



