Unix Programming - Authentication in Unix

This is Interesting: Free IT Magazines  
Home > Archive > Unix Programming > October 2006 > Authentication in Unix





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Authentication in Unix
sethukr@gmail.com

2006-10-26, 7:16 am

Hi all,

I have implemented a sample FTP Server.

But it allows any user.

I need to implement a "Authendication Module" in my FTP Server( in
C lang).

Help me by giving ur suggestions. How can i authenticate a valid
user?????????????

Thanks and Regards
Sethuraman.R

James Carlson

2006-10-26, 1:15 pm

sethukr@gmail.com writes:
> I have implemented a sample FTP Server.


You're aware that there's already decent quality freely available
source code that does this, right?

> But it allows any user.
>
> I need to implement a "Authendication Module" in my FTP Server( in
> C lang).
>
> Help me by giving ur suggestions. How can i authenticate a valid
> user?????????????


You might start by looking at the getpwnam() and, if your OS has it,
getspnam() functions, but there's typically quite a lot more to it if
you care to do it right. Many UNIX systems use PAM (and you should
look into that as well), and some have auditing and other requirements
for applications that authenticate users.

--
James Carlson, KISS Network <james.d.carlson@sun.com>
Sun Microsystems / 1 Network Drive 71.232W Vox +1 781 442 2084
MS UBUR02-212 / Burlington MA 01803-2757 42.496N Fax +1 781 442 1677
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com