
|
If you were logged in you would be able to see more operations.
|
|
|
|
File Attachments:
|
|
|
Issue Links:
|
Reference
|
|
|
|
This issue is related to:
|
|
|
DIRSERVER-442 Synchronize suffix entries in configuration with entry on disk
|
|
|
|
|
|
|
| Resolution Date: |
12/Sep/05 04:13 AM
|
|
Duplicate root entry gets added everytime restarting the server.
Steps to reproduce:
1. Start the server:
java -jar main/target/apacheds-main-0.9.3-SNAPSHOT.jar main/server.xml
2. Use a command line ldapsearch, execute the following:
ldapsearch -h localhost -p 10389 -b "dc=apache,dc=org"
It returns an entry: dc=apache,dc=org.
3. Restart the server.
4. Execute the same search operation.
This time it returns 2 entries, both are: dc=apache,dc=org.
The more you restart the server, the more duplicate entries you will get. Note: if you use an LDAP browser you probably won't see this problem.
|
|
Description
|
Duplicate root entry gets added everytime restarting the server.
Steps to reproduce:
1. Start the server:
java -jar main/target/apacheds-main-0.9.3-SNAPSHOT.jar main/server.xml
2. Use a command line ldapsearch, execute the following:
ldapsearch -h localhost -p 10389 -b "dc=apache,dc=org"
It returns an entry: dc=apache,dc=org.
3. Restart the server.
4. Execute the same search operation.
This time it returns 2 entries, both are: dc=apache,dc=org.
The more you restart the server, the more duplicate entries you will get. Note: if you use an LDAP browser you probably won't see this problem.
|
Show » |
|
Comments:
My complete search command looked like this
$ ldapsearch -h localhost -p 10389 -b "dc=apache,dc=org" -s sub "(objectclass=*)"
Using the base scope displays only one entry -- this is probably the cause, why the problem does not show up in the GUI tools I checked (as Endi assumed).
I was not able to create yet another "dc=apache,dc=org" entry on an already running ApacheDS from outside by using ldapmodify (entry is rejected as expected). But it is possible to create entries with different attribute value sets by changing the server.xml configuration between startups.
This leads to the question, what the correct behaviour is, if someone changes the configuration here (add some attributes, for example). The LDAP servers I know have the suffixes as a part of the configuration, but adding a new suffix does not automatically add a corresponding entry. This has to be done after server startup, manually.