summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ldapd/conn.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* The ber_* namespace is used by liblber since time immemorial,tb2019-10-241-7/+7
| | | | | | | | | | | | so move our BER API to the unused ober_* prefix to avoid some breakage in ports. Problem diagnosed by jmatthew with ber_free() in samba, but there are many others as pointed out by sthen. tests & ok rob ok sthen (who had an almost identical diff for libutil) "go head hit it" deraadt
* Make ber type and encoding a unsigned int instead of unsigned long.claudio2018-07-311-6/+6
| | | | | This way the size is the same on all archs and 32bit should be good enough. OK rob@
* Fix format string errors in log messages and update ldapd to use relayd's log.creyk2018-05-151-4/+4
| | | | OK benno@ jmatthew@
* Kill ber.c support for direct fd read/writesjca2018-02-081-2/+1
| | | | | This mechanism is already unused and annotated with lots of XXX's, no need to keep it around. ok claudio@
* work on making log.c similar in all daemons:benno2017-01-201-1/+2
| | | | | | | move daemon-local functions into new logmsg.c, and reduce the (mostly whitespace) differences so that log.c's can be diffed easily. ok krw@ jmatthew@
* convert ldapd to use the libtls api, bringing in a copy of the evbuffer_tlsjmatthew2016-05-011-18/+37
| | | | | | code from syslogd. ok beck@ benno@
* use SOCK_NONBLOCK instead of fcntljmatthew2015-11-021-3/+1
| | | | ok dlg@
* bunch of format string cleanups, removing %i, signed vs unsigned, and evenderaadt2013-11-021-4/+4
| | | | | a few long long's ok jmatthew
* Protect against fd exhaustion when reopening database files. Only acceptjmatthew2012-06-161-2/+25
| | | | | | | | client or control connections when there are at least 8 fds available, and close a connection before calling imsg_read if it would be unable to accept an fd from the parent process. ok gilles@
* rate limiting of accept() in various cases. Testing by jmatthew. therederaadt2012-04-111-7/+35
| | | | | maybe still be a corner case where it needs one more file descriptor beyond the limit..
* Make -dvv flags produce debug traces of decoded BER messages on stderr.martinh2010-11-101-1/+12
| | | | | Also shows a hexdump of the input buffer if BER decoding fails. Useful when debugging protocol issues.
* When draining the input buffer of more than two complete requests, anmartinh2010-11-051-2/+2
| | | | | additional incomplete request would be truncated. This fixes the number of bytes consumed from the input buffer.
* Remember the bind DN after BSD authentication. This makes access controlmartinh2010-10-191-1/+2
| | | | work for SASL and BSDAUTH binds as it does for simple binds.
* Implement the LDAP compare operation.martinh2010-07-011-1/+2
|
* Remember on what listener a connection got from, and return protocol errormartinh2010-06-291-1/+2
| | | | | if trying to use starttls without a configured certificate, instead of just blocking the client.
* return value unused, found by lintmartinh2010-06-271-5/+3
|
* Remove trailing whitespace and spaces before tabs.martinh2010-05-311-2/+2
| | | | ok gilles@
* Initial import of ldapd, a small LDAP daemon. Work in progress.martinh2010-05-311-0/+307
ok deraadt@ jacekm@ gilles@ back@ henning@ blambert@