| /openbsd-src/usr.sbin/ldapd/ |
| H A D | auth.c | 92 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 D | modify.c | 195 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 D | ldape.c | 233 req->conn->binddn == NULL ? "" : req->conn->binddn); in ldap_unbind()
|
| H A D | conn.c | 80 free(conn->binddn); in conn_close()
|
| H A D | ldapd.h | 222 char *binddn; member
|
| /openbsd-src/libexec/login_ldap/ |
| H A D | bind.c | 40 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 D | login_ldap.c | 214 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 D | login_ldap.h | 48 char *binddn;/* bind dn for search, may be null */ member
|
| H A D | util.c | 244 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 D | aldap.c | 189 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 D | login_ldap.conf | 6 binddn=cn=admin,dc=openbsd,dc=org:\
|
| H A D | ypldap.conf | 13 binddn "cn=admin,dc=example,dc=com"
|
| /openbsd-src/regress/lib/libutil/ber/ |
| H A D | ber_test.c | 539 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 D | aldap.c | 189 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 D | aldap.c | 189 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()
|