新增LDAP自定義屬性
檔案路徑 /etc/openldap/schema/XXX.schema attributetype ( 2.16.840.1.113730.3.1.900 NAME 'aa' DESC 'whether the person is absent from work' EQUALITY caseIgnoreMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{ 128 } SINGLE-VALUE ) 2.16.840.1.113730.3.1.900 <<不能重複 未被使用的OID (如同屬性的流水碼) https://www.ldap.com/ldap-oid-reference (可參考連結 沒被使用的OID) NAME 'aa' <<屬性名稱 aa DESC ' whether the person is absent from work' <<描敘屬性(說明用) EQUALITY caseIgnoreMatch <<匹配方式 SUBSTR是字符串匹配,EQUALITY是相等性匹配, ORDERING 是順序匹配 OID配對規則 caseIgnoreMatch ...等 看不懂 SYNTAX是表示字段的數據類型 如下語法使用 SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 { 128 } // { 128 } 最大長度 //可不設定 OID語法 說明 1.2.36.79672281.1.5.0 RDN 1.3.6.1.1.1.0.0 RFC2307 NIS Netgroup Triple 1.3.6.1.1.1.0.1 RFC2307引導參數 1.3.6.1.1.16.1 UUID 1.3.6.1.4.1.1466.115.121.1.10 證書對 1.3.6.1.4.1.1466.115.121.1.11 國家...