How to distinguish LDAP account from local account

From: Xin Li (
Date: 10/22/03

Date: 22 Oct 2003 07:24:22 -0700


I have my system's PAM configured to authenticate through LDAP. I
need a way, given an account or group, to figure out two things:

A) Is the account or group a local account or a remote LDAP account
B) Is there a local account or group that shares the same name?

Any help would be greatly appreciated. Thanks.

Xin Li