can any one help me on how to [man]retrieve the encrypted password[/man] from /etc/shadow using php.
thanks.
mike
i have used posix_getpwnam() function in php but it will return only "x" for the password.. can any body help me on how to retrieve it in crypted form .
what is the encryption style of redhat 7?
It's not encryption. It's hashed. No way to "decrypt" it.
how to do it? can u give a sample if its okay with u.
whats the encryption of it? how to do login authentication for that?
Did you even read my post?
You can't
yeah i have read ur post.
so does webmail do there authentication? like squirrel... i've got no idea
Look at [man]md5[/man] and [man]sha1[/man]. They are one way hashing algorithyms. So anything authenticating to it will hass the user's inputed password and try to match the hashes. Retrieving it isn't an option. You can only change it.
i have tried this one already. but i'v got no idea on how cud i compare my inputed md5 form password to the corresponding password in /etc/passwd or /etc/shadow well in fact i hv no idea on how to cmpare it.
Using php's md5 won't work on this(at least, I've never gotten it to). You will need to read up on PAM Authentication.