歡迎您光臨本站 註冊首頁

怎樣調用系統已經定義好的attribute?急~~

←手機掃碼閱讀     火星人 @ 2014-03-04 , reply:0

怎樣調用系統已經定義好的attribute?急~~

我修改了一個系統定義的類,想多調用系統定義的一些attribute,需要將那些定義的部分搬到含person類的文件下嗎?
userclass email aRecord 這3個在這文件里都沒有定義,是在別的地方定義的
attributetype ( 0.9.2342.19200300.100.1.8 NAME 'userClass'
        DESC 'RFC1274: category of user'
        EQUALITY caseIgnoreMatch
        SUBSTR caseIgnoreSubstringsMatch
        SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{256} )

attributetype ( 0.9.2342.19200300.100.1.26 NAME 'aRecord'
        EQUALITY caseIgnoreIA5Match
        SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 )


objectclass ( 2.5.6.6 NAME 'person'
        DESC 'student and teacher'
        SUP top STRUCTURAL
        MUST ( sn $ cn )
        MAY ( userPassword $ userclass $ email $ telephoneNumber $ userid $ aRecord )

需要對那些attribute的定義做出修改嗎?
《解決方案》

有兩個途徑
1)在你這個文件的前面部分自己創建好你需要的attribute,這樣你後面修改的objectclass就能成功使用那些attribute了
2)將你用的attribute單獨創建一個schema文件,在你修個的schema文件include之前include

[火星人 ] 怎樣調用系統已經定義好的attribute?急~~已經有403次圍觀

http://coctec.com/docs/service/show-post-30263.html