Lines Matching refs:dn
549 static int mod_authn_ldap_bind(log_error_st *errh, LDAP *ld, const char *dn, const char *pw) { in mod_authn_ldap_bind() argument
563 ret = ldap_sasl_bind_s(ld,dn,LDAP_SASL_SIMPLE,&creds,NULL,NULL,NULL); in mod_authn_ldap_bind()
641 char *dn; in mod_authn_ldap_get_dn() local
667 if (NULL == (dn = ldap_get_dn(ld, first))) { in mod_authn_ldap_get_dn()
674 return dn; in mod_authn_ldap_get_dn()
715 char *dn; in mod_authn_ldap_basic() local
736 dn = ldap_filter->ptr; in mod_authn_ldap_basic()
752 dn = mod_authn_ldap_get_dn(errh, p->conf.ldc, in mod_authn_ldap_basic()
754 if (NULL == dn) return HANDLER_ERROR; in mod_authn_ldap_basic()
795 if (LDAP_SUCCESS != mod_authn_ldap_bind(errh, ld, dn, pw)) in mod_authn_ldap_basic()
806 rc = mod_authn_ldap_memberOf(errh,&p->conf,require,username,dn); in mod_authn_ldap_basic()
813 if (dn != ldap_filter->ptr) ldap_memfree(dn); in mod_authn_ldap_basic()