chase_referrals = yes
rebind = yes
+ # SASL Security Properties (see SASL_SECPROPS in ldap.conf man page).
+ # Note - uncomment when using GSS-API sasl mechanism along with TLS
+ # encryption against Active-Directory LDAP servers (this disables
+ # sealing and signing at the GSS level as required by AD).
+ #sasl_secprops = 'noanonymous,noplain,maxssf=0'
+
# Seconds to wait for LDAP query to finish. default: 20
res_timeout = 10
}
#endif /* HAVE_LDAP_START_TLS_S */
+ if (inst->sasl_secprops) {
+ do_ldap_option(LDAP_OPT_X_SASL_SECPROPS, "SASL_SECPROPS", inst->sasl_secprops);
+ }
+
status = rlm_ldap_bind(inst, NULL, &conn, conn->inst->admin_identity, conn->inst->admin_password,
&(conn->inst->admin_sasl), false);
if (status != LDAP_PROC_SUCCESS) {
ldap_sasl admin_sasl; //!< SASL parameters used when binding as the admin.
+ const char *sasl_secprops; //!< SASL Security Properties to set.
+
char const *dereference_str; //!< When to dereference (never, searching, finding, always)
int dereference; //!< libldap value specifying dereferencing behaviour.
{ "rebind", FR_CONF_OFFSET(PW_TYPE_BOOLEAN, rlm_ldap_t, rebind), NULL },
+ { "sasl_secprops", FR_CONF_OFFSET(PW_TYPE_STRING, rlm_ldap_t, sasl_secprops), NULL },
+
#ifdef LDAP_OPT_NETWORK_TIMEOUT
/* timeout on network activity */
{ "net_timeout", FR_CONF_OFFSET(PW_TYPE_INTEGER, rlm_ldap_t, net_timeout), "10" },