打开APP
userphoto
未登录

开通VIP,畅享免费电子书等14项超值服

开通VIP
ldap中创建和AD中相同的用户显示名

ldap中创建和AD中相同的用户显示名

分类: linux 57人阅读 评论(0) 收藏 举报

首先:添加ou节点:

dn: cn=users,dc=example,dc=com
cn: users
description: Users of example.com
objectClass: organizationalRole

 

/usr/local/openldap/bin/ldapadd –x -D "uid=root,ou=people,dc=example,dc=com" -W -f /etc/openldap/openldap/ou.ldif

其次添加用户:

dn: cn=tian,cn=users,dc=example,dc=com

uid: tian

cn: Manager

objectClass: account

objectClass: posixAccount

objectClass: top

objectClass: shadowAccount

userPassword: {crypt}$1$IFm4FK.X$ozUsGze1DjCpPJdNErcwk.

shadowLastChange: 14484

shadowMax: 99999

shadowWarning: 7

loginShell: /bin/bash

uidNumber: 0

gidNumber: 0

homeDirectory: /root

gecos: root

 

 

/usr/local/openldap/bin/ldapadd -D "uid=root,ou=people,dc=example,dc=com" -Y GSSAPI -f /etc/openldap/openldap/tian.ldif

本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请点击举报
打开APP,阅读全文并永久保存 查看更多类似文章
猜你喜欢
类似文章
【热】打开小程序,算一算2024你的财运
Installing & Configuring OpenLDAP Server On CentOS 6.4 | RedHat / CentOS Linux Tutorials And How
OpenLDAP学习笔记
LDAP服务配置
Openldap学习笔记[转]-openldap介绍
LDAP初玩
RHCA教程:rhe423
更多类似文章 >>
生活服务
热点新闻
分享 收藏 导长图 关注 下载文章
绑定账号成功
后续可登录账号畅享VIP特权!
如果VIP功能使用有故障,
可点击这里联系客服!

联系客服