Jump to content
  • Advertisement
Sign in to follow this  
malik_alis

Shell Developement

This topic is 4873 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Have anyone idea, how to authenticate user info given at client side on the server side with real users database. Actually i want to make a remote shell like telnet which also require user authentication

Share this post


Link to post
Share on other sites
Advertisement
Are you asking how to authenticate the user using the existing system authentication (/etc/shadow on Linux, etc), or how to design your own authentication scheme?

http://www.mindcontrol.org/~hplus/authentication.html talks about various kinds of authentication.

Doing authentication for the system is fairly complicated, and requires the root/setuid privilege on Linux, and Administrator privileges on Windows. The actual procedure can be found by reading the source for telnetd/login on Linux, or on MSDN for Windows.

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
Wtih linux, it's easy.

Just use PAM.

PAM was designed to replace the nightmare of conflicting poorly documented ways of doing this, and now most stuff is "PAM compatible" meaning you code to the PAM interface, and can then use any pluggable module for auth - there are modules for:
- the passwd file (linux default auth)
- mySql DB of your choice
- LDAP DB's
- ...many others

Wiothout PAM, it's a PITA. :(.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!