Hello, I'm new in thes list.

I have install DBMail (dbmail-2.0rc6) conectado a PostgreSQL and it works
Ok. I also have a linux server with samba to do NT authentication for all
the windows workstations.

I want to to authentify DBMail to the samba server but it is not a DBMail
option. I found http://www.tekrat.com/smbauth.php which create a
libsmbauth.a, libsmbauth.o and libsmbauth.h.
This library include a smbauth_validate() funcion which recibe the
parameters server, user, password and use this information to authentify
to any samba and return 0 or 1.

I was trying to include this SMBAuth in the dbmail-2.0rc6/auth/authsql.c.
But maybe I dont have to much expirience in C because it didn't function.

I inlude in the code this.

    #include <libsmbauth.h>

and I chage this part of the code of auth_validate() in the line 674

    is_validated = smbauth_validate( "server", username,passwod );
    # (strcmp(query_result, password) == 0) ? 1 : 0;

It didn't work becouse I don't know where I need to include the library
libsmbauth.a to be use in the compilation to say  libauthdbmail.so.0.0.0
use it.


I request help in this issue, I know many people who use Samba to
authentify and to provide this possibility will be wonderull because I
know the authentification is the big issue to change to DBMail.

Thanks you.

Italo Osorio.


-----------------------------------------
This email was sent using SquirrelMail.
   part of "AIIAS webmail service"
     http://www.aiias.edu/webmail

Reply via email to