nerdexam
CompTIA

LX0-104 · Question #182

In order to migrate usernames and passwords from a NIS server, the passwd and shadow files were used with a custom script to import the data to OpenLDAP. After properly creating a test workstation to

The correct answer is A. The NIS database is not synchronized with passwd and shadow.. If getent passwd shows a different number of users after migrating from NIS to OpenLDAP using passwd and shadow files, a likely cause is that the NIS database itself was not perfectly synchronized with those local files before the migration.

Essential System Services

Question

In order to migrate usernames and passwords from a NIS server, the passwd and shadow files were used with a custom script to import the data to OpenLDAP. After properly creating a test workstation to authenticate against LDAP, the number of lines outputted from getent passwd are different from the number on the NIS client workstation. Which one of the following statements can be true?

Options

  • AThe NIS database is not synchronized with passwd and shadow.
  • BThe OpenLDAP server creates some additional users that are shown in getent.
  • CThe NIS clients are not receiving the correct files from the server.
  • DThe NIS clients are confused since OpenLDAP and NIS use the same port to communicate.
  • EThe OpenLDAP client is querying the NIS server on the wrong TCP/IP port.

How the community answered

(43 responses)
  • A
    81% (35)
  • B
    12% (5)
  • D
    2% (1)
  • E
    5% (2)

Why each option

If `getent passwd` shows a different number of users after migrating from NIS to OpenLDAP using `passwd` and `shadow` files, a likely cause is that the NIS database itself was not perfectly synchronized with those local files before the migration.

AThe NIS database is not synchronized with passwd and shadow.Correct

The passwd and shadow files used for migration might not have been perfectly synchronized with the active NIS database at the time of export. This discrepancy would lead to a different number of users in the LDAP system compared to what NIS clients currently perceive.

BThe OpenLDAP server creates some additional users that are shown in getent.

OpenLDAP does not automatically create 'additional users' shown in getent; it serves only the data it has been explicitly populated with.

CThe NIS clients are not receiving the correct files from the server.

While NIS clients not receiving correct files could cause a discrepancy, the problem description implies the passwd and shadow files themselves were the source for LDAP migration, suggesting an issue with the source data rather than client reception.

DThe NIS clients are confused since OpenLDAP and NIS use the same port to communicate.

OpenLDAP and NIS do not use the same ports to communicate; LDAP typically uses 389/636, while NIS uses 111 (RPC portmapper) and dynamic ports, so port confusion is not a factor.

EThe OpenLDAP client is querying the NIS server on the wrong TCP/IP port.

The problem states a 'test workstation to authenticate against LDAP' was set up, implying the client is correctly configured to query the LDAP server, not the old NIS server on a wrong port.

Concept tested: NIS to LDAP migration data integrity

Topics

#NIS#OpenLDAP#User migration#getent#Troubleshooting

Community Discussion

No community discussion yet for this question.

Full LX0-104 Practice