mirror of
https://github.com/samba-team/samba.git
synced 2025-01-12 09:18:10 +03:00
s4-schema: added dsdb_attribute_by_lDAPDisplayName_ldb_val
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
parent
cd65ce8a18
commit
f7517e6256
@ -100,6 +100,18 @@ const struct dsdb_attribute *dsdb_attribute_by_lDAPDisplayName(const struct dsdb
|
||||
return c;
|
||||
}
|
||||
|
||||
const struct dsdb_attribute *dsdb_attribute_by_lDAPDisplayName_ldb_val(const struct dsdb_schema *schema,
|
||||
const struct ldb_val *name)
|
||||
{
|
||||
struct dsdb_attribute *a;
|
||||
|
||||
if (!name) return NULL;
|
||||
|
||||
BINARY_ARRAY_SEARCH_P(schema->attributes_by_lDAPDisplayName,
|
||||
schema->num_attributes, lDAPDisplayName, name, strcasecmp_with_ldb_val, a);
|
||||
return a;
|
||||
}
|
||||
|
||||
const struct dsdb_attribute *dsdb_attribute_by_linkID(const struct dsdb_schema *schema,
|
||||
int linkID)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user