s3:pdb_ldap remove unused function
authorChristian Ambach <ambi@samba.org>
Fri, 21 Sep 2012 20:54:47 +0000 (13:54 -0700)
committerChristian Ambach <ambi@samba.org>
Sat, 22 Sep 2012 02:28:37 +0000 (04:28 +0200)
Autobuild-User(master): Christian Ambach <ambi@samba.org>
Autobuild-Date(master): Sat Sep 22 04:28:37 CEST 2012 on sn-devel-104

source3/passdb/pdb_ldap.c

index b41f58bef8cf8b6a46b6d36cba89927b4ef26112..a5b8f0b18a1dd22be4d89b7a298616b02a0f931a 100644 (file)
@@ -346,29 +346,6 @@ int ldapsam_search_suffix_by_name(struct ldapsam_privates *ldap_state,
        return ret;
 }
 
-/*******************************************************************
- Run the search by rid.
-******************************************************************/
-
-static int ldapsam_search_suffix_by_rid (struct ldapsam_privates *ldap_state,
-                                        uint32_t rid, LDAPMessage ** result,
-                                        const char **attr)
-{
-       char *filter = NULL;
-       int rc;
-
-       filter = talloc_asprintf(talloc_tos(), "(&(rid=%i)%s)", rid,
-               get_objclass_filter(ldap_state->schema_ver));
-       if (!filter) {
-               return LDAP_NO_MEMORY;
-       }
-
-       rc = smbldap_search_suffix(ldap_state->smbldap_state,
-                       filter, attr, result);
-       TALLOC_FREE(filter);
-       return rc;
-}
-
 /*******************************************************************
  Run the search by SID.
 ******************************************************************/