X-Git-Url: http://git.hcoop.net/hcoop/debian/courier-authlib.git/blobdiff_plain/f77892e671e1261ec26e5133f86b8a52635f3dd2..HEAD:/preauthuserdbcommon.c diff --git a/preauthuserdbcommon.c b/preauthuserdbcommon.c index 6c29778..e39decb 100644 --- a/preauthuserdbcommon.c +++ b/preauthuserdbcommon.c @@ -20,8 +20,6 @@ #include "userdb/userdb.h" -#define TOKEN_CMD "/etc/courier/get-token " - int auth_userdb_pre_common(const char *userid, const char *service, int needpass, int (*callback)(struct authinfo *, void *), @@ -107,21 +105,6 @@ int rc; auth.maildir=udb->udb_mailbox; auth.quota=udb->udb_quota; - /* Get tokens for AFS */ - { char uidstr[32] = ""; - char *token_cmd; - if (auth.sysuserid) - { - snprintf(uidstr, sizeof(uidstr), "%ld", (long)*auth.sysuserid); - if ((token_cmd=malloc(sizeof(TOKEN_CMD)+strlen(uidstr)))) - { - strcat(strcpy(token_cmd, TOKEN_CMD),uidstr); - system(token_cmd); - free(token_cmd); - } - } - } - courier_authdebug_authinfo("DEBUG: authuserdb: ", &auth, 0, passwords); rc= (*callback)(&auth, arg); if (passwords) free(passwords);