I am going nut trying to figure this out. All I want to do is write a very small tool that will accept a userid and a given password as command line arguments, and return "true" if they match what the system has, or "false" if not.
This is on FreeBSD so I am accessing an /etc/passwd file.
All the searching and sites I have found thus far all deal with Apache and protecting directories. I don't want any of that. I want something that can be called from command line and trap the return code to verify if the supplied username and password are correct.
Anyone have any good ideas?