Unable to fetch the mapping information from localhost

Recently we got a case where User name mapping was not working. We did check the User name mapping setting. The user name mapping server was pointing to localhost. Then we check the User name mapping configuration. User name mapping was fetching the information from passwd and group file.

We checked the passwd and group file and everything looked good in those files. Running the mapadmin list –all command also displayed all the mappings.

Then we checked the .maphost file. Found that the customer had put a ‘-‘ entry in the end of the file. This was blocking the User name mapping information to be exported to any machine inclusing the local machine.

Removed the ‘-‘ entry and restarted the User name mapping service. Then we were able to fetch the mapping information.