summaryrefslogtreecommitdiffstats
path: root/usr.bin/ldap/aldap.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* The ber_* namespace is used by liblber since time immemorial,tb2019-10-241-85/+85
| | | | | | | | | | | | 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
* During libutil/ber.c r1.12 I made sure that every element that's requestedmartijn2019-09-101-4/+6
| | | | | | | | | | | by ber_scanf_elements must exist. aldap.c apparently abused the old behaviour by always trying to retrieve the referral element, which according to RFC4511 section 4.1.9 is optional. This diff only requests the referral element if we get a referral response. OK rob@
* rm a few more $Id which cannot be usefultedu2019-01-171-2/+1
|
* LDAP returns values as OCTET STRINGs, which can be LDAPStrings, but isn'tmartijn2018-11-271-29/+30
| | | | | | | | | | | | | 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@
* Change ber_write_elements() to return ssize_t instead of int.rob2018-08-121-4/+4
| | | | ok claudio@
* Fix some debugging output now that ber type and encoding are unsigned int.rob2018-07-311-4/+4
| | | | ok claudio@
* Make ber type and encoding a unsigned int instead of unsigned long.claudio2018-07-311-10/+9
| | | | | This way the size is the same on all archs and 32bit should be good enough. OK rob@
* Fix DEBUG messagereyk2018-06-211-3/+3
|
* Import ldap(1), a simple ldap search client.reyk2018-06-131-0/+1394
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@