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:
https://fedorahosted.org/freeipa/ticket/414
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.
master: fcf3cbbe8b70b889c7949273f878d69e03e48b58
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