/* <settings checks> */
static struct file_listener_settings auth_unix_listeners_array[] = {
{ "login/login", 0666, "", "" },
+ { "auth-login", 0600, "$default_internal_user", "" },
{ "auth-client", 0600, "", "" },
{ "auth-userdb", 0600, "", "" },
{ "auth-master", 0600, "", "" }
&auth_unix_listeners_array[0],
&auth_unix_listeners_array[1],
&auth_unix_listeners_array[2],
- &auth_unix_listeners_array[3]
+ &auth_unix_listeners_array[3],
+ &auth_unix_listeners_array[4]
};
static buffer_t auth_unix_listeners_buf = {
auth_unix_listeners, sizeof(auth_unix_listeners), { 0, }
name++;
suffix = strrchr(name, '-');
- if (suffix == NULL) {
- if (strcmp(name, "login") == 0)
- *type = AUTH_SOCKET_LOGIN_CLIENT;
- else
- *type = AUTH_SOCKET_CLIENT;
- } else {
+ if (suffix == NULL)
+ suffix = name;
+ else
suffix++;
- if (strcmp(suffix, "master") == 0)
- *type = AUTH_SOCKET_MASTER;
- else if (strcmp(suffix, "userdb") == 0)
- *type = AUTH_SOCKET_USERDB;
- else
- *type = AUTH_SOCKET_CLIENT;
- }
+
+ if (strcmp(suffix, "login") == 0)
+ *type = AUTH_SOCKET_LOGIN_CLIENT;
+ else if (strcmp(suffix, "master") == 0)
+ *type = AUTH_SOCKET_MASTER;
+ else if (strcmp(suffix, "userdb") == 0)
+ *type = AUTH_SOCKET_USERDB;
+ else
+ *type = AUTH_SOCKET_CLIENT;
}
auth = auth_find_service(NULL);