1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-08 21:18:16 +03:00

s3:pdb_ldap remove unused function

Autobuild-User(master): Christian Ambach <ambi@samba.org>
Autobuild-Date(master): Sat Sep 22 04:28:37 CEST 2012 on sn-devel-104
This commit is contained in:
Christian Ambach 2012-09-21 13:54:47 -07:00
parent 8df92a44fc
commit 83ed9b52e7

View 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.
******************************************************************/