git.samba.org
/
martins
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fa5c169
)
r25749: Add function required by linked_attributes module.
author
Andrew Bartlett
<abartlet@samba.org>
Mon, 29 Oct 2007 10:11:36 +0000
(11:11 +0100)
committer
Stefan Metzmacher
<metze@samba.org>
Fri, 21 Dec 2007 04:43:42 +0000
(
05:43
+0100)
Andrew Bartlett
(This used to be commit
cd6409478744b9755c3a048d8d411dbe99f977f0
)
source4/dsdb/schema/schema_init.c
patch
|
blob
|
history
diff --git
a/source4/dsdb/schema/schema_init.c
b/source4/dsdb/schema/schema_init.c
index e8c8d49f5e8899a26e75915b0e9019d7afddf5d5..5ca0e6d47ee4d7ea02dfd558789c6c7a2e03130c 100644
(file)
--- a/
source4/dsdb/schema/schema_init.c
+++ b/
source4/dsdb/schema/schema_init.c
@@
-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)
{