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:
parent
8df92a44fc
commit
83ed9b52e7
@ -346,29 +346,6 @@ int ldapsam_search_suffix_by_name(struct ldapsam_privates *ldap_state,
|
|||||||
return ret;
|
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.
|
Run the search by SID.
|
||||||
******************************************************************/
|
******************************************************************/
|
||||||
|
Loading…
Reference in New Issue
Block a user