| 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
|