当前位置:网站首页>OpenLDAP自定义schema
OpenLDAP自定义schema
2022-07-17 04:09:00 【shibushi114】
attributetype ( 1.3.6.1.4.1.7914.1.2.1.1
NAME 'userName'
DESC 'name of the user on the system'
EQUALITY caseIgnoreMatch
SUBSTR caseIgnoreSubstringsMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15
SINGLE-VALUE )
attributetype ( 1.3.6.1.4.1.7914.1.2.1.2
NAME 'accountIsLocked'
DESC 'accountIsLocked'
EQUALITY booleanMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.7
SINGLE-VALUE )
attributetype ( 1.3.6.1.4.1.7914.1.2.1.3
NAME 'accountCreateDate'
DESC 'accountCreateDate'
EQUALITY generalizedTimeMatch
ORDERING generalizedTimeOrderingMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.24
SINGLE-VALUE)
attributetype ( 1.3.6.1.4.1.7914.1.2.1.4
NAME 'accountDisabled'
DESC 'accountDisabled'
EQUALITY booleanMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.7
SINGLE-VALUE )
attributetype ( 1.3.6.1.4.1.7914.1.2.1.5
NAME 'accountExpireDate'
DESC 'accountExpireDate'
EQUALITY generalizedTimeMatch
ORDERING generalizedTimeOrderingMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.24
SINGLE-VALUE)
attributetype ( 1.3.6.1.4.1.7914.1.2.1.6
NAME 'accountIsAdmin'
DESC 'accountIsAdmin'
EQUALITY booleanMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.7
SINGLE-VALUE )
attributetype ( 1.3.6.1.4.1.7914.1.2.1.7
NAME 'accountLastLoginDate'
DESC 'Accountlastlogindate'
EQUALITY generalizedTimeMatch
ORDERING generalizedTimeOrderingMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.24
SINGLE-VALUE )
attributetype ( 1.3.6.1.4.1.7914.1.2.1.9
NAME 'accountCreator'
DESC 'Creator'
SYNTAX 1.3.6.1.4.1.1466.115.121.1.26
SINGLE-VALUE )
attributetype ( 1.3.6.1.4.1.7914.1.2.1.10
NAME 'accountid'
EQUALITY caseIgnoreMatch
SUBSTR caseIgnoreSubstringsMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15
SINGLE-VALUE )
objectclass ( 1.3.6.1.4.1.7914.1.2.2.1 NAME 'rbacUser'
DESC 'rbac User'
SUP top AUXILIARY
MUST ( userName $ accountid )
MAY ( accountExpireDate $ accountIsLocked $ accountCreateDate $ accountDisabled $ accountIsAdmin $ Accountlastlogindate $ accountCreator )
)
在/etc/openldap/schema目录增加,然后 重新生成
slaptest -f /etc/openldap/slapd.conf -F /etc/openldap/slapd.d/
ldapadd -Q -Y EXTERNAL -H ldapi:/// -f memberof_config.ldif
ldapmodify -Q -Y EXTERNAL -H ldapi:/// -f refint1.ldif
ldapadd -Q -Y EXTERNAL -H ldapi:/// -f refint2.ldif
ldapadd -Q -Y EXTERNAL -H ldapi:/// -f add_module_group.ldif
ldapadd -Q -Y EXTERNAL -H ldapi:/// -f add_group_objectClass.ldif
ldapsearch -x -LLL -H ldap:/// -b uid=yanfh,ou=people,dc=kindo,dc=com,dc=cn memberof
ldapadd -Q -Y EXTERNAL -H ldapi:/// -f test.ldif
ldapadd -D "cn=admin,dc=kindo,dc=com,dc=cn" -W -x -f jirauser.ldif
slaptest -f /etc/openldap/slapd.conf -F /etc/openldap/slapd.d/
chown -R ldap:ldap /etc/openldap/slapd.d && chmod -R 700 /etc/openldap/slapd.d
边栏推荐
- leetcode977. Square of ordered array
- Structure gets the address of the main structure (struct) through member variables
- ospf防环
- Eas (energy aware scheduling) green energy-saving scheduler
- JS modal box
- [database] must know and be able at the end of the term ----- Chapter 1 database overview
- HCR慧辰北坡而行,一只游入数字营销服务的巨兽
- C语言基础犄角旮旯的知识之数据类型
- Software testing - use cases
- 机器学习09:无监督学习
猜你喜欢
Software testing - Advanced
小程序毕设作品之微信电子书阅读小程序毕业设计(1)开发概要
使用kaggle跑李宏毅机器学习作业
JS modal box
Leetcode7 DFS + dynamic programming + double pointer
donet framework4. X==windows form application new project, through system Data. SqlClient connects to sqlserver to query
Live broadcast of cloud intelligence face to face is waiting for you: computing power redefines productivity
OSPF的优化和配置
Skillfully use enterprise network disk to collect reports or summaries
Wechat online education video on demand learning applet graduation project (4) opening report
随机推荐
High performance and economy: aoteng persistent memory helps mobile cloud cope with severe memory challenges
Insert the laptop into the headset and still play it out (the personal test is valid)
OSPF的优化和配置
使用__slots__和__dict__来节省空间(简直就是质的飞越,LeetCode亲测有效)
[database] must know and be able at the end of the term ----- Chapter 1 database overview
Graphic verification code verification
[database] knowledge and skills at the end of the term ----- Chapter 9 database design
64. 最小路径和:给定一个包含非负整数的 m x n 网格 grid ,请找出一条从左上角到右下角的路径,使得路径上的数字总和为最小。 说明:每次只能向下或者向右移动一步。
Introduction au cadre Maui 05 compréhension du modèle de données mvvm
In the era of super video, what is the solution to the data flood?
C # explain out output parameters in detail
Swift 【Class】【struct】
minimum spanning tree
项目套价是什么意思?
Machine learning 11: cost sensitive learning
Data types of basic knowledge of C language
String extension method usage
Smart fan system based on STM32F103
模拟服务器进行请求
小程序毕设作品之微信电子书阅读小程序毕业设计(2)小程序功能