search for: auth_is_listener_connect

Displaying 2 results from an estimated 2 matches for "auth_is_listener_connect".

2004 Aug 06
4
No Duplicate Users - Patch
...;0"/> </authentication> </mount> --> Index: src/auth.c =================================================================== --- src/auth.c (revision 6619) +++ src/auth.c (working copy) @@ -34,6 +34,30 @@ #define CATMODULE "auth" <p>+int auth_is_listener_connected(source_t *source, char *username) +{ + client_t *client; + avl_node *client_node; + + avl_tree_rlock(source->client_tree); + + client_node = avl_get_first(source->client_tree); + while(client_node) { + client = (client_t *)client_node->key; + if (client->u...
2004 Aug 06
0
No Duplicate Users - Patch
...> feature for any decent use of the listener authentication capabilities of > icecast. > > thoughts ? comments ? This is good, but I have one comment... > > thread_rwlock_rlock(&state->file_rwlock); > + if (!state->allow_duplicate_users) { > + if (auth_is_listener_connected(source, username)) { > + return AUTH_FAILED; Currently, we only have a generic 'AUTH_FAILED' here. I'd like to see an AUTH_FORBIDDEN (or some other name) added, which would be handled in the connection logic by returning a 403 (not a 401). What do you think of that?...