DEF(STR, deref),
DEF(STR, scope),
DEF(STR, base),
- DEF(UINT, ldap_version),
+ DEF(UINT, version),
DEF(STR, debug_level),
DEF(STR, user_attrs),
DEF(STR, user_filter),
.deref = "never",
.scope = "subtree",
.base = "",
- .ldap_version = 3,
+ .version = 3,
.debug_level = "0",
.user_attrs = "homeDirectory=home,uidNumber=uid,gidNumber=gid",
.user_filter = "(&(objectClass=posixAccount)(uid=%u))",
}
#endif
- unsigned int ldap_version = conn->set->ldap_version;
- db_ldap_set_opt(conn->ld, LDAP_OPT_PROTOCOL_VERSION, &ldap_version,
- "protocol_version", dec2str(ldap_version));
+ db_ldap_set_opt(conn->ld, LDAP_OPT_PROTOCOL_VERSION,
+ &conn->set->version,
+ "protocol_version", dec2str(conn->set->version));
db_ldap_set_tls_options(conn);
}
if (conn->set->sasl_bind)
i_fatal("LDAP: ldap_sasl_bind=yes but no SASL support compiled in");
#endif
- if (conn->set->ldap_version < 3) {
+ if (conn->set->version < 3) {
if (conn->set->sasl_bind)
i_fatal("LDAP: ldap_sasl_bind=yes requires ldap_version=3");
if (conn->set->tls)