【问题标题】:Cannot create new computer in ADSI Edit on an AD LDS instance无法在 AD LDS 实例上的 ADSI Edit 中创建新计算机
【发布时间】:2017-10-03 17:35:56
【问题描述】:

使用 ADSI Edit 我无法使用界面并创建新的计算机

背景

所以我在我的 Windows 8.1 Pro 电脑上安装了Active Directory Lightweight Directory Services (AD LDS)。然后我按照教程到create an AD LDS instance,然后是这个tutorial setting up groups and users。一切都按照这些教程页面中的详细说明进行。

但是,我想开发 LDAP 查询来确定 ActiveDirectory 组中的计算机数量,因此我想创建计算机对象。这在新菜单中是不可能的。我在其他地方读到 LDIF 的导入很重要,因为您需要正确的模式。所以我第二次按照这些步骤导入了所有可用的 LDIF 文件,这些文件是在 C:\Windows\ADAM 中找到的文件的子集(对我来说),选择是...

  • MS-AdamSyncMetadata.LDF
  • MS-ADLDS-DisplaySpecifiers.LDF
  • MS-AZMan.LDF
  • MS-InetOrgPerson.LDF
  • MS-MembershipTransitive.LDF
  • MS-ParentDistname.LDF
  • MS-ReplValMetadataExt.LDF
  • MS-SecretAttributeCARs.LDF
  • MS-SetOwnerBypassQuotaCARs.LDF
  • MS-User.LDF
  • MS-UserProxy.LDF
  • MS-UserProxyFull.LDF

但即使选择了所有这些,我仍然无法创建新计算机。

现在,C:\Windows\ADAM 之外的唯一 ldf 文件似乎是 SQL Server 日志数据文件,因为文件扩展名已超载。

但是,并非C:\Windows\ADAM 中的所有文件都出现在列表中,MS-ADAMSCHEMAW2K8.LDF 没有出现。如果我在这个文件的内容中四处寻找,那么我可以得到一些有希望的东西。

...
# Class: computer
dn: cn=Computer,cn=Schema,cn=Configuration,dc=X
changetype: ntdsschemaadd
objectClass: classSchema
governsID: 1.2.840.113556.1.3.30
ldapDisplayName: computer
adminDisplayName: Computer
adminDescription: Computer
# schemaIDGUID: bf967a86-0de6-11d0-a285-00aa003049e2
schemaIDGUID:: hnqWv+YN0BGihQCqADBJ4g==
objectClassCategory: 1
systemFlags: 16
# subclassOf: user
subclassOf: 1.2.840.113556.1.5.9
...

所以不知何故我无法选择我需要的 LDIF 文件。我做错了什么?

编辑: 继续使用 Google,似乎我是正确的 “默认情况下 AD LDS 架构没有计算机类”,因为此引用出现在此 Technet web page 上。

Extend the AD LDS Schema to Support NFS User Mapping做实验

使用ldifde -i -u -f MS-AdamSchemaW2K8.LDF -s localhost:389 -j . -c "cn=Configuration,dc=X" “#configurationNamingContext” 会给出以下错误输出

Connecting to "localhost:389"
Logging in as current user using SSPI
Importing directory from file "MS-AdamSchemaW2K8.LDF"
Loading entries.
Add error on entry starting on line 16: Invalid DN Syntax
The server side error is: 0x208f The object name has bad syntax.
The extended server error is:
0000208F: NameErr: DSID-03100225, problem 2006 (BAD_NAME), data 8350, best match of:
    'cn=Schema,"#configurationNamingContext"'

0 entries modified successfully.
An error has occurred in the program
.

answer here 解决了上述问题,它表示不要用引号括起最终术语。

...进展中...解决了它。会回答我自己的问题。

【问题讨论】:

    标签: active-directory ldap ldap-query adsi adlds


    【解决方案1】:

    因此扩展架构是正确的做法,但要了解规范 Technet article 的说明有一个错字,在此 Technet forum Q & A 已更正。

    正确的形式是

    ldifde -i -u -f MS-AdamSchemaW2K8.LDF -s localhost:389 -j . -c "cn=Configuration,dc=X" #configurationNamingContext

    这是证据

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2020-03-16
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-02-16
      • 1970-01-01
      相关资源
      最近更新 更多