[Web-cyradm] squirrelmail change password plugin

apellido apellido at mactan.ph
Fri Apr 16 22:11:53 CEST 2004


Hello does anyone sucessfully install squirrelmail plugin (chg_sasl_passwd). i got this error when trying to compile chgsaslpasswd.c .
Here's the error:

chgsaslpasswd.c:4: syntax error before `UID'
chgsaslpasswd.c: In function `main':
chgsaslpasswd.c:11: `UID' undeclared (first use in this function)
chgsaslpasswd.c:11: (Each undeclared identifier is reported only once
chgsaslpasswd.c:11: for each function it appears in.)
chgsaslpasswd.c:12: `CMD' undeclared (first use in this function)



here's the code:

#include <stdio.h>
#include <unistd.h>

define UID 12346
define CMD "/usr/local/sbin/saslpasswd2"

main(int argc, char *argv[])
{
int rc,cc;

        cc = setuid(UID);
        rc = execvp(CMD, argv);
        if ((rc != 0) || (cc != 0))
        {
                fprintf(stderr,"__ %s:  failed %d  %d\n",argv[0],rc,cc);
                exit(1);
        }
}



i just uncomment the

define UID 12346
define CMD "/usr/local/sbin/saslpasswd2"

thanks ...
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.web-cyradm.org/pipermail/web-cyradm/attachments/20040416/4e5d7d13/attachment-0007.html


More information about the Web-cyradm mailing list