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

auth_userokay() function only always the first login



Hello,

I writing a little program which authenticates a user.
I use auth_userokay() like this:

if((auth_userokay(name,0,"some-kind",passwd) == NULL)
{
 printf("failed");
}
else
{
 printf("successful");
}

The first login is OK. But all other(the 2,3,4,5,...)
fail! I have no idea why !?!
I checked the buffers and there the password and
username is ok. If I kill the daemon and start it
again. Then again the first is successfull, but the
others are not. 

please help me.

thanks in advance
hans pauer

__________________________________________________________________

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