diff options
author | Nathan Kinder <nkinder@redhat.com> | 2009-10-05 15:34:12 -0700 |
---|---|---|
committer | Nathan Kinder <nkinder@redhat.com> | 2009-10-05 15:34:12 -0700 |
commit | 6eb6e4b521357fa28ed85ad58c7ecd6bd26a7a32 (patch) | |
tree | c19dc668020f92f1287cafdcfbba06d40034a64f /ldap/servers/slapd/proto-slap.h | |
parent | 5593a5f7da88ae37ae032b95c7a3a369e8d61a1a (diff) | |
download | ds-6eb6e4b521357fa28ed85ad58c7ecd6bd26a7a32.tar.gz ds-6eb6e4b521357fa28ed85ad58c7ecd6bd26a7a32.tar.xz ds-6eb6e4b521357fa28ed85ad58c7ecd6bd26a7a32.zip |
Allow anonymous bind resource limits to be set.
This patch adds a new config setting named nsslapd-anonlimitsdn
that one can set to the DN of an entry containing the bind-based
resource limit attributes to use for operations performed by an
anonymous user. This allows the defaults to still be used for
all other actual bound users who do not have any user specific
resource settings.
This implementation approach allows any resource limits that
are registered via the reslimit API to work with this anonymous
limits template entry.
Diffstat (limited to 'ldap/servers/slapd/proto-slap.h')
-rw-r--r-- | ldap/servers/slapd/proto-slap.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ldap/servers/slapd/proto-slap.h b/ldap/servers/slapd/proto-slap.h index 35e5697c..b220bf00 100644 --- a/ldap/servers/slapd/proto-slap.h +++ b/ldap/servers/slapd/proto-slap.h @@ -255,6 +255,7 @@ int config_set_ldapi_search_base_dn( const char *attrname, char *value, char *er #if defined(ENABLE_AUTO_DN_SUFFIX) int config_set_ldapi_auto_dn_suffix( const char *attrname, char *value, char *errorbuf, int apply ); #endif +int config_set_anon_limits_dn( const char *attrname, char *value, char *errorbuf, int apply ); int config_set_slapi_counters( const char *attrname, char *value, char *errorbuf, int apply ); int config_set_srvtab( const char *attrname, char *value, char *errorbuf, int apply ); int config_set_sizelimit( const char *attrname, char *value, char *errorbuf, int apply ); @@ -379,6 +380,7 @@ char *config_get_ldapi_search_base_dn(); #if defined(ENABLE_AUTO_DN_SUFFIX) char *config_get_ldapi_auto_dn_suffix(); #endif +char *config_get_anon_limits_dn(); int config_get_slapi_counters(); char *config_get_srvtab(); int config_get_sizelimit(); |