ApacheDS : shutdown fails to complete cleanly M20,M19

2015-06-13 Thread Mark-nospam
I have ADS embedded in a simple loader application. After switching to M20, the 
JVM doesn't exit when it should. 


This was working in M17. I ran a few tests with no connections in this case it 
appears to start / stop cleanly. 

I tried M19 same issue with threads not exiting. 



After shutdown and main thread exits but there are a few threads remaining with 
one spinning in what looks like the MS runtime endthread. 

The loader only uses two threads which both report ending and the thread id's 
aren't related to remaining threads. 



I am running Win64 with java 1.7.0.55 also tested with 1.7.80 



Any suggestions ? 



2015-06-08 09:18:57,426 INFO [j.ApacheDSLoader] - Calling service.stop() on 
ApacheDsService, threadId=1 

2015-06-08 09:18:57,449 INFO [org.apache.directory.server.ldap.LdapServer] - 
Unbind of an LDAP service (10389) is complete. 

2015-06-08 09:18:57,449 INFO [org.apache.directory.server.ldap.LdapServer] - 
Sending notice of disconnect to existing clients sessions. 

2015-06-08 09:18:57,450 INFO [org.apache.directory.server.ldap.LdapServer] - 
Unbind of an LDAP service (10389) is complete. 

2015-06-08 09:18:57,450 INFO [org.apache.directory.server.ldap.LdapServer] - 
Sending notice of disconnect to existing clients sessions. 

2015-06-08 09:18:57,450 INFO [org.apache.directory.server.ldap.LdapServer] - 
Ldap service stopped. 

2015-06-08 09:18:57,450 DEBUG 
[org.apache.directory.server.core.DefaultDirectoryService] - +++ 
DirectoryService Shutdown required 

2015-06-08 09:18:57,450 DEBUG 
[org.apache.directory.server.core.DefaultDirectoryService] - --- Syncing the 
nexus 

2015-06-08 09:18:57,450 DEBUG 
[org.apache.directory.server.core.DefaultDirectoryService] - --- Flushing 
everything before quitting 

2015-06-08 09:18:58,328 DEBUG 
[org.apache.directory.server.core.DefaultDirectoryService] - --- Syncing the 
changeLog 

2015-06-08 09:18:58,328 DEBUG 
[org.apache.directory.server.core.DefaultDirectoryService] - --- Destroying the 
nexus 

2015-06-08 09:19:04,894 DEBUG 
[org.apache.directory.server.core.DefaultDirectoryService] - --- Deleting the 
cache service 

2015-06-08 09:19:04,894 INFO 
[org.apache.directory.server.core.api.CacheService] - clearing all the caches 

2015-06-08 09:19:04,988 DEBUG 
[org.apache.directory.server.core.DefaultDirectoryService] - ---Deleting the 
DnCache 

2015-06-08 09:19:04,988 DEBUG 
[org.apache.directory.server.core.DefaultDirectoryService] - +++ 
DirectoryService stopped 

2015-06-08 09:19:04,988 INFO [j.ApacheDSLoader] - main thread end. threadId=1 



Another possibly related issue, sometimes during shutdown I see the following 
output as the last line. It appears another thread 

is also calling stop after the stop process has completed. 



2015-06-08 09:18:57,450 DEBUG 
[org.apache.directory.server.core.DefaultDirectoryService] - +++ 
DirectoryService Shutdown required 




-Mark. 









Admin authorization for modifying passwords, did it change ? how to apply admin role to a user ?

2015-06-01 Thread Mark-nospam
The last version I was using M17, I believe my scripts were able to bind 
with a private apps admin user and then create new users with passwords. 
I updated to M20, this operation now fails with : "Non-admin user cannot access 
another user's password to modify it" 
I thought there was recent discussion on this but I failed to find it in the 
mail 
archives and I don't see anything in changes between M17-M20 related to this. 

Regardless, I would like to resolve in correct manner going forward. 

Is it possible to create user A in partition A that can acquire Admin role for 
changing passwords 
for other users in partition A or partition B etc. 

Can this group be used to associate other users as admins? DN: 
cn=Administrators,ou=groups,ou=system 

Or, is DN: uid=admin,ou=system the only user going forward which can make 
passwords changes 
when the requesting user doesn't match user-password. 

Thanks, Mark.