Home
last modified time | relevance | path

Searched refs:binddn (Results 1 – 15 of 15) sorted by relevance

/openbsd-src/usr.sbin/ldapd/
H A Dauth.c92 if (conn->binddn == NULL) in aci_matches()
95 if (strcmp(dn, conn->binddn) != 0) in aci_matches()
97 } else if (strcmp(aci->subject, conn->binddn) != 0) in aci_matches()
121 if (conn->binddn != NULL) { in authorized()
123 strcasecmp(conn->binddn, conf->rootdn) == 0) in authorized()
126 strcasecmp(conn->binddn, ns->rootdn) == 0) in authorized()
139 conn->binddn ? conn->binddn : "any", in authorized()
255 ldap_auth_sasl(struct request *req, char *binddn, struct ber_element *params) in ldap_auth_sasl() argument
289 free(req->conn->binddn); in ldap_auth_sasl()
290 req->conn->binddn = NULL; in ldap_auth_sasl()
[all …]
H A Dmodify.c195 if (ober_add_string(set, req->conn->binddn ? req->conn->binddn : "") == NULL) in ldap_add()
368 ober_add_string(set, req->conn->binddn ? req->conn->binddn : ""); in ldap_modify()
H A Dldape.c233 req->conn->binddn == NULL ? "" : req->conn->binddn); in ldap_unbind()
H A Dconn.c80 free(conn->binddn); in conn_close()
H A Dldapd.h222 char *binddn; member
/openbsd-src/libexec/login_ldap/
H A Dbind.c40 bind_password(struct auth_ctx *ctx, char *binddn, char *bindpw) in bind_password() argument
44 if (aldap_bind(ctx->ld, binddn, bindpw) == -1) { in bind_password()
H A Dlogin_ldap.c214 if (!bind_password(&ctx, ctx.binddn, pass)) in auth_ldap()
216 ctx.userdn = ctx.binddn; in auth_ldap()
218 if (!bind_password(&ctx, ctx.binddn, ctx.bindpw)) in auth_ldap()
H A Dlogin_ldap.h48 char *binddn;/* bind dn for search, may be null */ member
H A Dutil.c244 free(ctx->binddn); in parse_conf()
245 if ((ctx->binddn = parse_filter(ctx, value)) == NULL) in parse_conf()
306 if (ctx->basedn == NULL && ctx->binddn == NULL) { in parse_conf()
H A Daldap.c189 aldap_bind(struct aldap *ldap, char *binddn, char *bindcred) in aldap_bind() argument
193 if (binddn == NULL) in aldap_bind()
194 binddn = ""; in aldap_bind()
202 LDAP_REQ_BIND, VERSION, binddn, bindcred, BER_CLASS_CONTEXT, in aldap_bind()
/openbsd-src/etc/examples/
H A Dlogin_ldap.conf6 binddn=cn=admin,dc=openbsd,dc=org:\
H A Dypldap.conf13 binddn "cn=admin,dc=example,dc=com"
/openbsd-src/regress/lib/libutil/ber/
H A Dber_test.c539 char *binddn = "cn=admin"; in test_ber_printf_elements_ldap_bind() local
559 binddn, bindcred, in test_ber_printf_elements_ldap_bind()
/openbsd-src/usr.sbin/ypldap/
H A Daldap.c189 aldap_bind(struct aldap *ldap, char *binddn, char *bindcred) in aldap_bind() argument
193 if (binddn == NULL) in aldap_bind()
194 binddn = ""; in aldap_bind()
202 LDAP_REQ_BIND, VERSION, binddn, bindcred, in aldap_bind()
/openbsd-src/usr.bin/ldap/
H A Daldap.c189 aldap_bind(struct aldap *ldap, char *binddn, char *bindcred) in aldap_bind() argument
193 if (binddn == NULL) in aldap_bind()
194 binddn = ""; in aldap_bind()
202 LDAP_REQ_BIND, VERSION, binddn, bindcred, BER_CLASS_CONTEXT, in aldap_bind()