diff options
author | Günther Deschner <gd@samba.org> | 2007-07-11 13:23:56 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:28:32 -0500 |
commit | fd8dc4b5610c840830a9498b16b69f56e6b73c31 (patch) | |
tree | 294f96863154bd8ace56b733bbfa485e5bc2c451 | |
parent | c252b04abf31c2cade71a83e8e6c650d7c41f80b (diff) | |
download | samba-fd8dc4b5610c840830a9498b16b69f56e6b73c31.tar.gz samba-fd8dc4b5610c840830a9498b16b69f56e6b73c31.tar.bz2 samba-fd8dc4b5610c840830a9498b16b69f56e6b73c31.zip |
r23835: Pass down a struct GUID to ads_get_attrname_by_guid() directly.
Guenther
(This used to be commit a4d5206d0bcbee713790834f119b182e0b419e8c)
-rw-r--r-- | source3/libads/ldap_schema.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/source3/libads/ldap_schema.c b/source3/libads/ldap_schema.c index 2672d88306..1cdd51faca 100644 --- a/source3/libads/ldap_schema.c +++ b/source3/libads/ldap_schema.c @@ -109,25 +109,20 @@ out: const char *ads_get_attrname_by_guid(ADS_STRUCT *ads, const char *schema_path, TALLOC_CTX *mem_ctx, - const char *schema_guid) + const struct GUID *schema_guid) { ADS_STATUS rc; LDAPMessage *res = NULL; char *expr = NULL; const char *attrs[] = { "lDAPDisplayName", NULL }; const char *result = NULL; - struct GUID guid; char *guid_bin = NULL; if (!ads || !mem_ctx || !schema_guid) { goto done; } - if (!NT_STATUS_IS_OK(GUID_from_string(schema_guid, &guid))) { - goto done; - } - - guid_bin = guid_binstring(&guid); + guid_bin = guid_binstring(schema_guid); if (!guid_bin) { goto done; } |