directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bruno Medeiros (JIRA)" <j...@apache.org>
Subject [jira] [Created] (DIRAPI-268) Exception trying to use LDAP Password Modify Extended Operation on samba4 (AWS Simple AD)
Date Fri, 19 Feb 2016 19:07:18 GMT
Bruno Medeiros created DIRAPI-268:
-------------------------------------

             Summary: Exception trying to use LDAP Password Modify Extended Operation on samba4
(AWS Simple AD)
                 Key: DIRAPI-268
                 URL: https://issues.apache.org/jira/browse/DIRAPI-268
             Project: Directory Client API
          Issue Type: Bug
    Affects Versions: 1.0.0-M33
         Environment: Mac OS X
            Reporter: Bruno Medeiros
            Priority: Minor


Trying to use the LDAP Password Modify Extended Operation with a code like this:

		LdapNetworkConnection connectionForChange = getConnection();
		connectionForChange.bind(userBeingChangedDN, user.getPassword());
		StandaloneLdapApiService codecService = (StandaloneLdapApiService) connectionForChange.getCodecService();
		PasswordModifyFactory prf = (PasswordModifyFactory) codecService.getExtendedOperationsFactories().get("1.3.6.1.4.1.4203.1.11.1");
		PasswordModifyRequest req = prf.newRequest(null);
		req.setNewPassword(newPassword.getBytes("UTF-16LE"));
		req.setOldPassword(user.getPassword().getBytes("UTF-16LE"));
		connectionForChange.extended(req);

Got this exception:

WARN [org.apache.directory.ldap.client.api.LdapNetworkConnection:1898] 19/02/2016 17:01:43
- 
java.lang.NullPointerException
	at org.apache.directory.ldap.client.api.LdapNetworkConnection.isNoticeOfDisconnect(LdapNetworkConnection.java:1928)
	at org.apache.directory.ldap.client.api.LdapNetworkConnection.messageReceived(LdapNetworkConnection.java:1958)
	at org.apache.mina.core.filterchain.DefaultIoFilterChain$TailFilter.messageReceived(DefaultIoFilterChain.java:854)
	at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:542)
	at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1300(DefaultIoFilterChain.java:48)
	at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:943)
	at org.apache.mina.filter.codec.ProtocolCodecFilter$ProtocolDecoderOutputImpl.flush(ProtocolCodecFilter.java:401)
	at org.apache.mina.filter.codec.ProtocolCodecFilter.messageReceived(ProtocolCodecFilter.java:233)
	at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:542)
	at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1300(DefaultIoFilterChain.java:48)
	at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:943)
	at org.apache.mina.core.filterchain.IoFilterAdapter.messageReceived(IoFilterAdapter.java:109)
	at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:542)
	at org.apache.mina.core.filterchain.DefaultIoFilterChain.fireMessageReceived(DefaultIoFilterChain.java:535)
	at org.apache.mina.core.polling.AbstractPollingIoProcessor.read(AbstractPollingIoProcessor.java:718)
	at org.apache.mina.core.polling.AbstractPollingIoProcessor.process(AbstractPollingIoProcessor.java:672)
	at org.apache.mina.core.polling.AbstractPollingIoProcessor.process(AbstractPollingIoProcessor.java:661)
	at org.apache.mina.core.polling.AbstractPollingIoProcessor.access$600(AbstractPollingIoProcessor.java:68)
	at org.apache.mina.core.polling.AbstractPollingIoProcessor$Processor.run(AbstractPollingIoProcessor.java:1130)
	at org.apache.mina.util.NamePreservingRunnable.run(NamePreservingRunnable.java:64)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
	at java.lang.Thread.run(Thread.java:745)




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message