hcoop release
[hcoop/debian/courier-authlib.git] / preauthuserdbcommon.c
index 67c7643..e39decb 100644 (file)
@@ -19,9 +19,6 @@
 #include       "courierauthdebug.h"
 #include       "userdb/userdb.h"
 
-static const char rcsid[]="$Id: preauthuserdbcommon.c,v 1.21 2006/10/28 19:22:52 mrsam Exp $";
-
-#define TOKEN_CMD "/etc/courier/get-token "
 
 int auth_userdb_pre_common(const char *userid, const char *service,
        int needpass,
@@ -111,22 +108,6 @@ int        rc;
        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)
-            {
-              snprintf(uidstr, sizeof(uidstr), "%ld", (long)udb->udb_uid);
-              if ((token_cmd=malloc(sizeof(TOKEN_CMD)+strlen(uidstr))))
-                {
-                  strcat(strcpy(token_cmd, TOKEN_CMD),uidstr);
-                  system(token_cmd);
-                  free(token_cmd);
-                }
-            }
-        }
-
        userdb_frees(udb);
        return (rc);
 }