Bug 436274
Summary: | Add Fedora DS support | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Jan Safranek <jsafrane> |
Component: | migrationtools | Assignee: | Jan Safranek <jsafrane> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 9 | CC: | mastahnke, rmeggins |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2009-07-14 12:23:37 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | 437104 | ||
Bug Blocks: |
Description
Jan Safranek
2008-03-06 10:03:56 UTC
I installed fedora-ds and with little migrationtools hacking I am able to import data to it with LDAPADD="/usr/lib64/mozldap/ldapmodify -c -a" (migrate_all_online) and ldapsearch returns the data. I have trouble with LDIF2LDBM="/usr/lib64/dirsrv/slapd-test/ldif2db -n userRoot " and migrate_all_offline - it does something, but I can't find the inserted data. Here is ldif2db output: [07/Mar/2008:10:52:23 +0100] - dblayer_instance_start: pagesize: 4096, pages: 515414, procpages: 43020 [07/Mar/2008:10:52:23 +0100] - cache autosizing: import cache: 204800k [07/Mar/2008:10:52:23 +0100] - li_import_cache_autosize: 50, import_pages: 51200, pagesize: 4096 [07/Mar/2008:10:52:23 +0100] - WARNING: Import is running with nsslapd-db-private-import-mem on; No other process is allowed to access the database [07/Mar/2008:10:52:23 +0100] - dblayer_instance_start: pagesize: 4096, pages: 515414, procpages: 43020 [07/Mar/2008:10:52:23 +0100] - cache autosizing: import cache: 204800k [07/Mar/2008:10:52:23 +0100] - li_import_cache_autosize: 50, import_pages: 51200, pagesize: 4096 [07/Mar/2008:10:52:23 +0100] - import userRoot: Beginning import job... [07/Mar/2008:10:52:23 +0100] - import userRoot: Index buffering enabled with bucket size 100 [07/Mar/2008:10:52:24 +0100] - import userRoot: Processing file "/tmp/nis.ldif.D15020" [07/Mar/2008:10:52:24 +0100] - 2 duplicate values for attribute type cn detected in entry cn=nextstep,ou=Services,dc=test. Extra values ignored. [07/Mar/2008:10:52:24 +0100] - Duplicate value for attribute type cn detected in entry cn=cvsup,ou=Services,dc=test. Extra value ignored. [07/Mar/2008:10:52:24 +0100] - import userRoot: Finished scanning file "/tmp/nis.ldif.D15020" (4985 entries) [07/Mar/2008:10:52:24 +0100] - import userRoot: WARNING: Skipping duplicate entry "cn=raid-am,ou=Services,dc=test" found at line 16269 of file "/tmp/nis.ldif.D15020" [07/Mar/2008:10:52:24 +0100] - import userRoot: WARNING: Skipping duplicate entry "cn=terminaldb,ou=Services,dc=test" found at line 16326 of file "/tmp/nis.ldif.D15020" [07/Mar/2008:10:52:24 +0100] - import userRoot: WARNING: Skipping duplicate entry "cn=whosockami,ou=Services,dc=test" found at line 16340 of file "/tmp/nis.ldif.D15020" [07/Mar/2008:10:52:24 +0100] - import userRoot: Workers finished; cleaning up... [07/Mar/2008:10:52:25 +0100] - import userRoot: Workers cleaned up. [07/Mar/2008:10:52:25 +0100] - import userRoot: Cleaning up producer thread... [07/Mar/2008:10:52:25 +0100] - import userRoot: Indexing complete. Post-processing... [07/Mar/2008:10:52:25 +0100] - import userRoot: Flushing caches... [07/Mar/2008:10:52:25 +0100] - import userRoot: Closing files... [07/Mar/2008:10:52:25 +0100] - All database threads now stopped [07/Mar/2008:10:52:25 +0100] - import userRoot: Import complete. Processed 4985 entries (3 were skipped) in 2 seconds. (2492.50 entries/sec) After service dirsrv start, ldapsearch -x -b "dc=test" does not return anything (but it does in the migrate_all_online case, so the database is configured correctly). And if I try to add some entry, ldapadd prints "Already exists" -> the data is somewhere, I am just not able to find it... When you ran setup-ds-admin.pl, did you choose dc=test as your default suffix? Does /usr/lib64/dirsrv/slapd-test/db2ldif -n userRoot -a /tmp/data.ldif give your the data you expect to see in /tmp/data.ldif? (In reply to comment #2) > When you ran setup-ds-admin.pl, did you choose dc=test as your default suffix? yes > Does /usr/lib64/dirsrv/slapd-test/db2ldif -n userRoot -a /tmp/data.ldif give > your the data you expect to see in /tmp/data.ldif? yes Still, ldapsearch -x -b "dc=test" does not return anything and I don't see dc=test in idm-console (fedora-ds-1.1.0-3.fc8.x86_64) This is really weird. Can you post your dse.ldif file? Does the access log show any connection, bind, or search attempts? Any other errors in the error log? Finally solved it: ldapsearch -x -b "dc=test" -D "cn=Directory Manager" -x -w my_password works as expected. ldif2db seems not to set anonymous read permission, while ldapadd does. I am not able to judge whether it's bug or feature (and I am too lazy to dig into Fedora DS to get the answer... I am OpenLDAP guy). Anyway, I filled bug #437104 and I start implementing proper migrationtools hacks to get it working. I expect that the admin sets $serverId as suggested by migration-tools.txt (I'll add a note that it applies also to Fedora DS). Ah, ok. In Fedora DS, access control is off by default - unless you specifically allow something, everything is denied (except for directory manager). Access control is specified by adding the operational attribute "aci" to entries that you want to control access to. aci has subtree scope so the access applies to the entry with the attribute and all child entries. In OpenLDAP, access control is usually outside of the data, in slapd.conf or in cn=config (unless subtree access control has been enabled). So probably the OpenLDAP config had allowed anonymous search to the suffix, but since the LDIF file contained no aci attributes, Fedora DS disallowed access. You can see some common acis in the file /usr/share/dirsrv/data/template-baseacis.ldif - just replace %ds_suffix% with your suffix and pass this to ldapmodify. Changing version to '9' as part of upcoming Fedora 9 GA. More information and reason for this action is here: http://fedoraproject.org/wiki/BugZappers/HouseKeeping This message is a reminder that Fedora 9 is nearing its end of life. Approximately 30 (thirty) days from now Fedora will stop maintaining and issuing updates for Fedora 9. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as WONTFIX if it remains open with a Fedora 'version' of '9'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Fedora version prior to Fedora 9's end of life. Bug Reporter: Thank you for reporting this issue and we are sorry that we may not be able to fix it before Fedora 9 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora please change the 'version' of this bug to the applicable version. If you are unable to change the version, please add a comment here and someone will do it for you. Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete. The process we are following is described here: http://fedoraproject.org/wiki/BugZappers/HouseKeeping Requires: ldif2ldbm is in migrationtools since Fedora 10, I just forgot to close the bug, sorry. |