summaryrefslogtreecommitdiff
path: root/usr.sbin/ypldap
AgeCommit message (Collapse)Author
2010-02-24match code and doc; ok claudioJason McIntyre
2010-02-23Fix .Oo .Xo .Oc .Xc mis-nesting by just dropping the .Xo and .Xc which,Ingo Schwarze
in these cases, is useless anyway. Found by and fixing the build with mandoc; still fine with both old and new groff. ok jmc@
2010-02-07A few visual cleanups, and clarify a comment.Bret Lambert
Also: for (i = 0; i >= 0 && foo; i++) is functionally equivalent to: for (i = 0; foo; i++) so use the clearer construct where appropriate. ok pyr@
2010-02-06Simplify LDAP URL handling (currently unused):Bret Lambert
instead of strdup()'ing multiple values from an already strdup'ed buffer (none of which were checked for NULL upon return, which is also fixed in this), just use a buffer attached to the aldap_url struct. Add an aldap_search_url() function, which is a wrapper around aldap_parse_url and aldap_search. Finally, since the URL bits are unused, wrap them in #if 0 for now. ok pyr@, whose heart was a little broken by the #if 0 (temporary, I swear!)
2010-01-02The .Rs macro must be followed by .Re, and empty .Rs is useless anyway.Ingo Schwarze
Markup syntax error found by mandoc(1), also required to fix the mandoc build. ok jmc@ sobrado@
2009-12-19- "cost" is not a good example of a macro name; from Rogier KriegerJason McIntyre
- zap an unneccessary .Pp whilst here
2009-12-16knf and unused variablesTheo de Raadt
2009-11-12accessses 1 entry too far, found by parfait, ok jsg claudioTheo de Raadt
2009-10-10The YP protocol permits any string to be at least as long asRobert Nagy
YPMAXRECORD, so use that instead of _PW_NAME_LEN. with help from deraadt@
2009-09-15Enclose repeated buffer draining code in a new msgbuf_drain()Jacek Masiulaniec
function, which is additionally exported for use by others. It will be needed by smtpd's SSL module when the SMTP client code is changed to replace libevent's evbuffers with our msgbuf_* API. ok gilles@ henning@ guenther@ eric@
2009-08-08Make imsg_clear close and free any fds in the received fd queue as well asNicholas Marriott
freeing the msgbuf. While here also remove an unnecessary while loop. ok eric pyr
2009-07-23Silence some lint warnings about an unreachable return by consolidatingBret Lambert
actual returns (which were returning the same value anyway). ok pyr@
2009-07-23make buf_write() behave like msgbuf_write(): send out only theEric Faurot
bytes that were filled, not the whole buffer. ok pyr@ gilles@
2009-07-08Fix memory leak in sarch filter parsing code.Bret Lambert
ok pyr@
2009-06-08revert this change by eric@:David Gwynne
Make the imsg protocol network-safe. it might be network safe, but half the imsg based daemons on my firewalls dont run anymore.
2009-06-07Change the way fds passed over a socket are retreived on the receiving side.Eric Faurot
Currently the receiver fetches an imsg via imsg_get() and if he expects an fd, he then calls imsg_get_fd() to fetch the next fd queued on the imsgbuf from which the imsg came. This changes hides the fd queueing mechanism to the API user. When closing an imsg with an fd, the message is flagged so that the receiving end knows it must dequeue the fd in imsg_get() and return it with the imsg structure. This way there is no (less) possible screw up from imsg_get_fd() not being called directly after imsg_get() by the user. The retreived imsg is self-contained. ok pyr@, "I like that" henning@
2009-06-07Make the imsg protocol network-safe.Eric Faurot
ok pyr@
2009-06-06change the imsg header fields a bit to prepare for upcoming changes.Eric Faurot
add a flag field, use u_int32_t for pid_t and extend type to 32 bits for padding. ok pyr@
2009-06-06Get ready for including imsg.h from a lib, when it comes along.Pierre-Yves Ritschard
2009-06-06shuffle code around to achieve 0 length diff nirvana between all thePierre-Yves Ritschard
currently synced daemons' imsg.c, imsg.h and buffer.c
2009-06-06remove unnecessary and scary pid check in imsg_init.Pierre-Yves Ritschard
ok eric@, claudio@
2009-06-06Sync with relayd:Eric Faurot
Stop pushing event handling in the imsg framework. Instead, provide a small glue layer on top of both imsg and libevent. This finally clearly separates event handling and imsg construction. ok pyr@
2009-06-04Make the types of ber_read() decl match the prototype.Jonathan Gray
'looks good' pyr@
2009-06-02Also match on 'master.passwd.byuid'. Fixes a problem with lookup by uid.Bernd Ahlers
ok pyr@
2009-03-31Fixed memory leaks which would occur if the second of two memoryTobias Stoeckmann
allocations fails. looks right deraadt, krw ok henning
2009-02-16- use .Pp, not blank linesJason McIntyre
- format some text to avoid line wrapping
2009-02-15Change the full sample configuration into an use case.aschrijver
2009-01-29Make anonymous binds work properly.aschrijver
2009-01-29No need to use RB_FIND here, RB_INSERT does that job for us.Oleg Safiullin
ok aschrijver@
2009-01-28Correct dup to dupstr.aschrijver
2009-01-27keep namespace clean.Pierre-Yves Ritschard
discussed w/ aschrijver@
2009-01-27Add space after keywords.aschrijver
2009-01-27Oops, fix the error handling. Found by blambert@aschrijver
2009-01-27Fix another double free in the filter parser.aschrijver
2009-01-27Remove unnecessary comment.aschrijver
2009-01-27Add correct error handling to the aldap API.aschrijver
Use the error handling in the ldapclient. with help from pyr@
2009-01-26move aldap_close in aldap.c, where it belongs.Pierre-Yves Ritschard
discussed with aschrijver@
2009-01-16Fix double free with invalid ldap filter (reported by dlg@).aschrijver
Fix more memory leaks.
2009-01-13ypldap.conf may contain secrets, so get the parse to check if itsDavid Gwynne
sufficiently private. ok pyr@
2009-01-06- add missing rcs idJasper Lievisse Adriaanse
ok aschrijver@
2009-01-04Fix memory leak (diff from blambert@)aschrijver
Fix debug messages.
2008-12-29Remove unused prototype.aschrijver
2008-12-28Plug some memory leakage in aldap_parse by calling aldap_freemsgBret Lambert
Let aldap_freemsg allow for a NULL ber_element tree, since it's now possible to pass one in. "looks fine to me :-)" aschrijver@
2008-12-27Fix memory leak.aschrijver
2008-11-28Add support for escaped characters to the search filter parsing function.aschrijver
2008-11-17Missing end quote in example.Marc Balmer
2008-10-28Do the DNS resolution in a seperate process. A lot of code is copied from ntpd.aschrijver
This is necessary because DNS resolution is not possible from a chroot. Cleanup the aldap interface a bit.
2008-10-21Oops, freed to much memory.aschrijver
2008-10-20Do not stop connecting after the first connect fails.aschrijver
OK mikeb@
2008-10-20Add 2 missing directives and remove duplicate configuration entry.aschrijver
Thanks to: uw at o3si dot de