This has to do with a recent change in Studio where we don't send a "replace" operation but a "delete+add" operation.
However I don't understand why the server doesn't find the the existing userPassword attribute. I'd suggest to use the "Password Modify" extended operation instead of editing the userPassword directly [2]: * Right-click the entry in the LDAP browser view * Select "Extended Operations" -> "Password Modify" I'll update the documentation page. Kind Regards, Stefan [1] https://issues.apache.org/jira/browse/DIRSTUDIO-744 [2] https://issues.apache.org/jira/browse/DIRSTUDIO-648?focusedCommentId=17070455&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-17070455 On 4/5/21 3:59 PM, David Filip wrote: > Just installed a fresh copy of ApacheDS on Linux (2.0.0.AM26), and a fresh > copy of Directory Studio on Mac (2.0.0.v20210213-M16). > > Trying to follow Basic User Guide -- which appears to be slightly out-of-date > based on the screen shots -- but I haven't been able to get past resetting > the admin password from Directory Studio. > > When I try, I receive the following error if I provide any password/method > other then seceret/plain for uid=admn, ou=system: > > org.apache.directory.studio.connection.core.io.StudioLdapException: [LDAP > result 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 ) > 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 : 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 ) > 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 > > > Obviously, userPassword is an existing attribute, so I'm not sure why I'm > receiving this error. Since this is a refresh install, I'm wondering if this > is a known issue, or if there is anything obvious that I need to check? > > I get this same error either connecting to my Linux ActiveDS from Directory > Studio running on my Mac, or starting and connecting to a local LDAP server > on my Mac. My eventual goal is running the directory server on Linux, and > using Directory Studio on my Mac, since my Linux server is headless. But > again, even starting and connecting to a local ActiveDS on my Mac from Studio > causes the same problem. > > I was able to create a new partition, so it appears that I have write access > to the server, and I am able to authenticate using the default 'secret' > password. I just can't change the password through Studio. > > Any ideas? > > Thanks, > > Dave > > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
