summaryrefslogtreecommitdiff
path: root/daemon/bd.h
diff options
context:
space:
mode:
authorStef Walter <stef@memberwebs.com>2008-06-11 21:48:27 +0000
committerStef Walter <stef@memberwebs.com>2008-06-11 21:48:27 +0000
commit0cb3f6098d959479a96c26a92d91becc2110b30d (patch)
tree22f1447d6c7ad77d802c476297cf9547f822f81a /daemon/bd.h
parent67d7a6cc4d3234ac93e521632701e8d42513e042 (diff)
Support getting groups from the server and limiting access based on LDAP groups. See #112
Diffstat (limited to 'daemon/bd.h')
-rw-r--r--daemon/bd.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/daemon/bd.h b/daemon/bd.h
index a42af68..1697cfb 100644
--- a/daemon/bd.h
+++ b/daemon/bd.h
@@ -39,8 +39,8 @@
* HA_OK: completed successfully
* HA_FAILED: error retrieving hash (should have logged error)
*/
-typedef int (*bd_validate_digest)(ha_request_t* rq,
- const char* user, digest_context_t* dg);
+typedef int (*bd_validate_digest)(ha_request_t* rq, const char* user,
+ digest_context_t* dg, char ***groups);
/*
* A callback for validating a given user's password.
@@ -50,8 +50,8 @@ typedef int (*bd_validate_digest)(ha_request_t* rq,
* HA_FALSE: invalid password
* HA_FAILED: error validating (should have logged error)
*/
-typedef int (*bd_validate_basic)(ha_request_t* rq,
- const char* user, const char* password);
+typedef int (*bd_validate_basic) (ha_request_t *rq, const char *user,
+ const char *password, char ***groups);
/*
* Escapes a value for sending to 'server'
@@ -71,6 +71,7 @@ typedef struct bd_context
/* Require locking --------------------------------------*/
hsh_t* cache; /* Some cached records or basic */
+ unsigned int cache_max; /* Maximum number of records in cache */
}
bd_context_t;