简体   繁体   English

如何在Apache Directory studio中定义我们自己的列..?

[英]How to define our own column in Apache Directory studio..?

i am using a Apache directory studio for as my database. 我使用Apache目录工作室作为我的数据库。 how i can create there my own field. 我怎样才能在那里创造自己的领域。 because there are object class and based upon object class we can add the filed. 因为有对象类并且基于对象类我们可以添加该字段。 how can we manually add any filed.. 我们如何手动添加任何文件..

Following is my LDIF file. 以下是我的LDIF文件。

dn: cn  = username ,ou=users,o=Agile-Infotech,ou=system
objectClass: organizationalPerson
objectClass: person
objectClass: inetOrgPerson
objectClass: top
cn: *****
sn: Doshi
description: Manager
uid: ******
userPassword:: e1NTSEF9TThWUnR3QjZrQm1jUTFjcWhUMmgwcmJqQUZCbGVnbkVHdDkzamc9P

**homeFolder : anything**  // i want to add this filed also in the user.

when i am adding in apache Ds it gives me NO SUCH ATTRIBUTE FOUND 当我添加apache Ds时,它没有给我这样的属性

The LDAP object classes and their attributes are described in schema definition files. LDAP对象类及其属性在schema定义文件中描述。 The classes and attributes can be inherited from and extended. 类和属性可以继承和扩展。 If you want to add a new attribute to the class organizationalPerson , then you need to extend it. 如果要向类organizationalPerson添加新属性,则需要对其进行扩展。

The schema files OpenLDAP ships with reside in a sub-directory schema under your OpenLDAP installation directory. OpenLDAP附带的模式文件驻留在OpenLDAP安装目录下的子目录schema Although not all files in that directory are being loaded into OpenLDAP by default. 虽然默认情况下并非该目录中的所有文件都被加载到OpenLDAP中。 You can add your own definition files to that directory or any other directory the OpenLDAP run-user can read from. 您可以将自己的定义文件添加到该目录或OpenLDAP运行用户可以读取的任何其他目录中。

Have a look at the OpenLDAP schema reference and this article for a quick rundown on how to extend object classes and attributes. 查看OpenLDAP 模式参考本文 ,快速了解如何扩展对象类和属性。

If you are using ApacheDS you can use the Apache Directory Studio to extend the schema via the studio or you can import OpenLDAP schema files. 如果您使用的是ApacheDS,则可以使用Apache Directory Studio通过工作室扩展架构,也可以导入OpenLDAP架构文件。 See the online documentation . 请参阅在线文档

You need to create a schema project, add schema and then add attributetype. 您需要创建架构项目,添加架构,然后添加attributetype。

Refer to similar attribute type in the existing schema if you have or read the OpenLDAP documentation. 如果您拥有或阅读OpenLDAP文档,请参阅现有模式中的类似属性类型。

Basically, your definition of custom attribute type have to mention mandatory fields like the OID, NAME, SYNTAX etc. 基本上,您对自定义属性类型的定义必须提到必需的字段,如OID,NAME,SYNTAX等。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM