Michael Bell wrote:
>
> Please excuse this message if it has been asked before but as I just got
> onto the list I don't know the answer. I wish to preform authentication
> against the virtual user database in PHP but it only supports cdb v0.55 and
> not cdb0.75. Every time I try to access the database, I get massive errors.
> My question is this: is there a efficient method of preforming
> authentication using PHP? I started writting my own methods to read just the
> text database but I wanted to ask here before I settle on that.
>
> Also, can someone tell me the field values for the text database? Specificly
> the 3rd & 4th field.
Is there a way for php to link to C libraries? if that is possible
then you can access the complete vpopmail interface.
3&4th field, you mean uiD and gid.
the gid field is a bit flag mask
please consult the vpopmail.h
/* gid flags */
#define NO_PASSWD_CHNG 0x01
#define NO_POP 0x02
#define NO_WEBMAIL 0x04
#define NO_IMAP 0x08
#define BOUNCE_MAIL 0x10
#define NO_RELAY 0x20
#define NO_DIALUP 0x40
#define V_USER0 0x080
#define V_USER1 0x100
#define V_USER2 0x200
#define V_USER3 0x400
The uid field only uses one bit flag, for APOP.
However the apop feature is not offically supported.
(mostly because no one can explain to me how it works)
Ken Jones
inter7