1.  D:\OpenLDAP\schema目录 下新建 my.schema

# 定义属性 - Attribute Type Definitions
	
attributetype ( 2.5.4.55 NAME 'systemName'
	DESC 'The system name, a plurality of | segmentation '
	SUP name
	)
	
attributetype ( 2.5.4.56 NAME 'orgUid'
	DESC 'The system orgUid'
	SUP name
	)

attributetype ( 2.5.4.57 NAME 'myMobilePhone'
	DESC 'The system myMobilePhone'
	SUP name
	)
	
# 定义类 - Object Class Definitions

objectClass ( 2.5.6.24 NAME 'myAafPerson'
	DESC 'AWSOrgAn Displayable Object'
	SUP top
	MUST ( orgUid $ systemName )
	may ( myMobilePhone )
	)

注意: 

 1.  oid   需要保证全局唯一   如:  2.5.4.56      2.5.6.24

 2.  属性名和类名 需避免关键词

 

 

2.  D:\OpenLDAP\slapd.conf  中引入my.schema

include		./schema/my.schema

3. 重启ldap

《LDAP》LDAP自定义objectclass和属性

相关文章:

  • 2022-03-01
  • 2021-11-27
  • 2021-06-24
  • 2021-11-25
  • 2022-12-23
  • 2021-06-04
  • 2021-12-21
  • 2022-12-23
猜你喜欢
  • 2021-06-11
  • 2022-12-23
  • 2021-05-19
  • 2022-12-23
  • 2021-06-23
  • 2021-10-16
相关资源
相似解决方案