Suggestion: Add macros for constants... (and use them). ie: #define LDAP_SCHEMA_YES 1 #define LDAP_SCHEMA_NO 0 #define LDAP_SCHEMA_USER_APPLICATIONS 0 . . . #define LDAP_SCHEMA_ABSTRACT 0