#6027 ipa-nis-manage config.get_dn missing
Closed: Fixed None Opened 7 years ago by pvoborni.

Ticket was cloned from Red Hat Bugzilla (product Red Hat Enterprise Linux 7): Bug 1351807

Description of problem:

When I run ipa-nis-manage to enable the NIS plugin for IPA, I only see this
output:

config.get_dn()

And from what I can tell, it has not enabled NIS services.

If I run with debug, I do see a traceback showing:

ipa         : DEBUG      File
"/usr/lib/python2.7/site-packages/ipaserver/install/installutils.py", line 720,
in run_script
    return_value = main_function()

  File "/usr/sbin/ipa-nis-manage", line 135, in main
    compat = get_entry(compat_dn, conn)

  File "/usr/sbin/ipa-nis-manage", line 81, in get_entry
    entry = conn.get_entry(dn)

  File "/usr/lib/python2.7/site-packages/ipapython/ipaldap.py", line 1470, in
get_entry
    size_limit=size_limit

  File "/usr/lib/python2.7/site-packages/ipapython/ipaldap.py", line 1294, in
get_entries
    base_dn=base_dn, scope=scope, filter=filter, attrs_list=attrs_list)

  File "/usr/lib/python2.7/site-packages/ipapython/ipaldap.py", line 1339, in
find_entries
    time_limit = self.time_limit

  File "/usr/lib/python2.7/site-packages/ipaserver/plugins/ldap2.py", line 84,
in time_limit
    return float(self.get_ipa_config().single_value.get(

  File "/usr/lib/python2.7/site-packages/ipaserver/plugins/ldap2.py", line 225,
in get_ipa_config
    dn = self.api.Object.config.get_dn()

  File "/usr/lib/python2.7/site-packages/ipalib/frontend.py", line 1253, in
get_dn
    raise NotImplementedError('%s.get_dn()' % self.name)

ipa         : DEBUG    The ipa-nis-manage command failed, exception:
NotImplementedError: config.get_dn()


Version-Release number of selected component (if applicable):
ipa-server-4.4.0-0.el7.2.alpha1.x86_64

How reproducible:
Unknown

Steps to Reproduce:
1.  ipa-server-install
2.  ipa-nis-manage enable
3.  ypcat -d $domain -h $(hostname)

Actual results:
output as mentioned above and does not seem to enable NIS.


Expected results:
enables NIS as expected.

Additional info:

master:

  • c5cc79f ipa-nis-manage: Use server API to retrieve plugin status

Metadata Update from @pvoborni:
- Issue assigned to mbabinsk
- Issue set to the milestone: FreeIPA 4.4.1

6 years ago

Login to comment on this ticket.

Metadata