iT邦幫忙

0

OpenLdap 如何在現有的ObjectClass增加一個Attribute

請問各位先進OpenLdap如何在現有的ObjectClass增加一個Attribute

我 是使用ldapmodify 去修改

dn: cn=schema,cn=config
changetype: modify
add: attributetypes
attributetype ( 2.16.8.220
	NAME 'customeFlag'
	DESC 'A customeFlag
	EQUALITY caseIgnoreMatch
	SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 )	  
-
delete: objectclasses
objectclasses: ( 2.16.8.131 )
-
add: objectclasses
olcObjectClasses: ( 2.16.8.131 NAME 'customObject' DESC 'Custom Shema ' SUP inetOrgPerson STRUCTURAL MAY ( birthDate $ gender $ customeFlag) )

但執行後都會出

ldapmodify: invalid format (line 4) entry: "cn=schema,cn=config"

請問我哪寫錯了??

dn: cn=schema,cn=config 不該這樣寫嗎? 這是我看這個objectClass 的 ldif檔DN就是這樣寫的

圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

尚未有邦友回答

立即登入回答