ActiveDirectory error 0x8000500c when traversing properties

前端 未结 5 1918
北荒
北荒 2020-12-11 05:07

I got the following snippet (SomeName/SomeDomain contains real values in my code)

var entry = new DirectoryEntry(\"LDAP://CN=SomeNa         


        
5条回答
  •  借酒劲吻你
    2020-12-11 05:37

    If one wants to access a custom attribute from a machine that is not part of the domain where the custom attribute resides (the credentials of the logged in user don't matter) one needs to pass the fully qualified name of the object is trying to access otherwise the schema cache on the client machine is not properly refreshed, nevermind all the schema.refresh() calls you make

    Found here. This sounds like your problem, given the updates made to the question.

提交回复
热议问题