include/ldb_errors.h(3)

๐Ÿ“ฆ
version 4.24.7 ยท 3 versions
, in fedora 43, fedora 44

๐Ÿ’– 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 returns LDB_SUCCESS, then that function, and the underlying transactions that may have been required, completed successfully. ๐ŸŽ‰
    • Examples: ldbreader.c. ๐Ÿ“–

๐ŸŒŸ 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. ๐Ÿซถ