Ldap ldif 文件 样例

Ldap ldif 文件 样例

http://www.huomo.cn/sysapp/article-8776.html

# 文件格式:
# dn: <distinguished name>
#        <attrdesc>: <attrvalue>
#        <attrdesc>: <attrvalue>
#
#Notice:
# (1) ldif文件中,每一行中冒号后有一个空格,行尾一定不能有空格。
# (2) 如果attrvalue中包含 non-printing character,或者以"空格,冒号,小于号"开始,则attrdes后面应该带两个"冒号::",同时attrvalue应当写成base64编码
#    # Jennifer's Entry, R&D, HR, feitian.com
# dn: cn=Jennifer's Entry,ou=R&D,o=HR,dc=feitian,dc=com
# objectClass: inetOrgPerson
# objectClass: top
# sn: Jensen
# cn: Jennifer's Entry
# # Base64 encoded JPEG photo
# jpegPhoto:: /9j/4AAQSkZJRgABAAAAAQABAAD/2wBDABALDA4MChAODQ4SERATGCgaGBYWGDEjJR0oOjM9PDkzODdASFxOQERXRTc4UG1RV19iZ2hnPk1xeXBkeFxlZ2P/2wBDARESEhgVG
# # JPEG photo from file
# jpegPhoto:< file:///F:/ImportantMaterial/me/20071027/InApartment-9.JPG  
# (3) 多个条目应当以 "空行" 相隔开
#
# ldapadd -x -D "cn=Manager,dc=feitian,dc=com" -W -f imq.ldif
# ldapadd -x -D cn=Manager,dc=feitian,dc=com -w secret -f imq.ldif
# ldapadd -x -D cn=Manager,dc=feitian,dc=com -w "secret" -f imq.ldif
# ldapsearch -x -v -b 'dc=feitian,dc=com' '(objectclass=*)'
# ldapmodify -D "cn=Manager,dc=mydomain,dc=org" -W -x -a -f imq.ldif


# com
dn: dc=com
objectClass: domain
dc: com

# feitian.com
dn: dc=feitian,dc=com
objectClass: domain
dc: feitian

# org
dn: dc=org
objectClass: domain
dc: org
# feitian.org
dn: dc=feitian,dc=org
objectClass: domain
dc: feitian

# Manager, feitian.com
dn: cn=Manager,dc=feitian,dc=com
objectClass: organizationalRole
cn: Manager

# HR, feitian.com
dn: o=HR,dc=feitian,dc=com
objectClass: organization
objectClass: top
o: HR

# R&D, HR, feitian.com
dn: ou=R&D,o=HR,dc=feitian,dc=com
objectClass: organizationalUnit
objectClass: top
ou: R&D

# Tom Black, R&D, HR, feitian.com
dn: cn=Tom Black,ou=R&D,o=HR,dc=feitian,dc=com
cn: Tom Black
sn: Black
mail: [email protected]
telephoneNumber: 371-6338-3522
objectClass: inetOrgPerson

# Jennifer's Entry, R&D, HR, feitian.com
dn: cn=Jennifer's Entry,ou=R&D,o=HR,dc=feitian,dc=com
objectClass: inetOrgPerson
objectClass: top
sn: Jensen
cn: Jennifer's Entry
# Base64 encoded JPEG photo
#jpegPhoto:: /9j/4AAQSkZJRgABAAAAAQABAAD/2wBDABALDA4MChAODQ4SERATGCgaGBYWGDEjJR0oOjM9PDkzODdASFxOQERXRTc4UG1RV19iZ2hnPk1xeXBkeFxlZ2P/2wBDARESEhgVG
# JPEG photo from file
#jpegPhoto:< file:///F:/ImportantMaterial/me/20071027/InApartment-9.JPG

你可能感兴趣的:(F#)