Elizabeth Myers
4e85459a7c
authd: add (not really working) OPM provider.
...
It doesn't do anything yet as no configuration is plugged in, as well.
2016-03-31 00:28:05 -05:00
Elizabeth Myers
15c49abbb3
authd/providers: add timeout callback system.
...
This means that each provider no longer has to keep its own event; it
can set a timeout and have a callbackinstead.
2016-03-30 17:21:49 -05:00
Elizabeth Myers
64afc35817
authd/provider: make reject_client take a format string and varargs
2016-03-30 01:29:21 -05:00
Elizabeth Myers
ee7f92714a
authd/provider: add stats handling hooking
2016-03-27 17:15:08 -05:00
Elizabeth Myers
6535177fef
authd/provider: add data to rejection tag.
...
This is used for information such as what blacklist rejected the client.
2016-03-27 13:52:52 -05:00
Elizabeth Myers
60374ac975
authd: add abiltiy to cancel connection
2016-03-26 23:54:21 -05:00
Elizabeth Myers
247b304f1f
authd/provider: forgot this file...
2016-03-26 20:33:21 -05:00
Elizabeth Myers
cdf1592915
Check these out from authd-framework-2.
2016-03-26 16:53:43 -05:00
Elizabeth Myers
9b24cbdecc
Merge branch 'authd-framework-2' into authd-framework
2016-03-26 16:52:13 -05:00
Elizabeth Myers
a51487e0e7
authd/provider: add options handlers for providers
...
This allows providers to create handlers for changing their
configuration.
2016-03-25 23:04:00 -05:00
Elizabeth Myers
db821ee9ba
authd: split out notices stuff for backporting to master.
2016-03-25 21:29:44 -05:00
Elizabeth Myers
a7d5aea119
provider: make blacklist queries come after ident/rdns.
2016-03-25 20:46:58 -05:00
Elizabeth Myers
add80afdcb
authd/provider: add blacklist provider.
...
This took way longer than it should have.
2016-03-25 20:07:36 -05:00
Elizabeth Myers
b2ede1aa71
actually use warn_opers function
2016-03-24 19:36:41 -05:00
Elizabeth Myers
89d22b9af5
authd/provider: cleanups
2016-03-24 19:23:49 -05:00
Elizabeth Myers
9c7498d559
authd/provider: add c_addr/l_addr fields
...
Some providers consume these directly, so it's better to have a "cached"
version that's already generated.
2016-03-23 18:58:37 -05:00
Elizabeth Myers
a52c7a8e69
authd/provider: really fix things for new changes.
2016-03-23 09:15:18 -05:00
Elizabeth Myers
3e875f629f
authd/provider: overhaul storage of various pieces of data
...
Clients are stored in a dictionary referenced by id (to allow for
UINT32_MAX auth clients, which is plenty).
Each provider now has a data slot (this limits the number of providers
to 32 for now, but that's plenty for now) which they can use to attach
data to auth_clients. This consolidates data, aids in debugging, and
makes it easier to just pass around auth_client structures.
2016-03-22 19:13:54 -05:00
Elizabeth Myers
f7b37c1dc1
authd: add provider-specific data to auth_client via a dictionary.
2016-03-19 15:47:10 -05:00
Elizabeth Myers
2b0cc3d36a
Redo of the authd-framework branch.
...
This is basically most of the code from the authd-framework branch, but
written to the new DNS code in master. Not quite done yet but getting
there.
2016-03-17 16:23:27 -05:00
Elizabeth Myers
91f870b39b
auth: enable soft reject of clients.
...
This doesn't cancel callbacks in progress. This is useful in cases where
you're not sure you want to reject a client yet.
2016-03-10 11:30:09 -06:00
Elizabeth Myers
f1861e48e6
authd: identd fixes
2016-03-10 10:00:46 -06:00
Elizabeth Myers
b74739c247
auth: use sockaddr_storage to store ports
2016-03-10 09:32:37 -06:00
Elizabeth Myers
187643195c
authd: add rdns provider (compile-tested)
2016-03-10 08:04:17 -06:00
Elizabeth Myers
5bfc606fa4
authd/provider: use rb_sockaddr_storage for IP addresses.
2016-03-10 07:25:22 -06:00
Elizabeth Myers
f169fc8842
authd: add address families to provider processing.
...
ircd knows about them so let's not reinvent checking for address types
and stuff.
2016-03-10 05:40:21 -06:00
Elizabeth Myers
9b5b2dedc0
authd/provider: add these to provider.h
2016-03-10 03:15:03 -06:00
Elizabeth Myers
0f95a2749f
rename auth.[ch] to provider.[ch]
...
This name is less confusing and more descriptive.
2016-03-10 03:07:52 -06:00