diff options
author | Martin Hedenfal <martinh@cvs.openbsd.org> | 2010-07-21 17:32:13 +0000 |
---|---|---|
committer | Martin Hedenfal <martinh@cvs.openbsd.org> | 2010-07-21 17:32:13 +0000 |
commit | 89cef52a8d19313cefe68d5cf4e1c89dde746d7b (patch) | |
tree | d46420869e4d00aca925783ab7dfcdec9650a470 /usr.sbin/ypldap | |
parent | 77c168ca880b10908bcad3e593797ef474eda66b (diff) |
Search filter BER tags use a context-specific class, not an application
class. This allows ypldap to talk to ldapd, which otherwise refuses the
search filter.
ok gilles@
Diffstat (limited to 'usr.sbin/ypldap')
-rw-r--r-- | usr.sbin/ypldap/aldap.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/ypldap/aldap.c b/usr.sbin/ypldap/aldap.c index 09a7b3df83e..266b038f29d 100644 --- a/usr.sbin/ypldap/aldap.c +++ b/usr.sbin/ypldap/aldap.c @@ -1,5 +1,5 @@ -/* $Id: aldap.c,v 1.25 2010/07/21 14:45:59 gilles Exp $ */ -/* $OpenBSD: aldap.c,v 1.25 2010/07/21 14:45:59 gilles Exp $ */ +/* $Id: aldap.c,v 1.26 2010/07/21 17:32:12 martinh Exp $ */ +/* $OpenBSD: aldap.c,v 1.26 2010/07/21 17:32:12 martinh Exp $ */ /* * Copyright (c) 2008 Alexander Schrijver <aschrijver@openbsd.org> @@ -689,7 +689,7 @@ ldap_do_parse_search_filter(struct ber_element *prev, char **cpp) if ((elm = ber_add_set(prev)) == NULL) goto callfail; root = elm; - ber_set_header(elm, BER_CLASS_APP, type); + ber_set_header(elm, BER_CLASS_CONTEXT, type); if (*++cp != '(') /* opening `(` of filter */ goto syntaxfail; @@ -707,7 +707,7 @@ ldap_do_parse_search_filter(struct ber_element *prev, char **cpp) case '!': /* NOT */ if ((root = ber_add_sequence(prev)) == NULL) goto callfail; - ber_set_header(root, BER_CLASS_APP, LDAP_FILT_NOT); + ber_set_header(root, BER_CLASS_CONTEXT, LDAP_FILT_NOT); cp++; /* now points to sub-filter */ if ((elm = ldap_do_parse_search_filter(root, &cp)) == NULL) |