############网络用户账户管理#############
yum install sssd -y ##写配置好yum访问
yum install krb5-workstation -y ##写配置好yum访问
yum install autofs -y
配置脚本
#!/bin/bash
echo "install packages..."
yum install sssd krb5-workstation autofs -y &>/dev/null
echo "config authconfig..."
authconfig \
--enableldap \
--disableldapauth \
--enablekrb5 \
--enableldaptls \
--ldapserver="classroom.example.com" \
--ldapbasedn="dc=example,dc=com" \
--ldaploadcacert=http://172.25.254.254/pub/example-ca.crt \
--ipav2realm="EXAMPLE.COM" \
--krb5kdc="classroom.example.com" \
--krb5adminserver="classroom.example.com" \
--update
echo "config autofs..."
echo "/home/guests /etc/auto.ldap" >>/etc/auto.master
echo "* 172.25.254.254:/home/guests/&" >>/etc/auto.ldap
systemctl restart autofs
echo "OK!!!"