summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ldapd/modify.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* bzero -> memset. No binary change.mmcc2015-12-241-2/+2
|
* initialize a variable in case "goto done" makes us compare itpelikan2015-02-111-2/+3
| | | | found by clang, ok henning
* eliminate the use of a gcc C extension (conditionals with omitteddaniel2014-09-211-3/+3
| | | | | | operands). ok deraadt@
* Revert parts of previous change leading to assertion failure formartinh2010-07-281-6/+7
| | | | | certain modify operations. Also fix logic error when replacing an attribute with the empty set.
* Avoid double free in ldap modify requests. The values received in themartinh2010-07-131-12/+28
| | | | | modify request is linked into the stored ber structure, and then both are freed. Fix this by unlinking the values from the request.
* Plug another memory leak. Forgot to reset key returned from cursor, havingmartinh2010-07-061-1/+3
| | | | a reference to a cached page.
* Check return code from commit. Incorrectly returned success when commitmartinh2010-07-061-14/+6
| | | | failed due to disk full.
* Close cursor on delete. Fixes memory leak introduced by non-leaf deletemartinh2010-07-051-12/+16
| | | | check.
* Don't validate modification of immutable attributes if the namespace ismartinh2010-07-021-20/+27
| | | | configured with relaxed schema checking.
* Disallow deleting non-leaf nodes.martinh2010-07-021-7/+29
|
* Add checks that we're not adding immutable attributes, just as we'remartinh2010-07-011-20/+48
| | | | | | | | disallowing modifying immutable attributes. Remove the check for modifying operational attributes, as there's nothing that disallows that (except that they're also often marked as immutable). While here, check the return value from ber_add_* and ldap_add_attribute.
* Add support for referrals. Referrals are configured in the config file,martinh2010-06-291-7/+25
| | | | | | either in the global context or in a namespace. The latter can be used to delegate requests to different servers for specific parts of the DIT. The former is a global catch-all referral.
* don't overwrite the return code from validate_entrymartinh2010-06-291-2/+2
|
* Rewrite the schema parser, as it's not a context-free grammar.martinh2010-06-291-3/+3
| | | | | | | | | | This also brings the config parser more in line with other parse.y in the tree. The new schema parser also supports symbolic OID names. You need to update your /etc/ldapd.conf. Schema files are no longer included with the 'include' keyword, you have to use 'schema' for that. Moves schema-related structures to a separate include file to ease reuse.
* Set errno to appropriate values when returning failure in btree. Make btreemartinh2010-06-231-60/+48
| | | | | functions only return success or failure (-1 or NULL). Update callers to check errno.
* Make modify and simple auth requests open their own transactions, as searchmartinh2010-06-151-25/+62
| | | | | | | | | already does. Trigger a reopen imsg request if either the data or index databases are compacted. Queue the failed request and try again when the file is reopened. Compaction can now be done by a separate process, and ldapd will pick up the change and reopen the file.
* Initial import of ldapd, a small LDAP daemon. Work in progress.martinh2010-05-311-0/+237
ok deraadt@ jacekm@ gilles@ back@ henning@ blambert@