Windows Domain via LDAP account management error 8004
173
Created On 11/10/26 11:04 AM - Last Modified 11/10/26 16:02 PM
Symptom
When attempting to manage an account using the Windows Domain via LDAP platform, you may receive an error including the following strings:
- Return code: 8004
- System.DirectoryServices.Protocols.DirectoryOperationException: A value in the request is invalid
Debug logs may include the following:
|
Info -> ConnectionManager :: Init -> START
Info -> ConnectionManager :: Init -> Started connection to address 'example.com' with user 'ExampleUser' on domain 'example'.
Info -> ConnectionManager :: Init -> AuthenticationType: Basic, sslFlag: True, startTLS: False, port: 636
Info -> ConnectionManager :: Init -> HostName to which connection was bound: DC1.EXAMPLE.COM
Info -> ConnectionManager :: Init -> DomainName to which connection was bound: EXAMPLE.COM
Info -> ConnectionManager :: Init -> Connection completed successfully.
Info -> ConnectionManager :: Init -> END
Info -> BaseAction :: Connect -> END
Info -> BaseAction :: SendRequest -> START
Info -> ModificationRequest :: Send -> START
Info -> ModificationRequest :: Send -> Started command 'ChangePassword' for user 'ExampleUser'.
Info -> LdapUtils :: GetUsernameType -> START
Info -> LdapUtils :: GetUsernameType -> Account name type of 'ExampleUser' is 'Name'.
Info -> LdapUtils :: GetUsernameType -> END
Info -> WindowsActiveDirectoryHandler :: SearchUser -> START
Info -> LdapUtils :: GetUsernameType -> START
Info -> LdapUtils :: GetUsernameType -> Account name type of 'ExampleUser' is 'Name'.
Info -> LdapUtils :: GetUsernameType -> END
Info -> WindowsActiveDirectoryHandler :: SearchUser -> END
Info -> ModificationRequest :: Send -> 'ExampleUser' account DN value is 'CN=Example User,OU=Users,OU=ExampleCorp,DC=EXAMPLE,DC=COM'.
ERROR -> ModificationRequest :: Send -> Received exception: System.DirectoryServices.Protocols.DirectoryOperationException: A value in the request is invalid.
at System.DirectoryServices.Protocols.LdapConnection.ConstructResponse(Int32 messageId, LdapOperation operation, ResultAll resultType, TimeSpan requestTimeOut, Boolean exceptionOnTimeOut)
at System.DirectoryServices.Protocols.LdapConnection.SendRequest(DirectoryRequest request, TimeSpan requestTimeout)
at System.DirectoryServices.Protocols.LdapConnection.SendRequest(DirectoryRequest request)
at CyberArk.Extensions.Plugin.LDAP.ModificationRequest.Send().
Info -> BaseAction :: SendRequest -> END
Info -> BaseAction :: SetPlatformOutputMessage -> START
ERROR -> BaseAction :: SetPlatformOutputMessage -> Return code: 8004.
ERROR -> BaseAction :: SetPlatformOutputMessage -> Failure : Change process failed - Failed to perform ChangePassword operation. Review the logs for more information.
Info -> BaseAction :: SetPlatformOutputMessage -> END
Info -> Change :: run -> END
|
Environment
Privileged Access Manager (PAM, self-hosted);Privilege Cloud Central Policy Manager (CPM);Privilege Cloud Connector;Connector Management
All possible environmental factors are not yet clear.
Cause
In the "System.DirectoryServices.Protocols.DirectoryOperationException: A value in the request is invalid." message, the request refers to the request which was sent to the LDAP server, while value refers to some parameter which formed part of this request.
The error indicates that the Domain Controller has rejected the request from the LDAP plugin.
Resolution
To resolve:
- Investigate the account properties to ensure that they match the target account.
- Verify that the Password Policy (i.e. length and complexity) configured on the platform will satisfy the password policy on the domain.
- Note that the Minimum Password Age policy can prevent a password from being changed.