summaryrefslogtreecommitdiffstats
path: root/source3/libads
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2010-11-16 19:22:17 +0100
committerVolker Lendecke <vl@samba.org>2010-11-20 14:42:44 +0100
commitda75c017624679354b3f3561c106ee0cef36c4bc (patch)
tree12a9280fef8780dd67818c85a57c1695df214c9d /source3/libads
parentd14cf7a50b8ef5740c82028da3eba3a9d7992b45 (diff)
downloadsamba-da75c017624679354b3f3561c106ee0cef36c4bc.tar.gz
samba-da75c017624679354b3f3561c106ee0cef36c4bc.tar.xz
samba-da75c017624679354b3f3561c106ee0cef36c4bc.zip
s3: Remove unused ads_get_attrname_by_oid
Diffstat (limited to 'source3/libads')
-rw-r--r--source3/libads/ldap_schema.c41
-rw-r--r--source3/libads/ldap_schema.h1
2 files changed, 0 insertions, 42 deletions
diff --git a/source3/libads/ldap_schema.c b/source3/libads/ldap_schema.c
index db5d35ec92a..51aac14906c 100644
--- a/source3/libads/ldap_schema.c
+++ b/source3/libads/ldap_schema.c
@@ -157,47 +157,6 @@ const char *ads_get_attrname_by_guid(ADS_STRUCT *ads,
}
-const char *ads_get_attrname_by_oid(ADS_STRUCT *ads, const char *schema_path, TALLOC_CTX *mem_ctx, const char * OID)
-{
- ADS_STATUS rc;
- int count = 0;
- LDAPMessage *res = NULL;
- char *expr = NULL;
- const char *attrs[] = { "lDAPDisplayName", NULL };
- char *result;
-
- if (ads == NULL || mem_ctx == NULL || OID == NULL) {
- goto failed;
- }
-
- expr = talloc_asprintf(mem_ctx, "(attributeId=%s)", OID);
- if (expr == NULL) {
- goto failed;
- }
-
- rc = ads_do_search_retry(ads, schema_path, LDAP_SCOPE_SUBTREE,
- expr, attrs, &res);
- if (!ADS_ERR_OK(rc)) {
- goto failed;
- }
-
- count = ads_count_replies(ads, res);
- if (count == 0 || !res) {
- goto failed;
- }
-
- result = ads_pull_string(ads, mem_ctx, res, "lDAPDisplayName");
- ads_msgfree(ads, res);
-
- return result;
-
-failed:
- DEBUG(0,("ads_get_attrname_by_oid: failed to retrieve name for oid: %s\n",
- OID));
-
- ads_msgfree(ads, res);
- return NULL;
-}
/*********************************************************************
*********************************************************************/
diff --git a/source3/libads/ldap_schema.h b/source3/libads/ldap_schema.h
index 2a8cec264d3..44964dd1c15 100644
--- a/source3/libads/ldap_schema.h
+++ b/source3/libads/ldap_schema.h
@@ -50,7 +50,6 @@ const char *ads_get_attrname_by_guid(ADS_STRUCT *ads,
const char *schema_path,
TALLOC_CTX *mem_ctx,
const struct GUID *schema_guid);
-const char *ads_get_attrname_by_oid(ADS_STRUCT *ads, const char *schema_path, TALLOC_CTX *mem_ctx, const char * OID);
ADS_STATUS ads_schema_path(ADS_STRUCT *ads, TALLOC_CTX *mem_ctx, char **schema_path);
ADS_STATUS ads_check_posix_schema_mapping(TALLOC_CTX *mem_ctx,
ADS_STRUCT *ads,