#49016 (un)register/migration/remove may fail if there is no suffix on 'userRoot' backend
Closed: wontfix None Opened 5 years ago by tbordaz.

DSUtil.pm:createInfFromConfig is used to create an info structure describing a server.

One of mapped field is the 'Suffix' that is the 'nsslapd-suffix' value of backend instance (one level entries below 'cn=ldbm database,cn=plugins,cn=config')

The loop that sets the 'Suffix' may fail if there is no suffix over 'userRoot'. In that case the result varies according to the order of recorded backends.

For example:

dn: cn=config,cn=ldbm database,cn=plugins,cn=config
dn: cn=<backend_name_different_than_userRoot>,cn=ldbm database,cn=plugins,cn=config
dn: cn=monitor,cn=ldbm database,cn=plugins,cn=config

will result with an undefined value for 'Suffix' because without 'userRoot' the 'Suffix' will take the last (cn=monitor) value of 'nsslapd-suffix'

I believe this is also causing problems with register-ds-admin.pl:

"The map value 'Suffix' for key 'ds_suffix' did not map to a value in any of the given information files"

'''master'''
Counting objects: 7, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (6/6), done.
Writing objects: 100% (7/7), 937 bytes | 0 bytes/s, done.
Total 7 (delta 5), reused 0 (delta 0)
To ssh://git.fedorahosted.org/git/389/ds.git
542287c..3204074 master -> master

commit 3204074
Author: Thierry Bordaz tbordaz@redhat.com
Date: Fri Oct 21 16:28:59 2016 +0200

'''389-ds-base-1.3.5'''
Counting objects: 7, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (6/6), done.
Writing objects: 100% (7/7), 940 bytes | 0 bytes/s, done.
Total 7 (delta 5), reused 0 (delta 0)
To ssh://git.fedorahosted.org/git/389/ds.git
ed82907..1bafab5 389-ds-base-1.3.5 -> 389-ds-base-1.3.5

commit 1bafab5
Author: Thierry Bordaz tbordaz@redhat.com
Date: Fri Oct 21 16:28:59 2016 +0200

0002-Ticket-49016-un-register-migration-remove-may-fail-i.patch
Acked by nhosoi

Pushed on behalf of Thierry.
17f3bef..bd5fdfc master -> master
commit bd5fdfc

db458b4..1abb0ff 389-ds-base-1.3.5 -> 389-ds-base-1.3.5
commit 1abb0ff

Metadata Update from @tbordaz:
- Issue assigned to tbordaz
- Issue set to the milestone: 1.3.5.14

4 years ago

389-ds-base is moving from Pagure to Github. This means that new issues and pull requests
will be accepted only in 389-ds-base's github repository.

This issue has been cloned to Github and is available here:
- https://github.com/389ds/389-ds-base/issues/2075

If you want to receive further updates on the issue, please navigate to the github issue
and click on subscribe button.

Thank you for understanding. We apologize for all inconvenience.

Metadata Update from @spichugi:
- Issue close_status updated to: wontfix (was: Fixed)

a year ago

Login to comment on this ticket.

Metadata