#5507 ipa-nis-manage does not update ldap with all NIS maps
Closed: Fixed Opened by pvoborni.

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

Description of problem:
NIS maps are not being added when ipa-nis-manage is run on a freshly installed
IPA server.
Version-Release number of selected component (if applicable):
ipa-server-4.2.0-15.el7_2.3.x86_64
How reproducible:
always
Steps to Reproduce:
1.  ipa-server-install
2.  ipa-nis-manage enable
3.  systemctl restart dirsrv.target
4.  ldapsearch -H ldapi://%2fvar%2frun%2fslapd-TESTRELM-TEST.socket -b cn=NIS\
Server,cn=plugins,cn=config dn
Actual results:
Only see a couple maps listed.  Do not see passwd, group, or netgroup maps.
[root@rhel7-1 ~]# ipa-nis-manage enable
Directory Manager password:
Enabling plugin
This setting will not take effect until you restart Directory Server.
The portmap service may need to be started.
[root@rhel7-1 ~]# systemctl restart dirsrv.target
[root@rhel7-1 ~]# ldapsearch -xLLL -D "cn=Directory Manager" -w Secret123 -b
"cn=NIS Server,cn=plugins,cn=config" dn
dn: cn=NIS Server,cn=plugins,cn=config
dn: nis-domain=testrelm.test+nis-map=ethers.byaddr,cn=NIS Server,cn=plugins,cn
 =config
dn: nis-domain=testrelm.test+nis-map=ethers.byname,cn=NIS Server,cn=plugins,cn
 =config
Expected results:
Should see all expected maps.
Additional info:

This issue was triggered again on freeipa-users:

https://www.redhat.com/archives/freeipa-users/2016-January/msg00004.html

Critical priority and a fix without unnecessary delays is well justified...

see also: https://bugzilla.redhat.com/show_bug.cgi?id=1286781#c1

Workaround can be found in BZ

master:

  • 1d56665fd2ed7025131793bb4b0cda35b12bba9f Upgrade: Fix upgrade of NIS Server configuration

ipa-4-3:

  • aeafae40084798725b7ea99c86497c13567e10e8 Upgrade: Fix upgrade of NIS Server configuration

ipa-4-2:

  • 98a86d0efb5e3ecdc38eb51bf0e64dda52365a6d Upgrade: Fix upgrade of NIS Server configuration

Metadata Update from @pvoborni:
- Issue assigned to mbasti
- Issue set to the milestone: FreeIPA 4.2.4

Metadata