New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
change slapi_entry_attr_get_bool to handle "on"/"off" values, support default value #945
Comments
Comment from nkinder (@nkinder) at 2013-11-23 02:34:20 What about handling "0" and "1"? |
Comment from rmeggins (@richm) at 2013-11-23 02:42:53 Replying to [comment:1 nkinder]:
ack |
Comment from nhosoi (@nhosoi) at 2014-02-11 08:13:27
slapi_entry_attr_get_bool already supports "on"/"off" and 0/non-zero. |
Comment from nhosoi (@nhosoi) at 2014-02-11 08:26:45 Description: Adding an API slapi_entry_attr_get_bool_ext, which is an |
Comment from nhosoi (@nhosoi) at 2014-02-11 08:27:37 git patch file (master) |
Comment from nkinder (@nkinder) at 2017-02-11 23:08:23 Metadata Update from @nkinder:
|
Cloned from Pagure issue: https://pagure.io/389-ds-base/issue/47608
slapi_entry_attr_get_bool only handles "true"/"false" and "yes"/"no" - should be extended to handle "on"/"off"
slapi_entry_attr_get_bool should return a given default value when the attribute is not present - right now it returns 0 (false) if attribute is not present
PRBool slapi_entry_attr_get_bool_ext(const Slapi_Entry *e, const char *type, PRBool default);
The text was updated successfully, but these errors were encountered: