summaryrefslogtreecommitdiffstats
path: root/usr.bin/ldap/ldapclient.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* avoid double free, instead flowing through a free(NULL)deraadt2019-01-261-2/+1
| | | | from Ville Valkonen
* update for libtls default cert changes.tedu2018-11-291-3/+3
| | | | bonus: this exposed a few missing const qualifiers.
* LDAP returns values as OCTET STRINGs, which can be LDAPStrings, but isn'tmartijn2018-11-271-20/+26
| | | | | | | | | | | | | always the case. This caused some malformed output when querying databases returning data containing NUL-bytes. Fix this by also returning the actual size. With this diff we should produce basically identical output to openldap's ldapsearch. Lots of back and forths with claudio@ OK claudio@
* RFC2849 requires us to have 2 colons after the value-spec.martijn2018-11-071-2/+2
| | | | OK claudio@
* Use TLS_CA_CERT_FILE instead of a separate define.jsing2018-11-061-3/+2
| | | | ok beck@ bluhm@ tb@
* Fix base64 outlen calculation.martijn2018-11-061-2/+2
| | | | OK claudio@
* Implement SAFE-INIT-CHAR.martijn2018-11-061-3/+8
| | | | OK claudio@
* *** empty log message ***martijn2018-10-231-1/+3
|
* Fix off by one when wrapping long LDIF lines.martijn2018-10-231-2/+4
| | | | OK reyk@
* - instead of trying to show a 100% accurate synopsis for -H, simplify itjmc2018-07-031-4/+4
| | | | | | | and add some explanatory text: originally from a diff proposed by matthew martin, with an adjusted text by him - while here, sync synopsis and usage(), and some other minor tweaks
* Allow to read the password from a file with -yreyk2018-06-261-6/+35
| | | | | | Pointed out by Tim Chase OK rob@ gsoares@ jmc@
* Import ldap(1), a simple ldap search client.reyk2018-06-131-0/+751
We have an ldapd(8) server and ypldap in base, so it makes sense to have a simple LDAP client without depending on the OpenLDAP package. This tool can be used in an ssh(1) AuthorizedKeysCommand script. With feedback from many including millert@ schwarze@ gilles@ dlg@ jsing@ OK deraadt@