/*
- * Copyright (C) 2006 Andre Noll <maan@systemlinux.org>
+ * Copyright (C) 2006-2007 Andre Noll <maan@systemlinux.org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
u->perms = 0;
while (num > 0) {
num--;
- if (!strcmp(tmp[num], "AFS_READ"))
- u->perms |= AFS_READ;
- else if (!strcmp(tmp[num], "AFS_WRITE"))
- u->perms |= AFS_WRITE;
+ if (!strcmp(tmp[num], "VSS_READ"))
+ u->perms |= VSS_READ;
+ else if (!strcmp(tmp[num], "VSS_WRITE"))
+ u->perms |= VSS_WRITE;
else if (!strcmp(tmp[num], "DB_READ"))
u->perms |= DB_READ;
else if (!strcmp(tmp[num], "DB_WRITE"))
u->perms |= DB_WRITE;
else /* unknown permission */
- PARA_WARNING_LOG("unknown permission: %s\n",
+ PARA_WARNING_LOG("ignoring unknown permission: %s\n",
tmp[num]);
}
para_list_add(&u->node, &user_list);
exit(EXIT_FAILURE);
}
+/**
+ * initialize the list of users allowed to connecto to para_server
+ *
+ * \param user_list_file the file containing access information
+ *
+ * If this function is called a second time, the contents of the
+ * previous call are discarded.
+ */
void init_user_list(char *user_list_file)
{
struct user *u, *tmp;