[CentOS] List of users on system

Fri May 13 19:21:27 UTC 2005
Lee W <centos-list at unassemble.co.uk>

Hey All,

Does anyone know of a way of getting a list of all the users on a system 
though PAM.

I know that I could just list the /etc/passwd file but I'm trying to 
write something that is more generic and will also work for NIS or LDAP 
(etc) lookups.  I suppose it is probably unlikely to be there as it is 
probably a security risk.

I need to globally update the password aging settings (which I can do 
though chage/passwd) on existing accounts.

Thanks in advance

Regards

Lee