C# AD 执行错误 UpdErr: DSID-031A11FA, problem 6005 (ENTRY_EXISTS)

错误信息为:

'(AddResponse)connection.SendRequest(request)' threw an exception of type 'System.DirectoryServices.Protocols.DirectoryOperationException'
    Data: Count = 0
    HResult: -2146233088
    HelpLink: null
    InnerException: null
    Message: "The object exists. 00000524: UpdErr: DSID-031A11FA, problem 6005 (ENTRY_EXISTS), data 0\n"
    Response: {System.DirectoryServices.Protocols.AddResponse}
    Source: "System.DirectoryServices.Protocols"
    StackTrace: "   at System.DirectoryServices.Protocols.LdapConnection.<ConstructResponseAsync>d__57.MoveNext()\r\n   at System.Runtime.CompilerServices.ValueTaskAwaiter`1.GetResult()\r\n   at System.DirectoryServices.Protocols.LdapConnection.SendRequest(DirectoryRequest request, TimeSpan requestTimeout)\r\n   at System.DirectoryServices.Protocols.LdapConnection.SendRequest(DirectoryRequest request)"
    TargetSite: {Void MoveNext()}

导致错误的愿意是用户已经存在了,不能重复创建。

AD 通过代码提示的这个错误真是一言难尽。