Bug 647061 - ipa-nis-manage gives ambiguous messages when enable and disable are run.
Summary: ipa-nis-manage gives ambiguous messages when enable and disable are run.
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: freeIPA
Classification: Retired
Component: ipa-admintools
Version: unspecified
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Rob Crittenden
QA Contact: Chandrasekar Kannan
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-10-27 00:04 UTC by Michael Gregg
Modified: 2015-01-04 23:44 UTC (History)
2 users (show)

Fixed In Version: freeipa-2.0.0-1.fc15
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-03-27 07:13:18 UTC
Embargoed:


Attachments (Terms of Use)

Description Michael Gregg 2010-10-27 00:04:41 UTC
Description of problem:
running ipa-nis-manage enable or disable gives a error message to the effect of "feature already (dis/en)abled"

Version-Release number of selected component (if applicable):
ipa-server-1.91-0.2010102519gitd866399.fc13.x86_64

How reproducible:
always

Steps to Reproduce:
1. get a correct admin ticket
2. ipa-nis-manage -y <password file> enable
3. ipa-nis-manage -y <password file> disable
4. ipa-nis-manage -y <password file> disable
  
Actual results:
[root@ipaqa64vma ~]# ipa-nis-manage -y /dev/shm/password enable
Plugin already Enabled
[root@ipaqa64vma ~]# ipa-nis-manage -y /dev/shm/password disable
Plugin is already disabled
[root@ipaqa64vma ~]# ipa-nis-manage -y /dev/shm/password disable
Plugin is already disabled

Expected results:
Maybe a message about it being disabled on the first run, then complaining after that. 

Additional info:

Comment 1 Rob Crittenden 2010-10-27 13:34:12 UTC
https://fedorahosted.org/freeipa/ticket/414

Comment 2 Rob Crittenden 2010-11-04 19:27:16 UTC
I was unable to duplicate the reported problem because ipa-nis-manage wasn't working at all. It was throwing a NotFound error. The reason for this was a function signature change that was causing normalize=False to get lost in the shuffle. This  meant that we automatically added the basedn to the DN we were looking for and since that was in cn=config a NotFound was thrown.

With the patch attached to the ticket I can now enable/disable as one would expect.

Comment 3 Dmitri Pal 2010-12-10 22:59:18 UTC
master: fcf3cbbe8b70b889c7949273f878d69e03e48b58

Comment 4 Jenny Severance 2011-06-10 18:35:28 UTC
verified

# ipa-nis-manage -y /tmp/pwd.txt enable
Enabling plugin
[root@dhcp-100-19-202 data]# service dirsrv restart
Shutting down dirsrv: 
    PKI-IPA...                                             [  OK  ]
    TESTRELM...                                            [  OK  ]
Starting dirsrv: 
    PKI-IPA...                                             [  OK  ]
    TESTRELM...                                            [  OK  ]
[root@dhcp-100-19-202 data]# ipa-nis-manage -y /tmp/pwd.txt disable
This setting will not take effect until you restart Directory Server.
[root@dhcp-100-19-202 data]# service dirsrv restart
Shutting down dirsrv: 
    PKI-IPA...                                             [  OK  ]
    TESTRELM...                                            [  OK  ]
Starting dirsrv: 
    PKI-IPA...                                             [  OK  ]
    TESTRELM...                                            [  OK  ]
[root@dhcp-100-19-202 data]# ipa-nis-manage -y /tmp/pwd.txt disable
Plugin is already disabled

# rpm -qi ipa-server | head
Name        : ipa-server                   Relocations: (not relocatable)
Version     : 2.0.0                             Vendor: Red Hat, Inc.
Release     : 23.el6                        Build Date: Wed 20 Apr 2011 09:57:13 AM EDT
Install Date: Thu 19 May 2011 12:47:52 PM EDT      Build Host: x86-003.build.bos.redhat.com
Group       : System Environment/Base       Source RPM: ipa-2.0.0-23.el6.src.rpm
Size        : 2565882                          License: GPLv3+
Signature   : RSA/8, Thu 21 Apr 2011 03:48:25 PM EDT, Key ID 199e2f91fd431d51
Packager    : Red Hat, Inc. <http://bugzilla.redhat.com/bugzilla>
URL         : http://www.freeipa.org/
Summary     : The IPA authentication server


Note You need to log in before you can comment on or make changes to this bug.