How do I get the information of the logged in user?

I have two questions.

1. If the user name in the active directory is the same as the local user name, login is not possible. Is this right?

2. Is there a way to know which node the logged in user belongs to?

Nodes are groups that appear in Directory Utility Applications > Directory Editor.

e.g. /Local/Default