Bug 697583

Summary: Can not enable ipa-nis-manage plugin
Product: Red Hat Enterprise Linux 6 Reporter: Jenny Severance <jgalipea>
Component: ipaAssignee: Rob Crittenden <rcritten>
Status: CLOSED ERRATA QA Contact: Chandrasekar Kannan <ckannan>
Severity: unspecified Docs Contact:
Priority: high    
Version: 6.1CC: benl, sgallagh, shaines, syeghiay
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ipa-2.0.0-23.el6 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-05-19 13:44:54 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Jenny Severance 2011-04-18 16:44:10 UTC
Description of problem:
ipa MASTER and SLAVE installed
version: ipa-server-2.0.0-21.el6.x86_64

On both master and slave:

# ipa-nis-manage enable
Directory Manager password: 

Enabling plugin
Traceback (most recent call last):
  File "/usr/sbin/ipa-nis-manage", line 211, in <module>
    sys.exit(main())
  File "/usr/sbin/ipa-nis-manage", line 151, in main
    ld = LDAPUpdate(dm_password=dirman_password, sub_dict={}, ldapi=True)
  File "/usr/lib/python2.6/site-packages/ipaserver/install/ldapupdate.py", line 128, in __init__
    conn.do_external_bind(self.pw_name)
  File "/usr/lib/python2.6/site-packages/ipaserver/ipaldap.py", line 360, in do_external_bind
    self.__lateinit()
  File "/usr/lib/python2.6/site-packages/ipaserver/ipaldap.py", line 260, in __lateinit
    [ 'nsslapd-directory' ])
  File "/usr/lib/python2.6/site-packages/ipaserver/ipaldap.py", line 378, in getEntry
    raise errors.NotFound(reason=notfound(args))
ipalib.errors.NotFound: * not found

HTTP error_log:
[Mon Apr 18 12:00:23 2011] [error] ipa: INFO: host/dhcp-100-18-42.testrelm@TESTRELM: entitle_sync(hidden=1, all=False, raw=False, version=u'2.1'): NotRegisteredError


Version-Release number of selected component (if applicable):
ipa-server-2.0.0-21.el6.x86_64

How reproducible:
always

Steps to Reproduce:
1. install master 
2. install slave
3. ipa-nis-manage enable
  
Actual results:


Expected results:


Additional info:

Comment 3 Jenny Severance 2011-04-19 20:01:28 UTC
This is happening with just a master installed - no slave.

# ipa-nis-manage enable
Directory Manager password: 

Enabling plugin
Traceback (most recent call last):
  File "/usr/sbin/ipa-nis-manage", line 211, in <module>
    sys.exit(main())
  File "/usr/sbin/ipa-nis-manage", line 151, in main
    ld = LDAPUpdate(dm_password=dirman_password, sub_dict={}, ldapi=True)
  File "/usr/lib/python2.6/site-packages/ipaserver/install/ldapupdate.py", line 128, in __init__
    conn.do_external_bind(self.pw_name)
  File "/usr/lib/python2.6/site-packages/ipaserver/ipaldap.py", line 360, in do_external_bind
    self.__lateinit()
  File "/usr/lib/python2.6/site-packages/ipaserver/ipaldap.py", line 260, in __lateinit
    [ 'nsslapd-directory' ])
  File "/usr/lib/python2.6/site-packages/ipaserver/ipaldap.py", line 378, in getEntry
    raise errors.NotFound(reason=notfound(args))
ipalib.errors.NotFound: * not found

Comment 9 Jenny Severance 2011-04-20 13:11:39 UTC
newest packages have a change in behavior, but still can not enable plugin ..


# ipa-nis-manage enable
Traceback (most recent call last):
  File "/usr/sbin/ipa-nis-manage", line 214, in <module>
    sys.exit(main())
  File "/usr/sbin/ipa-nis-manage", line 86, in main
    if os.getegid() != 0:
NameError: global name 'os' is not defined


ipa-admintools-2.0.0-22.el6.x86_64.rpm  
ipa-server-2.0.0-22.el6.x86_64.rpm
ipa-client-2.0.0-22.el6.x86_64.rpm      
ipa-server-selinux-2.0.0-22.el6.x86_64.rpm
ipa-python-2.0.0-22.el6.x86_64.rpm

Comment 10 Rob Crittenden 2011-04-20 14:00:49 UTC
The upstream patch was missing an 'import os'. Updated local patch.

Comment 12 Jenny Severance 2011-04-20 18:03:01 UTC
Verified on both master and slave

version:
ipa-python-2.0.0-23.el6
ipa-client-2.0.0-23.el6
ipa-admintools-2.0.0-23.el6
ipa-server-selinux-2.0.0-23.el6
ipa-server-2.0.0-23.el6


# ipa-nis-manage enable
Directory Manager password: 

Enabling plugin
This setting will not take effect until you restart Directory Server.
The rpcbind service may need to be started.

Comment 13 errata-xmlrpc 2011-05-19 13:44:54 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHEA-2011-0631.html