1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

s3:idmap_ldap: rename idmap_ldap_get_new_id to idmap_ldap_allocate_id

This is in preparation of allowing allocating ldap based domain-specific configs.
This commit is contained in:
Michael Adam 2011-06-01 00:25:23 +02:00
parent 2de65b97b9
commit dea3ef1ab6

View File

@ -391,15 +391,15 @@ done:
* For now this is for the default idmap domain only.
* Should be extended later on.
*/
static NTSTATUS idmap_ldap_get_new_id(struct idmap_domain *dom,
struct unixid *id)
static NTSTATUS idmap_ldap_allocate_id(struct idmap_domain *dom,
struct unixid *id)
{
NTSTATUS ret;
if (!strequal(dom->name, "*")) {
DEBUG(3, ("idmap_ldap_get_new_id: "
DEBUG(3, ("idmap_ldap_allocate_id: "
"Refusing allocation of a new unixid for domain'%s'. "
"Currently only supported for the default "
"This is only supported for the default "
"domain \"*\".\n",
dom->name));
return NT_STATUS_NOT_IMPLEMENTED;
@ -484,7 +484,7 @@ static NTSTATUS idmap_ldap_db_init(struct idmap_domain *dom)
ctx->rw_ops = talloc_zero(ctx, struct idmap_rw_ops);
CHECK_ALLOC_DONE(ctx->rw_ops);
ctx->rw_ops->get_new_id = idmap_ldap_get_new_id;
ctx->rw_ops->get_new_id = idmap_ldap_allocate_id;
ctx->rw_ops->set_mapping = idmap_ldap_set_mapping;
ret = smbldap_init(ctx, winbind_event_context(), ctx->url,
@ -1144,7 +1144,7 @@ static struct idmap_methods idmap_ldap_methods = {
.init = idmap_ldap_db_init,
.unixids_to_sids = idmap_ldap_unixids_to_sids,
.sids_to_unixids = idmap_ldap_sids_to_unixids,
.allocate_id = idmap_ldap_get_new_id,
.allocate_id = idmap_ldap_allocate_id,
};
NTSTATUS idmap_ldap_init(void);