08.ldap网络帐号
来源:互联网 发布:nuitka python 编辑:程序博客网 时间:2024/05/29 18:17
1.ldap是什么
ldap目录服务认证,和windows活动目录类似,就是记录数据的一种方式
2.ldap客户端所须软件
yum sssd krb5-workstation -y
3.如何开启ldap用户认证
authconfig-tui
┌────────────────┤ Authentication Configuration ├─────────────────┐
│ │
│ User Information Authentication │
│ [ ] Cache Information [ ] Use MD5 Passwords │
│ [] Use LDAP [] Use Shadow Passwords │
│ [ ] Use NIS [ ] Use LDAP Authentication │
│ [ ] Use IPAv2 [*] Use Kerberos │
│ [ ] Use Winbind [ ] Use Fingerprint reader │
│ [ ] Use Winbind Authentication │
│ [*] Local authorization is sufficient │
│ │
│ ┌────────┐ ┌──────┐ │
│ │ Cancel │ │ Next │ │
│ └────────┘ └──────┘ │
│ │
│ │
└─────────────────────────────────────────────────────────────────┘
┌─────────────────┤ LDAP Settings ├─────────────────┐
│ │
│ [*] Use TLS │
│ Server: ldap://classroom.example.com/_ │
│ Base DN: dc=example,dc=com_______________________ │
│ │
│ ┌──────┐ ┌──────┐ │
│ │ Back │ │ Next │ │
│ └──────┘ └──────┘ │
│ │
│ │
└───────────────────────────────────────────────────┘
┌─────────────────┤ Kerberos Settings ├──────────────────┐
│ │
│ Realm: EXAMPLE.COM_____________________________ │
│ KDC: classroom.example.com___________________ │
│ Admin Server: classroom.example.com___________________ │
│ [ ] Use DNS to resolve hosts to realms │
│ [ ] Use DNS to locate KDCs for realms │
│ │
│ ┌──────┐ ┌────┐ │
│ │ Back │ │ Ok │ │
│ └──────┘ └────┘ │
│ │
│ │
└────────────────────────────────────────────────────────┘
<当出现以下报错时>
┌────────────────┤ Warning ├─────────────────┐
│ │
│ To connect to a LDAP server with TLS │
│ protocol enabled you need a CA certificate │
│ which signed your server’s certificate. │
│ Copy the certificate in the PEM format to │
│ the ‘/etc/openldap/cacerts’ directory. │
│ Then press OK. │
│ │
│ ┌────┐ │
│ │ Ok │ │
│ └────┘ │
│ │
│ │
└────────────────────────────────────────────┘
时因为tls的证书缺失,需要到服务器端下载所需要的证书到/etc/openldap/cacerts,
用到的命令
wget http://172.25.254.254/pub/example-ca.crt
<测试>
getent passwd ldapuser1
如果用户信息可以正常显示,证明客户端认成功。
列出所有用户
vim /etc/sssd/sssd.conf
enumerate = True
systemctl restart sssd
4.自动挂载用户家目录
yum install autofs -y
vim /etc/autofs.master
/home/guests /etc/auto.ldap
vim /etc/auto.ldap
ldapuser1 172.25.254.254:/home/guests/ldapuser1
+++++++++++++++++++++++++++++++++++++++++++++++++++++++
* 172.25.254.254:/home/guests/&
systemctl restart autofs
systemctl enable autofs
- 08.ldap网络帐号
- 第八 LDAP 网络用户帐号
- Linux--RH134---unit 8 ldap网络帐号
- 我的liunx学习笔记之ldap网络帐号
- Linux运维笔记-文档总结-ldap网络帐号
- ldap 网络账号
- LDAP 网络用户账户
- LDAP网络用户账户
- LDAP网络用户账户
- LDAP网络账户
- LDAP 网络用户账户
- LDAP网络用户账户
- LDAP 网络用户账户
- LDAP网络用户账户
- unit8~~LDAP 网络用户账户
- linux_2-LDAP网络用户账户
- 网络帐号安全简单解决办法
- NO.8 LDAP网络用户账户
- 对卷积层dilation膨胀的作用的理解,caffe-ssd dilation Hole算法解析
- 数据库优化---水平分区和垂直分区和读写分离
- 学习淘淘商城第五十二课(全局异常处理)
- get获取网络方法
- rabbitmq笔记
- 08.ldap网络帐号
- SAP HANA条件控制语句
- scikit-learn的基本用法(二)——数据集的使用
- 山东省第四届ACM大学生程序设计竞赛 Alice and Bob
- 让你的站点也支持MarkDown
- Android 杀死process进程(自杀和他杀)
- 回归简析
- POJ2975(Nim博弈)
- SAP HANA关于UNION和UNION ALL