Hello,

Perhaps somebody can help me a bit... Here is very simple login_-test.c, just to check if everything works:
#include <stdio.h>

int main (int argc, char **argv)
{
char buf[1024];
int i;

for (i=0;i<argc;i++) puts(argv[i]);

read (3,&buf,sizeof(buf));

puts(buf);
} And a very simple calling program, that calls auth_userok, using exactly the way it is called from opensmtpd:
#include <sys/types.h>
#include <login_cap.h>
#include <bsd_auth.h>
#include <stdio.h>

int main( )
{ printf("%d\n",auth_userokay ("greg", NULL , "auth-smtp","password"));
}


As the last accord there are lines in /etc/login.conf:

auth-smtp:auth=-test:

everything other is the file left untouched.

As it doesn't seem to be calling login_-test, I think that is because I failed to properly describe what I need in login.conf....
what should be done?

Thank you.

--
With best regards,
        Gregory Edigarov

Reply via email to