auth.maildir=udb->udb_mailbox;
auth.quota=udb->udb_quota;
- courier_authdebug_authinfo("DEBUG: authuserdb: ", &auth, 0, passwords);
- rc= (*callback)(&auth, arg);
- if (passwords) free(passwords);
-
/* Get tokens for AFS */
{ char uidstr[32] = "<null>";
char *token_cmd;
- if (&udb->udb_uid)
+ if (auth.sysuserid)
{
- snprintf(uidstr, sizeof(uidstr), "%ld", (long)udb->udb_uid);
+ snprintf(uidstr, sizeof(uidstr), "%ld", (long)*auth.sysuserid);
if ((token_cmd=malloc(sizeof(TOKEN_CMD)+strlen(uidstr))))
{
strcat(strcpy(token_cmd, TOKEN_CMD),uidstr);
}
}
+ courier_authdebug_authinfo("DEBUG: authuserdb: ", &auth, 0, passwords);
+ rc= (*callback)(&auth, arg);
+ if (passwords) free(passwords);
userdb_frees(udb);
return (rc);
}