[Openh323gk-users] External Password Auth

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

 



Hello openh323gk-users,

 I have a trouble:
 I want to check RRQ with external program:

[Gatekeeper::Auth]
ExternalPasswordAuth=required;RRQ
default=allow
[ExternalPasswordAuth]
PasswordProgram=/usr/local/gatekeeper/bin/auth

But I'm getting:

2003/09/10 22:29:01.748 1             RasSrv.cxx(927)   GK      RRQ Received
2003/09/10 22:29:01.749 2             gkauth.cxx(793)   GkAuth  Program is not defined
2003/09/10 22:29:01.749 2               gkauth.h(84)    GkAuth  ExternalPasswordAuth check  failed

Is anyone use external program for auth.? Maybe someone can help me
with this?

I thing it's error in gatekeeper, please look to this source:

bool ExternalPasswordAuth::ExternalInit()
{
        const char *ExternalSec = "ExternalAuth";

        // Read the configuration
        Program = config->GetString(ExternalSec, "PasswordProgram", "");
        
        return true;
}

PString ExternalPasswordAuth::GetPassword(const PString & id)
{
        const int BUFFSIZE = 256;
        char buff[BUFFSIZE] = "";
        if (!Program) {                 // I think it's problem
        
                procbuf proc(Program + " " + id, ios::in);
                istream istr(&proc);
                istr.getline(buff, BUFFSIZE);
        } else {
                PTRACE(2, "GkAuth\tProgram is not defined");
        }
        return PString(buff);
}

!Program will never be true if defined PasswordProgram

If I'm wrong, sorry.

P.S. sorry for my English :(

-- 
Best regards,
 Mike



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
List: Openh323gk-users@lists.sourceforge.net
Archive: http://sourceforge.net/mailarchive/forum.php?forum_id=8549
Homepage: http://www.gnugk.org/

[Index of Archives]     [SIP]     [Open H.323]     [Gnu Gatekeeper]     [Asterisk PBX]     [ISDN Cause Codes]     [Yosemite News]

  Powered by Linux