ldap/servers/plugins/deref/deref.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
New commits:
commit 2dbbb9df4691590f788049a822c47eb501182c85
Author: Noriko Hosoi <nhosoi(a)redhat.com>
Date: Mon Aug 24 16:13:12 2015 -0700
Ticket #47757 - Unable to dereference unqiemember attribute because it is dn [#UID]
not dn syntax
Description: In addtion to DN syntax, adding Name and Optional UID
syntax to the deref attr's OID check.
https://fedorahosted.org/389/ticket/47757
Reviewed by mreynolds(a)redhat.com (Thank you, Mark!!)
diff --git a/ldap/servers/plugins/deref/deref.c b/ldap/servers/plugins/deref/deref.c
index 35c2564..f476a4d 100644
--- a/ldap/servers/plugins/deref/deref.c
+++ b/ldap/servers/plugins/deref/deref.c
@@ -20,6 +20,9 @@
#ifndef DN_SYNTAX_OID
#define DN_SYNTAX_OID "1.3.6.1.4.1.1466.115.121.1.12"
#endif
+#ifndef NAME_AND_OPTIONAL_UID_SYNTAX_OID
+#define NAME_AND_OPTIONAL_UID_SYNTAX_OID "1.3.6.1.4.1.1466.115.121.1.34"
+#endif
/*
* Plug-in globals
@@ -290,7 +293,7 @@ deref_check_for_dn_syntax(const char *derefattr)
slapi_attr_init(attr, derefattr);
slapi_attr_get_syntax_oid_copy(attr, &oid);
- ret = oid && !strcmp(oid, DN_SYNTAX_OID);
+ ret = oid && (!strcmp(oid, DN_SYNTAX_OID) || !strcmp(oid,
NAME_AND_OPTIONAL_UID_SYNTAX_OID));
slapi_ch_free_string(&oid);
slapi_attr_free(&attr);
}
--
389 commits mailing list
389-commits@%(host_name)s
http://lists.fedoraproject.org/postorius/389-commits@lists.fedoraproject.org