Re: confused about how to create nsslapd backends

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 01/14/2013 03:53 PM, Jon Detert wrote:
Hello,

I have 3 root-suffixes served by 1 instance of slapd in fedora-ds v1.0.4 :
      dc=example,dc=com
      o=example.com
      o=NetscapeRoot

I'm trying to import them into an instance of 389-ds v1.2.10, but I can only get the 1st one imported.  This is how I did that:

1) run 'setup-ds' for dc=example,dc=com
2) import the dumped ldif for that root-suffix by runnint this: 'ldapmodify -h localhost -cax -S ~/import.errors -D "cn=directory manager" -W -f ~/dc-example-dc-com.ldif

To create the next 2 root-suffixes, I assumed I should not run setup-ds again, because I don't want another slapd instance.  Instead, I try to create them with like this (leaving the last out for brevity):
1) You can create them all using setup - use the ConfigFile directive:
https://access.redhat.com/knowledge/docs/en-US/Red_Hat_Directory_Server/9.0/html/Installation_Guide/Advanced_Configuration-Silent.html#Using-ConfigFile-for-DS-Config

1.a) copy/paste the contents of /usr/share/dirsrv/data/template-suffix-db.ldif and edit it - replace %ds_suffix% with your suffix DN, and replace %ds_bename% with the database name e.g. ihcComRoot

1.b) setup-ds.pl ..... slapd.ConfigFile=/path/to/file.ldif

you can also feed that file into ldapmodify

ldapmodify -avv -h localhost -D cn="Directory Manager" -W<<EOI
dn: cn="o=example.com",cn=mapping tree,cn=config
objectclass: top
objectclass: extensibleObject
objectclass: nsMappingTree
nsslapd-state: backend
nsslapd-backend: ihcComRoot
cn: o=example.com
EOI

However, when I try to import the data from the o=example.com suffix:
a) ldapmodify fails every record with "760 # Error: No such object (32)", and
b) the error log for this slapd instance says this once for every record:
"Warning: Mapping tree node entry for o=example.com point to an unknown backend : ihcComRoot", where "ihcComRoot" is the nsslapd backend I used in the ldapmodify command above.

Any ideas what I'm doing wrong?

Thanks,


--
389 users mailing list
389-users@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/389-users



[Index of Archives]     [Fedora User Discussion]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora News]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora QA]     [Fedora Triage]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Yosemite Photos]     [Linux Apps]     [Maemo Users]     [Gnome Users]     [KDE Users]     [Fedora Tools]     [Fedora Art]     [Fedora Docs]     [Maemo Users]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Fedora ARM]

  Powered by Linux