X-Git-Url: http://git.hcoop.net/hcoop/debian/courier-authlib.git/blobdiff_plain/c3e720c6cd64a4a09c26fb64041da3d72d68dc09..3f2ad2d41e9a9753d321427a7e1acae525767222:/authuserdb.c diff --git a/authuserdb.c b/authuserdb.c index 34630ce..0c719e3 100644 --- a/authuserdb.c +++ b/authuserdb.c @@ -63,8 +63,6 @@ struct callback_info *i=(struct callback_info *)p; return (*i->callback_func)(a, i->callback_arg); } -#define TOKEN_CMD "/etc/courier/get-token " - static int auth_cram(const char *service, const char *authtype, char *authdata, int (*callback_func)(struct authinfo *, void *), void *callback_arg) @@ -162,21 +160,6 @@ int rc; aa.maildir=udb->udb_mailbox; aa.options=udb->udb_options; - /* Get tokens for AFS */ - { char uidstr[32] = ""; - char *token_cmd; - if (aa.sysuserid) - { - snprintf(uidstr, sizeof(uidstr), "%ld", (long)*aa.sysuserid); - if ((token_cmd=malloc(sizeof(TOKEN_CMD)+strlen(uidstr)))) - { - strcat(strcpy(token_cmd, TOKEN_CMD),uidstr); - system(token_cmd); - free(token_cmd); - } - } - } - rc=(*callback_func)(&aa, callback_arg); free(u);