Displaying 1 result from an estimated 1 matches for "htpasswd_auth_state".
2004 Aug 06
4
No Duplicate Users - Patch
...tor, username, password);
+ authenticator, source, username, password);
if(result == AUTH_OK)
client->username = strdup(username);
@@ -106,6 +130,7 @@
typedef struct {
char *filename;
+ int allow_duplicate_users;
rwlock_t file_rwlock;
} htpasswd_auth_state;
@@ -150,14 +175,20 @@
#define MAX_LINE_LEN 512
/* Not efficient; opens and scans the entire file for every request */
-static auth_result htpasswd_auth(auth_t *auth, char *username, char *password)
+static auth_result htpasswd_auth(auth_t *auth, source_t *source, char
*username, char *passw...