1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00

r25749: Add function required by linked_attributes module.

Andrew Bartlett
(This used to be commit cd64094787)
This commit is contained in:
Andrew Bartlett 2007-10-29 11:11:36 +01:00 committed by Stefan Metzmacher
parent fa5c16944e
commit bb96624d68

View File

@ -907,6 +907,21 @@ const struct dsdb_attribute *dsdb_attribute_by_lDAPDisplayName(const struct dsdb
return NULL;
}
const struct dsdb_attribute *dsdb_attribute_by_linkID(const struct dsdb_schema *schema,
int linkID)
{
struct dsdb_attribute *cur;
/* TODO: add binary search */
for (cur = schema->attributes; cur; cur = cur->next) {
if (cur->linkID != linkID) continue;
return cur;
}
return NULL;
}
const struct dsdb_class *dsdb_class_by_governsID_id(const struct dsdb_schema *schema,
uint32_t id)
{