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