[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: auth_userokay() function only always the first login



--- Luis Bruno <lbruno_(_at_)_zbit_(_dot_)_pt> schrieb: > Hans pauer
wrote:
> > if((auth_userokay(name,0,"some-kind",passwd) ==
> NULL)
> > {
> >  printf("failed");
> > }
> > else
> > {
> >  printf("successful");
> > }
>
> I think you've misread the manpage. see below:
>
> #include <stdlib.h>
> #include <login_cap.h>
> #include <bsd_auth.h>
> #include <stdio.h>
>
> int
> main (int argc, char **argv)
> {
> printf ("authentication ");
> if (0 == auth_userokay ("tolkien", NULL,
> "auth-mytest", "bloodyh3ll")) {
> printf ("failed\n");
> } else {
> printf ("successful\n");
> }
>
> return 0;
> }
>
> Cheers,
> Luis Bruno 
Hello, sorry, but what is the difference between my
version
and yours ? "name" and "passwd" arrays with the
username and the password. 

thank you

__________________________________________________________________

Gesendet von Yahoo! Mail - http://mail.yahoo.de
Möchten Sie mit einem Gruß antworten? http://grusskarten.yahoo.de