[
https://issues.apache.org/jira/browse/DIRSERVER-2344?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17340475#comment-17340475
]
David Corni commented on DIRSERVER-2344:
----------------------------------------
I get the same error. and when I follow above advice using the extended
operations it works for me as well. thanks for the help!
ADS Version: 2.0.0.v20210213-M16
apacheds version is apacheds-2.0.0.AM26-64bit
My error details are:
Error while executing LDIF
- [LDAP result code 16 - noSuchAttribute] NO_SUCH_ATTRIBUTE: failed for
MessageType : MODIFY_REQUEST
org.apache.directory.studio.connection.core.io.StudioLdapException: [LDAP
result code 16 - noSuchAttribute] NO_SUCH_ATTRIBUTE: failed for MessageType :
MODIFY_REQUEST
Message ID : 15
Modify Request
Object : 'uid=admin,ou=system'
Modifications :
Modification[0]
Operation : delete
Modification : userPassword: 0x73 0x65 0x63 0x72 0x65 0x74
Modification[1]
Operation : add
Modification : userPassword: 0x73 0x65 0x63 0x72 0x65 0x74 0x31
: ERR_56 Cannot remove an absent value from attribute : attributetype (
2.5.4.35 NAME 'userPassword'
DESC 'RFC2256/2307: password of user'
EQUALITY octetStringMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.40
USAGE userApplications )
at
org.apache.directory.studio.connection.core.io.api.DirectoryApiConnectionWrapper.toStudioLdapException(DirectoryApiConnectionWrapper.java:1356)
at
org.apache.directory.studio.connection.core.io.api.DirectoryApiConnectionWrapper.access$4(DirectoryApiConnectionWrapper.java:1348)
at
org.apache.directory.studio.connection.core.io.api.DirectoryApiConnectionWrapper$4.run(DirectoryApiConnectionWrapper.java:752)
at
org.apache.directory.studio.connection.core.io.api.DirectoryApiConnectionWrapper.runAndMonitor(DirectoryApiConnectionWrapper.java:1265)
at
org.apache.directory.studio.connection.core.io.api.DirectoryApiConnectionWrapper.checkConnectionAndRunAndMonitor(DirectoryApiConnectionWrapper.java:1210)
at
org.apache.directory.studio.connection.core.io.api.DirectoryApiConnectionWrapper.modifyEntry(DirectoryApiConnectionWrapper.java:764)
at
org.apache.directory.studio.ldapbrowser.core.jobs.ImportLdifRunnable.importLdifRecord(ImportLdifRunnable.java:503)
at
org.apache.directory.studio.ldapbrowser.core.jobs.ImportLdifRunnable.importLdif(ImportLdifRunnable.java:272)
at
org.apache.directory.studio.ldapbrowser.core.jobs.ExecuteLdifRunnable.executeLdif(ExecuteLdifRunnable.java:157)
at
org.apache.directory.studio.ldapbrowser.core.jobs.ExecuteLdifRunnable.run(ExecuteLdifRunnable.java:123)
at
org.apache.directory.studio.ldapbrowser.core.jobs.UpdateEntryRunnable.run(UpdateEntryRunnable.java:59)
at
org.apache.directory.studio.connection.ui.RunnableContextRunner$1.run(RunnableContextRunner.java:129)
at
org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:122)
Caused by:
org.apache.directory.api.ldap.model.exception.LdapNoSuchAttributeException:
NO_SUCH_ATTRIBUTE: failed for MessageType : MODIFY_REQUEST
Message ID : 15
Modify Request
Object : 'uid=admin,ou=system'
Modifications :
Modification[0]
Operation : delete
Modification : userPassword: 0x73 0x65 0x63 0x72 0x65 0x74
Modification[1]
Operation : add
Modification : userPassword: 0x73 0x65 0x63 0x72 0x65 0x74 0x31
: ERR_56 Cannot remove an absent value from attribute : attributetype (
2.5.4.35 NAME 'userPassword'
DESC 'RFC2256/2307: password of user'
EQUALITY octetStringMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.40
USAGE userApplications )
at
org.apache.directory.api.ldap.model.message.ResultCodeEnum.processResponse(ResultCodeEnum.java:2031)
at
org.apache.directory.studio.connection.core.io.api.DirectoryApiConnectionWrapper.checkResponse(DirectoryApiConnectionWrapper.java:1343)
at
org.apache.directory.studio.connection.core.io.api.DirectoryApiConnectionWrapper.access$12(DirectoryApiConnectionWrapper.java:1339)
at
org.apache.directory.studio.connection.core.io.api.DirectoryApiConnectionWrapper$4.run(DirectoryApiConnectionWrapper.java:748)
... 10 more
[LDAP result code 16 - noSuchAttribute] NO_SUCH_ATTRIBUTE: failed for
MessageType : MODIFY_REQUEST
Message ID : 15
Modify Request
Object : 'uid=admin,ou=system'
Modifications :
Modification[0]
Operation : delete
Modification : userPassword: 0x73 0x65 0x63 0x72 0x65 0x74
Modification[1]
Operation : add
Modification : userPassword: 0x73 0x65 0x63 0x72 0x65 0x74 0x31
: ERR_56 Cannot remove an absent value from attribute : attributetype (
2.5.4.35 NAME 'userPassword'
DESC 'RFC2256/2307: password of user'
EQUALITY octetStringMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.40
USAGE userApplications )
> Unable to change password for uid=admin, ou=system after new install of
> Directory Studio
> ----------------------------------------------------------------------------------------
>
> Key: DIRSERVER-2344
> URL: https://issues.apache.org/jira/browse/DIRSERVER-2344
> Project: Directory ApacheDS
> Issue Type: Bug
> Components: security
> Affects Versions: 2.0.0-M16
> Environment: Directory Studio running on a Mac (10.13.6) with OpenJDK
> 11
> Reporter: David E. Filip
> Priority: Minor
>
> From Directory Studio, trying to change the initial password of the
> uid=admin, ou=system user fails using the Password Editor. The error is:
>
> code 16 - noSuchAttribute] NO_SUCH_ATTRIBUTE: failed for MessageType :
> MODIFY_REQUEST
> Message ID : 26
> Modify Request
> Object : 'uid=admin,ou=system'
> Modifications :
> Modification[0]
> Operation : delete
> Modification : userPassword: 0x73 0x65 0x63 0x72 0x65 0x74
> Modification[1]
> Operation : add
> Modification : userPassword: 0x62 0x72 0x61 0x7A 0x69 0x6C
> 0x38 0x35
> : ERR_56 Cannot remove an absent value from attribute : attributetype (
> 2.5.4.35 NAME 'userPassword'
> DESC 'RFC2256/2307: password of user'
> EQUALITY octetStringMatch
> SYNTAX 1.3.6.1.4.1.1466.115.121.1.40
> USAGE userApplications )
> However, I am able to successfully change the password using Extended
> Operations => Password Modify ...
> Also, after I have updated the password once with Password Modify, the
> Password Editor then works as expected.
> I have experienced this trying to change the original 'secret' password both
> on an ApacheDS server created within Studio (Version: 2.0.0.v20210213-M16),
> and using Studio connected to a remote ApacheDS server with the latest build
> (AM26-2021-04-05).
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]