轉貼 談LDAPschema的定義

2021-04-16 09:56:27 字數 1802 閱讀 6180

schema包含五大元件:oid,唯一名稱name,父物件sup,must屬性,may屬性。

下面是乙個schema例子: #

# xlymail-ldap v3 directory schema #

# written by 

[email protected] #

# attribute type definitions

attributetype ( 1.3.6.1.4.1.7.1.2.1.1 name 'xlyusername'

desc 'name of the user on the mailsystem'

equality caseignoreia5match

syntax 1.3.6.1.4.1.1466.115.121.1.26 single-value )

attributetype ( 1.3.6.1.4.1.7.1.2.1.2 name 'xlyvuid'

desc 'uid of the user on the mailsystem'

equality integermatch

syntax 1.3.6.1.4.1.1466.115.121.1.27 single-value )

attributetype ( 1.3.6.1.4.1.7.1.2.1.3 name 'xlyvgid'

desc 'gid of the user on the mailsystem'

equality integermatch

syntax 1.3.6.1.4.1.1466.115.121.1.27 single-value )

attributetype ( 1.3.6.1.4.1.7.1.2.1.4 name 'xlymaildir'

desc 'path to the maildir/mbox on the mail system'

equality caseexactmatch

syntax 1.3.6.1.4.1.1466.115.121.1.15 single-value )

#1.3.6.1.4.1.1466.115.121.1.15 directory

attributetype ( 1.3.6.1.4.1.7.1.2.1.5 name 'xlyforwardaddr'

substr caseignoresubstring**atch

desc 'forward mail address'

equality caseignoreia5match

syntax 1.3.6.1.4.1.1466.115.121.1.26 )

#object class definitions

objectclass ( 1.3.6.1.4.1.7.1.2.2.1 name 'xlymailuser'

desc 'xlymail-ldap user'

sup person structural

must ( xlyusername $ xlyvuid $ xlyvgid )

may ( xlymaildir $ xlyforwardaddr ) )

屬性定義注意事項:

objectclass(1.3.6.1.4.1.7.1.2.2.1 name 'xlymailuser'

desc 'xlymail-ldap user'

sup person structural

must ( xlyusername $ xlyvuid $ xlyvgid )

may ( xlymaildir $ xlyforwardaddr ) )

這將導致找不到自定義的objectclass物件類。

LDAP Schema的概念和基本要素

schema是ldap的乙個重要組成部分,類似於資料庫的模式定義,ldap的schema定義了ldap目錄所應遵循的結構和規則,比如乙個 objectclass會有哪些屬性,這些屬性又是什麼結構等等,schema給ldap伺服器提供了ldap目錄中類別,屬性等資訊的識別方式,讓這些可以被ldap伺服...

(轉貼)錢學森談大學創新教育

錢老去世以後,許多人問我們 錢老有什麼遺言?並希望我們這些身邊工作人員寫一篇 錢學森在最後的日子 的文稿。我們已告訴大家,錢老去世時很平靜安詳,他沒有什麼最後的遺言。因為在錢老去世前的一段日子,他說話已經很困難了。我們可以向大家提供的,是錢老最後一次向我們作的系統談話的乙份整理稿 錢老談科技創新人才...

Spss中定比 定距 定序 定類的區別

spss中定比 定距 定序 定類的區別 1 定比 主要是數值或數字型別,可以做加減運算,目的是得到更加精確的值,比如身高或者體重之類的 2 定距 主要是數值或數字型別,有單位,可以做加減運算,但是不能做乘除運算,比如溫度之類的 3 定類 主要為型別分類,但是分類是沒有大小區分的,比如表示性別,用1表...