[prev in list] [next in list] [prev in thread] [next in thread]
List: fedora-directory-users
Subject: =?utf-8?q?=5B389-users=5D?= OpenLDAP import into 389 Directory Server failing
From: "Jason W. Lewis" <jwlewis () microcenter ! com>
Date: 2022-02-22 20:59:42
Message-ID: 1D6D90B9-1D6B-4F83-B39E-D2210410FE0F () microcenter ! com
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
[Attachment #4 (text/plain)]
After RHEL, etc dropped OpenLDAP, I've begun testing with 389 Directory Server. \
Currently, I'm trying to use openldap_to_ds to import slapd.d config and an LDIF \
export to import my old database into the new server. I've created a new instance in \
389-ds named terminal-config. I've tried the following variations on the idea, all of \
which gave me the same results:
* exported the LDIF from OpenLDAP 2.4 on Oracle Linux 7 and CentOS 6 servers.
* Rewrote all files being imported to make sure they weren't corrupt.
* used relative and absolute path names to the files
* Tried importing with a new instance (as mentioned above) and no instance at all
* When using dscreate to make the new instance, I've tried setting it up \
differently (allowed sample entries and not, etc) No matter what I do, this is what I \
get when I try: [root@ldaptest ~]# openldap_to_ds terminal-config /root/slapd.d \
/root/terminals.ldif Examining OpenLDAP Configuration ...
Traceback (most recent call last):
File "/usr/sbin/openldap_to_ds", line 250, in <module>
result = do_migration(inst, log, args, skip_overlays)
File "/usr/sbin/openldap_to_ds", line 178, in do_migration
config = olConfig(args.slapd_config, log)
File "/usr/lib/python3.6/site-packages/lib389/migrate/openldap/config.py", line \
305, in __init__ for db in dbs
File "/usr/lib/python3.6/site-packages/lib389/migrate/openldap/config.py", line \
305, in <listcomp> for db in dbs
File "/usr/lib/python3.6/site-packages/lib389/migrate/openldap/config.py", line \
112, in __init__ self.suffix = ensure_str(self.config[1]['olcSuffix'][0])
KeyError: 'olcSuffix'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/sbin/openldap_to_ds", line 257, in <module>
log.error("Error: %s" % " - ".join(str(val) for val in msg.values()))
AttributeError: 'str' object has no attribute 'values'
[root@ldaptest ~]#
Any thoughts on what could be causing this?
--
[Micro Electronics Inc]
Jason Lewis
Systems Administrator
jwlewis@microcenter.com<mailto:jwlewis@microcenter.com>
>
[signature_251198827]
614-777-2728
[Micro Center Secure Email]
CONFIDENTIALITY NOTICE: This e-mail message including attachments, if any, is \
intended exclusively for the person or entity to which it is addressed and may \
contain confidential and/or privileged material. If you are not the intended \
recipient, you are not authorized to read, print, retain, copy or disseminate this \
message or any part of it. If you receive this message in error, please contact the \
sender by reply e-mail and destroy all copies of the original message and \
attachments. Thank you
[Attachment #5 (text/html)]
<html xmlns:v="urn:schemas-microsoft-com:vml" \
xmlns:o="urn:schemas-microsoft-com:office:office" \
xmlns:w="urn:schemas-microsoft-com:office:word" \
xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" \
xmlns="http://www.w3.org/TR/REC-html40"> <head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
{font-family:Helvetica;
panose-1:0 0 0 0 0 0 0 0 0 0;}
@font-face
{font-family:Wingdings;
panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
/* List Definitions */
@list l0
{mso-list-id:317342282;
mso-list-template-ids:-2026756752;}
@list l0:level1
{mso-level-number-format:bullet;
mso-level-text:;
mso-level-tab-stop:.5in;
mso-level-number-position:left;
text-indent:-.25in;
mso-ansi-font-size:10.0pt;
font-family:Symbol;}
@list l0:level2
{mso-level-number-format:bullet;
mso-level-text:o;
mso-level-tab-stop:1.0in;
mso-level-number-position:left;
text-indent:-.25in;
mso-ansi-font-size:10.0pt;
font-family:"Courier New";
mso-bidi-font-family:"Times New Roman";}
@list l0:level3
{mso-level-number-format:bullet;
mso-level-text:;
mso-level-tab-stop:1.5in;
mso-level-number-position:left;
text-indent:-.25in;
mso-ansi-font-size:10.0pt;
font-family:Wingdings;}
@list l0:level4
{mso-level-number-format:bullet;
mso-level-text:;
mso-level-tab-stop:2.0in;
mso-level-number-position:left;
text-indent:-.25in;
mso-ansi-font-size:10.0pt;
font-family:Wingdings;}
@list l0:level5
{mso-level-number-format:bullet;
mso-level-text:;
mso-level-tab-stop:2.5in;
mso-level-number-position:left;
text-indent:-.25in;
mso-ansi-font-size:10.0pt;
font-family:Wingdings;}
@list l0:level6
{mso-level-number-format:bullet;
mso-level-text:;
mso-level-tab-stop:3.0in;
mso-level-number-position:left;
text-indent:-.25in;
mso-ansi-font-size:10.0pt;
font-family:Wingdings;}
@list l0:level7
{mso-level-number-format:bullet;
mso-level-text:;
mso-level-tab-stop:3.5in;
mso-level-number-position:left;
text-indent:-.25in;
mso-ansi-font-size:10.0pt;
font-family:Wingdings;}
@list l0:level8
{mso-level-number-format:bullet;
mso-level-text:;
mso-level-tab-stop:4.0in;
mso-level-number-position:left;
text-indent:-.25in;
mso-ansi-font-size:10.0pt;
font-family:Wingdings;}
@list l0:level9
{mso-level-number-format:bullet;
mso-level-text:;
mso-level-tab-stop:4.5in;
mso-level-number-position:left;
text-indent:-.25in;
mso-ansi-font-size:10.0pt;
font-family:Wingdings;}
ol
{margin-bottom:0in;}
ul
{margin-bottom:0in;}
--></style>
</head>
<body lang="EN-US" link="#0563C1" vlink="#954F72" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">After \
RHEL, etc dropped OpenLDAP, I've begun testing with 389 Directory Server. Currently, \
I'm trying to use openldap_to_ds to import slapd.d config and an LDIF export to \
import my old database into the new server.<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">I've \
created a new instance in 389-ds named terminal-config. I've tried the following \
variations on the idea, all of which gave me the same results:<o:p></o:p></p> <ul \
type="disc"> <li class="MsoNormal" \
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;mso-list:l0 level1 lfo1"> \
exported the LDIF from OpenLDAP 2.4 on Oracle Linux 7 and CentOS 6 \
servers.<o:p></o:p></li><li class="MsoNormal" \
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;mso-list:l0 level1 lfo1"> \
Rewrote all files being imported to make sure they weren't \
corrupt.<o:p></o:p></li><li class="MsoNormal" \
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;mso-list:l0 level1 lfo1"> \
used relative and absolute path names to the files<o:p></o:p></li><li \
class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;mso-list:l0 \
level1 lfo1"> Tried importing with a new instance (as mentioned above) and no \
instance at all<o:p></o:p></li><li class="MsoNormal" \
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;mso-list:l0 level1 lfo1"> \
When using dscreate to make the new instance, I've tried setting it up differently \
(allowed sample entries and not, etc)<o:p></o:p></li></ul> <p class="MsoNormal" \
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">No matter what I do, this \
is what I get when I try:<o:p></o:p></p> <p class="MsoNormal"><span \
style="font-size:10.0pt;font-family:"Courier New"">[root@ldaptest ~]# \
openldap_to_ds terminal-config /root/slapd.d \
/root/terminals.ldif<o:p></o:p></span></p> <p class="MsoNormal"><span \
style="font-size:10.0pt;font-family:"Courier New"">Examining OpenLDAP \
Configuration ...<o:p></o:p></span></p> <p class="MsoNormal"><span \
style="font-size:10.0pt;font-family:"Courier New"">Traceback (most recent \
call last):<o:p></o:p></span></p> <p class="MsoNormal"><span \
style="font-size:10.0pt;font-family:"Courier New""> File \
"/usr/sbin/openldap_to_ds", line 250, in \
<module><o:p></o:p></span></p> <p class="MsoNormal"><span \
style="font-size:10.0pt;font-family:"Courier New""> \
result = do_migration(inst, log, args, skip_overlays)<o:p></o:p></span></p> <p \
class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier \
New""> File "/usr/sbin/openldap_to_ds", line 178, in \
do_migration<o:p></o:p></span></p> <p class="MsoNormal"><span \
style="font-size:10.0pt;font-family:"Courier New""> \
config = olConfig(args.slapd_config, log)<o:p></o:p></span></p> <p \
class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier \
New""> File \
"/usr/lib/python3.6/site-packages/lib389/migrate/openldap/config.py", line \
305, in __init__<o:p></o:p></span></p> <p class="MsoNormal"><span \
style="font-size:10.0pt;font-family:"Courier New""> for \
db in dbs<o:p></o:p></span></p> <p class="MsoNormal"><span \
style="font-size:10.0pt;font-family:"Courier New""> File \
"/usr/lib/python3.6/site-packages/lib389/migrate/openldap/config.py", line \
305, in <listcomp><o:p></o:p></span></p> <p class="MsoNormal"><span \
style="font-size:10.0pt;font-family:"Courier New""> for \
db in dbs<o:p></o:p></span></p> <p class="MsoNormal"><span \
style="font-size:10.0pt;font-family:"Courier New""> File \
"/usr/lib/python3.6/site-packages/lib389/migrate/openldap/config.py", line \
112, in __init__<o:p></o:p></span></p> <p class="MsoNormal"><span \
style="font-size:10.0pt;font-family:"Courier New""> \
self.suffix = ensure_str(self.config[1]['olcSuffix'][0])<o:p></o:p></span></p> <p \
class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier \
New"">KeyError: 'olcSuffix'<o:p></o:p></span></p> <p class="MsoNormal"><span \
style="font-size:10.0pt;font-family:"Courier \
New""><o:p> </o:p></span></p> <p class="MsoNormal"><span \
style="font-size:10.0pt;font-family:"Courier New"">During handling of the \
above exception, another exception occurred:<o:p></o:p></span></p> <p \
class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier \
New""><o:p> </o:p></span></p> <p class="MsoNormal"><span \
style="font-size:10.0pt;font-family:"Courier New"">Traceback (most recent \
call last):<o:p></o:p></span></p> <p class="MsoNormal"><span \
style="font-size:10.0pt;font-family:"Courier New""> File \
"/usr/sbin/openldap_to_ds", line 257, in \
<module><o:p></o:p></span></p> <p class="MsoNormal"><span \
style="font-size:10.0pt;font-family:"Courier New""> \
log.error("Error: %s" % " - ".join(str(val) for val in \
msg.values()))<o:p></o:p></span></p> <p class="MsoNormal"><span \
style="font-size:10.0pt;font-family:"Courier New"">AttributeError: 'str' \
object has no attribute 'values'<o:p></o:p></span></p> <p class="MsoNormal"><span \
style="font-size:10.0pt;font-family:"Courier New"">[root@ldaptest \
~]#<o:p></o:p></span></p> <p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Any thoughts on what could be causing this?<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div>
<p class="MsoNormal">-- <o:p></o:p></p>
</div>
<div>
<table class="MsoNormalTable" border="0" cellpadding="0">
<tbody>
<tr style="height:52.5pt">
<td width="175" style="width:131.25pt;border:none;border-right:solid #333333 \
1.0pt;padding:.75pt 15.0pt .75pt .75pt;height:52.5pt"> <p class="MsoNormal"><img \
width="175" height="70" style="width:1.8229in;height:.7291in" id="Picture_x0020_3" \
src="cid:image001.jpg@01D82805.32298900" alt="Micro Electronics Inc"><o:p></o:p></p> \
</td> <td style="padding:.75pt .75pt .75pt 15.0pt;height:52.5pt">
<table class="MsoNormalTable" border="0" cellpadding="0">
<tbody>
<tr>
<td style="padding:0in 0in 0in 0in">
<p class="MsoNormal" style="mso-line-height-alt:11.25pt"><span \
style="font-size:16.0pt;font-family:Helvetica;color:#004984">Jason \
Lewis<o:p></o:p></span></p> </td>
</tr>
<tr>
<td style="padding:3.75pt 0in 0in 0in">
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span \
style="font-size:10.5pt;font-family:Helvetica">Systems \
Administrator<o:p></o:p></span></p> </td>
</tr>
<tr>
<td style="padding:7.5pt 0in 0in 0in">
<table class="MsoNormalTable" border="0" cellpadding="0">
<tbody>
<tr>
<td style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal"><a href="mailto:jwlewis@microcenter.com"><span \
style="font-size:10.5pt;font-family:Helvetica;color:#C45E2A">jwlewis@microcenter.com</span></a><o:p></o:p></p>
</td>
<td style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal">| <o:p></o:p></p>
</td>
<td style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal"><img border="0" width="14" height="14" \
style="width:.1458in;height:.1458in" id="Picture_x0020_2" \
src="cid:image002.jpg@01D82805.32298900" alt="signature_251198827"><o:p></o:p></p> \
</td> <td style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal"><span \
style="font-size:10.5pt;font-family:Helvetica">614-777-2728<o:p></o:p></span></p> \
</td> </tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<p class="MsoNormal" style="margin-bottom:12.0pt"><o:p> </o:p></p>
<table class="MsoNormalTable" border="0" cellpadding="0">
<tbody>
<tr>
<td style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal" style="margin-bottom:15.0pt"><img border="0" width="225" \
height="50" style="width:2.3437in;height:.5208in" id="Picture_x0020_1" \
src="cid:image003.jpg@01D82805.32298900" alt="Micro Center Secure \
Email"><o:p></o:p></p> </td>
</tr>
<tr>
<td style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span \
style="font-size:7.5pt;font-family:Helvetica;color:#999999">CONFIDENTIALITY NOTICE: \
This e-mail message including attachments, if any, is intended exclusively for the \
person or entity to which it is addressed and may contain confidential and/or \
privileged material. If you are not the intended recipient, you are not authorized to \
read, print, retain, copy or disseminate this message or any part of it. If you \
receive this message in error, please contact the sender by reply e-mail and destroy \
all copies of the original message and attachments. Thank you <o:p></o:p></span></p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>
["image001.jpg" (image/jpeg)]
["image002.jpg" (image/jpeg)]
["image003.jpg" (image/jpeg)]
[Attachment #9 (unknown)]
_______________________________________________
389-users mailing list -- 389-users@lists.fedoraproject.org
To unsubscribe send an email to 389-users-leave@lists.fedoraproject.org
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/389-users@lists.fedoraproject.org
Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic