include/ldb_errors.h(3)
๐ NAME ๐
include/ldb_errors.h โ bestie, this header is literally the vibe-checker for LDB function calls: it hands you a whole set of result codes so you know what went down. โจ
๐ฆ SYNOPSIS ๐ฆ
โจ Macros โจ
#define LDB_SUCCESS 0โ the function call ate and left no crumbs. It worked. ๐#define LDB_ERR_OPERATIONS_ERROR 1โ the call flopped for some non-specific reason. No details, just vibes. ๐ญ#define LDB_ERR_PROTOCOL_ERROR 2โ the call failed because of a protocol violation. Rude behaviour, honestly.#define LDB_ERR_TIME_LIMIT_EXCEEDED 3โ the call failed because a time limit was exceeded. Clocked out, bestie. โฐ#define LDB_ERR_SIZE_LIMIT_EXCEEDED 4โ the call failed because a size limit was exceeded. Too much, too big. ๐ซถ#define LDB_ERR_COMPARE_FALSE 5โ the function was for value comparison, and the comparison operation returned false.#define LDB_ERR_COMPARE_TRUE 6โ the function was for value comparison, and the comparison operation returned true.#define LDB_ERR_AUTH_METHOD_NOT_SUPPORTED 7โ the function used an authentication method that is not supported by the database. The database said "not my type". ๐#define LDB_ERR_STRONG_AUTH_REQUIRED 8โ the call required an underlying operation that required strong authentication. Bring your strongest self. ๐ช#define LDB_ERR_REFERRAL 10โ the function resulted in a referral to another server. It's giving "ask my friend instead". โก๏ธ#define LDB_ERR_ADMIN_LIMIT_EXCEEDED 11โ the function failed because an administrative / policy limit was exceeded. The admin said no. ๐ซ#define LDB_ERR_UNSUPPORTED_CRITICAL_EXTENSION 12โ the function required an extension or capability that the database cannot provide. Not in her skill set, sorry. ๐#define LDB_ERR_CONFIDENTIALITY_REQUIRED 13โ the function involved a transaction or database operation that could not be performed without a secure link. No secure link, no business. ๐#define LDB_ERR_SASL_BIND_IN_PROGRESS 14โ this is an intermediate result code for SASL bind operations that have more than one step. Mid-transformation, hold on. โจ#define LDB_ERR_NO_SUCH_ATTRIBUTE 16โ the function referred to an attribute type that is not present in the entry. She's not here. ๐#define LDB_ERR_UNDEFINED_ATTRIBUTE_TYPE 17โ the function referred to an attribute type that is invalid.#define LDB_ERR_INAPPROPRIATE_MATCHING 18โ the function required a filter type that is not available for the specified attribute. Wrong filter for this attribute, incompatible fr fr. ๐#define LDB_ERR_CONSTRAINT_VIOLATION 19โ the function would have violated an attribute constraint. Rules are rules, bestie. ๐#define LDB_ERR_ATTRIBUTE_OR_VALUE_EXISTS 20โ the function involved an attribute type or attribute value that already exists in the entry. Already on the guest list. ๐#define LDB_ERR_INVALID_ATTRIBUTE_SYNTAX 21โ the function used an invalid (incorrect syntax) attribute value. Typo era. ๐ญ#define LDB_ERR_NO_SUCH_OBJECT 32โ the function referred to an object that does not exist in the database. Ghosted by the object. ๐ป#define LDB_ERR_ALIAS_PROBLEM 33โ the function referred to an alias which points to a non-existent object in the database. The alias is pointing at absolutely nothing.#define LDB_ERR_INVALID_DN_SYNTAX 34โ the function used a DN which was invalid (incorrect syntax). That DN is not DN-ing. ๐ฉ#define LDB_ERR_ALIAS_DEREFERENCING_PROBLEM 36โ the function required dereferencing of an alias, and something went wrong during the dereferencing process. The dereference arc had a plot twist. ๐ต#define LDB_ERR_INAPPROPRIATE_AUTHENTICATION 48โ the function passed in the wrong authentication method.#define LDB_ERR_INVALID_CREDENTIALS 49โ the function passed in or referenced incorrect credentials during authentication. Wrong password bestie, we've all been there. ๐#define LDB_ERR_INSUFFICIENT_ACCESS_RIGHTS 50โ the function required access permissions that the user does not possess. This user does not have the range. ๐#define LDB_ERR_BUSY 51โ the function required a transaction or call that the database could not perform because it is busy. She's booked and busy, main character energy. ๐ฅ#define LDB_ERR_UNAVAILABLE 52โ the function required a transaction or call to a database that is not available. Out of office. ๐ด#define LDB_ERR_UNWILLING_TO_PERFORM 53โ the function required a transaction or call to a database that the database declined to perform. She simply said no. ๐#define LDB_ERR_LOOP_DETECT 54โ the function failed because it resulted in a loop being detected. Going in circles is not the vibe. ๐#define LDB_ERR_NAMING_VIOLATION 64โ the function failed because it would have violated a naming rule.#define LDB_ERR_OBJECT_CLASS_VIOLATION 65โ the function failed because it would have violated the schema.#define LDB_ERR_NOT_ALLOWED_ON_NON_LEAF 66โ the function required an operation that is only allowed on leaf objects, but the object is not a leaf. Only leaves get this treatment. ๐#define LDB_ERR_NOT_ALLOWED_ON_RDN 67โ the function required an operation that cannot be performed on a Relative DN, but the object is a Relative DN. Not allowed on a Relative DN, periodt.#define LDB_ERR_ENTRY_ALREADY_EXISTS 68โ the function failed because the entry already exists. She's already here, babe. โจ#define LDB_ERR_OBJECT_CLASS_MODS_PROHIBITED 69โ the function failed because modifications to an object class are not allowable. No edits, no notes. ๐ซ#define LDB_ERR_AFFECTS_MULTIPLE_DSAS 71โ the function failed because it needed to be applied to multiple databases. It's giving "this affects everyone", messy. ๐ญ#define LDB_ERR_OTHER 80โ the function failed for unknown reasons. Mystery era. ๐ฎ
๐ Detailed Description ๐
This header provides a set of result codes for LDB function calls.
Many LDB function calls return an integer value (int). As shown in the function documentation, those return values may indicate whether the function call worked correctly (in which case it returns LDB_SUCCESS) or some problem occurred (in which case some other value will be returned). As a special case, LDB_ERR_COMPARE_FALSE or LDB_ERR_COMPARE_TRUE may be returned, which does not indicate an error. So don't panic, those two are just reporting the comparison result. ๐ซถ
๐ Note ๐
Not all error codes make sense for LDB, however they are based on the LDAP error codes, and are kept for reference and to avoid overlap. iykyk.
Some of this documentation is based on information in the OpenLDAP documentation, as developed and maintained by the The OpenLDAP Project. Credit where credit is due, we love a documented source. ๐
โจ Macro Definition Documentation โจ
okay so these are all the #define result codes LDB can throw at you, bestie โ every single one is here, no skipping, fr fr. if a function returns one of these, this is the tea โ๐
#define LDB_ERR_ADMIN_LIMIT_EXCEEDED 11โ the function failed because an administrative or policy limit was exceeded. ๐#define LDB_ERR_AFFECTS_MULTIPLE_DSAS 71โ the function failed because it needed to be applied to multiple databases. ๐๏ธ#define LDB_ERR_ALIAS_DEREFERENCING_PROBLEM 36โ the function needed to dereference an alias, and something went wrong during the dereferencing process. ๐ญ#define LDB_ERR_ALIAS_PROBLEM 33โ the function referred to an alias that points to a non-existent object in the database. ๐ป#define LDB_ERR_ATTRIBUTE_OR_VALUE_EXISTS 20โ the function involved an attribute type or attribute value that already exists in the entry. โจ#define LDB_ERR_AUTH_METHOD_NOT_SUPPORTED 7โ the function used an authentication method that is not supported by the database. ๐ซ#define LDB_ERR_BUSY 51โ the function required a transaction or call that the database could not perform because it is busy. ๐#define LDB_ERR_COMPARE_FALSE 5โ the function was for value comparison, and the comparison operation returned false. โ
Note: this is a status value, and it doesn't normally indicate an error. ๐ซถ
#define LDB_ERR_COMPARE_TRUE 6โ the function was for value comparison, and the comparison operation returned true. โ
Note: this is a status value, and it doesn't normally indicate an error. ๐ซถ
#define LDB_ERR_CONFIDENTIALITY_REQUIRED 13โ the function involved a transaction or database operation that could not be performed without a secure link. ๐#define LDB_ERR_CONSTRAINT_VIOLATION 19โ the function would have violated an attribute constraint. ๐ง#define LDB_ERR_ENTRY_ALREADY_EXISTS 68โ the function failed because the entry already exists. ๐ฆ#define LDB_ERR_INAPPROPRIATE_AUTHENTICATION 48โ the function passed in the wrong authentication method. ๐#define LDB_ERR_INAPPROPRIATE_MATCHING 18โ the function required a filter type that is not available for the specified attribute. ๐#define LDB_ERR_INSUFFICIENT_ACCESS_RIGHTS 50โ the function required access permissions that the user does not possess. ๐ช#define LDB_ERR_INVALID_ATTRIBUTE_SYNTAX 21โ the function used an invalid attribute value โ incorrect syntax, bestie. ๐คจ#define LDB_ERR_INVALID_CREDENTIALS 49โ the function passed in or referenced incorrect credentials during authentication. ๐#define LDB_ERR_INVALID_DN_SYNTAX 34โ the function used a DN which was invalid โ incorrect syntax. ๐#define LDB_ERR_LOOP_DETECT 54โ the function failed because it resulted in a loop being detected. ๐#define LDB_ERR_NAMING_VIOLATION 64โ the function failed because it would have violated a naming rule. ๐ท๏ธ#define LDB_ERR_NO_SUCH_ATTRIBUTE 16โ the function referred to an attribute type that is not present in the entry. ๐ซฅ#define LDB_ERR_NO_SUCH_OBJECT 32โ the function referred to an object that does not exist in the database. ๐ณ๏ธ#define LDB_ERR_NOT_ALLOWED_ON_NON_LEAF 66โ the function required an operation that is only allowed on leaf objects, but the object is not a leaf. ๐#define LDB_ERR_NOT_ALLOWED_ON_RDN 67โ the function required an operation that cannot be performed on a Relative DN, but the object is a Relative DN. ๐ฟ#define LDB_ERR_OBJECT_CLASS_MODS_PROHIBITED 69โ the function failed because modifications to an object class are not allowable. ๐ซ#define LDB_ERR_OBJECT_CLASS_VIOLATION 65โ the function failed because it would have violated the schema. ๐#define LDB_ERR_OPERATIONS_ERROR 1โ the function call failed for some non-specific reason. โ#define LDB_ERR_OTHER 80โ the function failed for unknown reasons. ๐คท#define LDB_ERR_PROTOCOL_ERROR 2โ the function call failed because of a protocol violation. ๐ก#define LDB_ERR_REFERRAL 10โ the function resulted in a referral to another server. ๐ฌ#define LDB_ERR_SASL_BIND_IN_PROGRESS 14โ this is an intermediate result code for SASL bind operations that have more than one step. โณ
Note: this is a result code that does not normally indicate an error has occurred. ๐
#define LDB_ERR_SIZE_LIMIT_EXCEEDED 4โ the function call failed because a size limit was exceeded. ๐#define LDB_ERR_STRONG_AUTH_REQUIRED 8โ the function call required an underlying operation that required strong authentication. This will normally only occur if you are using LDB with a LDAP backend. ๐ก๏ธ#define LDB_ERR_TIME_LIMIT_EXCEEDED 3โ the function call failed because a time limit was exceeded. โฐ#define LDB_ERR_UNAVAILABLE 52โ the function required a transaction or call to a database that is not available. ๐ด#define LDB_ERR_UNDEFINED_ATTRIBUTE_TYPE 17โ the function referred to an attribute type that is invalid. ๐ง#define LDB_ERR_UNSUPPORTED_CRITICAL_EXTENSION 12โ the function required an extension or capability that the database cannot provide. ๐งฉ#define LDB_ERR_UNWILLING_TO_PERFORM 53โ the function required a transaction or call to a database that the database declined to perform. ๐#define LDB_SUCCESS 0โ the function call succeeded. If a function returnsLDB_SUCCESS, then that function, and the underlying transactions that may have been required, completed successfully. ๐- Examples:
ldbreader.c. ๐
- Examples:
๐ Author ๐
Generated automatically by Doxygen for LDB from the source code. ๐ค
okay bestie, that's the whole list ๐ source/version: LDB โ page: include/ldb_errors.h(3) โ the footer didn't show a date, so no date to spill, but the vibes are immaculate. ๐ซถ
๐ฆ where this page comes from
- fedora 43: libldb-devel 2:4.23.1-1.fc43 ยท LGPL-3.0-or-later
- fedora 43: libldb-devel 2:4.23.1-1.fc43 ยท LGPL-3.0-or-later
- fedora 43: libldb-devel 2:4.23.12-1.fc43 ยท LGPL-3.0-or-later
- fedora 43: libldb-devel 2:4.23.12-1.fc43 ยท LGPL-3.0-or-later
- fedora 44: libldb-devel 2:4.24.0-6.fc44 ยท LGPL-3.0-or-later
- fedora 44: libldb-devel 2:4.24.0-6.fc44 ยท LGPL-3.0-or-later
- fedora 44: libldb-devel 2:4.24.7-1.fc44 ยท LGPL-3.0-or-later
- fedora 44: libldb-devel 2:4.24.7-1.fc44 ยท LGPL-3.0-or-later
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms