sqwebmail_update

来自「相当优秀的 UNIX 进程管理工具」· 代码 · 共 26 行

TXT
26
字号
> Then i've updated the sqwebmail authlib/preauthvchkpw.c code to use> this new code. Here is my code sample from that file:>>         vget_assign(s,NULL,0,&uid, &gid);>         pw=vauth_getpw(usercopy, s);>         if ( pw!=NULL ) {>                 if (pw->pw_dir == NULL || strlen(pw->pw_dir) == 0 ) {>                         make_user_dir(usercopy, s, uid, gid);>                         pw=vauth_getpw(usercopy, s);>                 }>                 vlogauth(pw, s, service);>         }>         free(usercopy);>         vclose();>> You'll notice it does the check for a null or zero length directory> and calls make_user_dir to make it.>> It also calls the new vlogauth function to updated the lastlog table> so you'll know if they authenticated with sqwebmail. By default this> code is disabled. if you want it to log that you'll need to add> --enable-auth-log=yKen JonesMarch 12, 2001

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?