问题描述
我是LDAP
的新手,并尝试添加额外的attribute
s& ObjectClass
到OpenLDAP
(2.4.40)架构,因此它可以与正在使用Active Directory的Java代码兼容
I am newbie in LDAP
and trying to add extra attribute
s & ObjectClass
to OpenLDAP
(2.4.40) schema, so it could compatible with the java code that is working with Active Directory
我在网上做了很多研究,最后找到了这个.ldif
文件,但是不能完全弄清楚应该为目标架构放入的dn
是什么. cn=ldapadm,dc=myapp,dc=local
是我为当前项目创建的DN
,但我想这不应该是整个这些全局attributes
和objectclasses
I did quite a lot of research online and finally come to this .ldif
file, but can't quite figure out what is the dn
that I should put in there for the target schema. The cn=ldapadm,dc=myapp,dc=local
is the DN
I created for current project, but I guess that shouldn't be the place to whole these global attributes
and objectclasses
dn: cn=ldapadm,dc=myapp,dc=local
objectClass: olcSchemaConfig
cn: cn=ldapadm,dc=myapp,dc=local
olcAttributeTypes: {0}( 1.2.840.113556.1.4.221 NAME 'sAMAccountName' SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 SINGLE-VALUE )
olcAttributeTypes: {1}( 1.2.840.113556.1.2.210 NAME 'proxyAddresses' SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 )
olcAttributeTypes: {2}( 1.2.840.113556.1.4.750 NAME 'groupType' SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 SINGLE-VALUE )
olcAttributeTypes: {3}( 1.3.114.7.4.2.0.33 NAME 'memberOf' SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 )
olcObjectClasses: {0}( 1.2.840.113556.1.5.9 NAME 'user' DESC 'a user' SUP organizationalPerson STRUCTURAL MUST cn MAY ( userPassword $ memberOf ) )
olcObjectClasses: {1}( 1.2.840.113556.1.5.8 NAME 'group' DESC 'a group of users' SUP top STRUCTURAL MUST ( groupType $ cn ) MAY member )
错误
adding new entry "cn=ldapadm,dc=myapp,dc=local"
ldap_add: Already exists (68)
,如果我使用虚拟dn
dn: cn=config
错误变为
adding new entry "cn=config"
ldap_add: Server is unwilling to perform (53)
additional info: no global superior knowledge
那么我应该如何定义dn
以便将Active Directory
元素注册到全局设置中?
So how should I define the dn
so I can register the Active Directory
elements into global setting?
推荐答案
您正在登录的用户的DN是cn=ldapadm,dc=myapp,dc=local
.
The DN of the user you're loggin in as is cn=ldapadm,dc=myapp,dc=local
.
整个配置子树的DN为cn=config
.
The DN of the entire configuration subtree is cn=config
.
架构的DN为cn=schema,cn=config
.
这篇关于将Windows Active Directory属性/对象类添加到OpenLDAP的DN值是什么的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!