有看過這個嗎?
http://www.openldap.org/faq/data/cache/294.html
謝謝duncanlo
小弟我有看過,可能是小弟我英文不是很好所以有些漏看
但是看了一下
Country/Region - c, co, countryName
Web Page - URL應該是
Attribute為URL沒錯呀
我是用"Java LDAP Browser\Editor v2.8.2"去加的
它就說 Failed to add "URL" Attribute 呀,是我有哪一個ObjectFClass沒加到嗎??
頭好痛呀 :cry: :cry: :cry: :cry: :cry:
小弟RH7.3系統上的schema沒有定義到URL這個attribute,所以
參考了
http://www.yolinux.com/TUTORIALS/LinuxTutorialLDAP-GILSchemaExtension.html#EXAMPLE的作法,加入一個新的schema來支援 outlook 及 mozilla的通訊
錄。您試試看吧。
首先修改
cosine.schema
NAME ( 'pager' 'pagerTelephoneNumber' 'pagerPhone' )
及
core.schema:
NAME ( 'telephoneNumber' 'xmozillaanyphone' )
NAME ( 'uid' 'userid' 'ntuid')
NAME ( 'telephoneNumber' 'xmozillaanyphone' )
nis.schema:
NAME ( 'uidNumber' 'rid' ) // 若有 include samba 的schema,這個檔就不用改了,小弟建議使用SAMBA提供的schema。
新增一個新的schema
extension.schema
attributetype ( 1.3.6.1.4.1.4203.666.100.121
NAME ( 'rdn' )
SUP name )
attributetype ( 1.3.6.1.4.1.4203.666.100.122
NAME ( 'otherFacsimiletelephoneNumber' )
SUP telephoneNumber )
attributetype ( 1.3.6.1.4.1.4203.666.100.123
NAME ( 'IPPhone' )
SUP telephoneNumber )
# This attribute handles MS/Outlook and Netscape Communicator
attributetype ( 1.3.6.1.4.1.4203.666.100.124
NAME ( 'URL' 'homeUrl' )
SUP name )
attributetype ( 1.3.6.1.4.1.4203.666.100.125
NAME ( 'comment' )
SUP name )
attributetype ( 1.3.6.1.4.1.4203.666.100.126
NAME ( 'conferenceInformation' )
SUP name )
attributetype ( 1.3.6.1.4.1.4203.666.100.127
NAME ( 'reports' )
SUP manager )
objectclass ( 1.3.6.1.4.1.4203.666.100.1
NAME 'officePerson'
DESC 'Office employee or computer user'
SUP inetOrgPerson
STRUCTURAL
MAY ( c $
rdn $
otherFacsimiletelephoneNumber $
IPPhone $
URL $
comment $
reports $
conferenceInformation )
)
// for mozilla
attributetype ( 1.3.6.1.4.1.4203.666.100.151
NAME ( 'xmozillanickname' )
EQUALITY caseIgnoreMatch
SUBSTR caseIgnoreSubstringsMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{1024} )
attributetype ( 1.3.6.1.4.1.4203.666.100.152
NAME 'xmozillausehtmlmail'
EQUALITY caseIgnoreMatch
SUBSTR caseIgnoreSubstringsMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{64} )
objectclass ( 1.3.6.1.4.1.4203.666.100.5
NAME 'zillaPerson'
DESC 'Netscape Communicator Extensions'
SUP officePerson
STRUCTURAL
MAY ( cellPhone $
pagerPhone $
description $
homeUrl $
xmozillaanyphone $
xmozillanickname $
xmozillausehtmlmail )
)
將您的slapd.conf加入include extension.schema
然後在您的使用者資料加入 objectClass:officePerson,您就可以
加入 attribute URL了,不過在個人的資料中仍然無法顯示,不知道有那位學長有研究的…分享一下吧…