lerous
asked on
Unix - getpwuid & getprpwuid
I need a c-program that will detect if the Unix System is trusted host or not and use the appropriate function
getpwuid - none trusted host
getprpwuid - trusted host
How do I do this?
If you know the answer and have sample code, please send it to me.
I'm creating a cgi script that will authenticate users on a Web Site using the System password DB. This includes encrypting the password using crypt & the SALT and then comparing it to the encrypted System User password. If they match, your logged in.
*** If you have already done this, please let me know and I'll reward you 500 points. ***
Thanks.
getpwuid - none trusted host
getprpwuid - trusted host
How do I do this?
If you know the answer and have sample code, please send it to me.
I'm creating a cgi script that will authenticate users on a Web Site using the System password DB. This includes encrypting the password using crypt & the SALT and then comparing it to the encrypted System User password. If they match, your logged in.
*** If you have already done this, please let me know and I'll reward you 500 points. ***
Thanks.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
If you have an Unix Server, simply type "man getprpwuid" and if you read the documentation, it specifies all functions that are designed for trusted host systems where normally you would use getpwuid.
Could you please explain your first section?
Where did you find getprpwuid?