mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
s3:idmap: remove (now) unneeded function parse_idmap_module()
This commit is contained in:
parent
efc1d38b32
commit
ae5d35b09e
@ -153,44 +153,6 @@ NTSTATUS smb_register_idmap(int version, const char *name,
|
||||
return NT_STATUS_OK;
|
||||
}
|
||||
|
||||
static bool parse_idmap_module(TALLOC_CTX *mem_ctx, const char *param,
|
||||
char **pmodulename, char **pargs)
|
||||
{
|
||||
char *modulename;
|
||||
char *args;
|
||||
|
||||
if (strncmp(param, "idmap_", 6) == 0) {
|
||||
param += 6;
|
||||
DEBUG(1, ("idmap_init: idmap backend uses deprecated "
|
||||
"'idmap_' prefix. Please replace 'idmap_%s' by "
|
||||
"'%s'\n", param, param));
|
||||
}
|
||||
|
||||
modulename = talloc_strdup(mem_ctx, param);
|
||||
if (modulename == NULL) {
|
||||
return false;
|
||||
}
|
||||
|
||||
args = strchr(modulename, ':');
|
||||
if (args == NULL) {
|
||||
*pmodulename = modulename;
|
||||
*pargs = NULL;
|
||||
return true;
|
||||
}
|
||||
|
||||
*args = '\0';
|
||||
|
||||
args = talloc_strdup(mem_ctx, args+1);
|
||||
if (args == NULL) {
|
||||
TALLOC_FREE(modulename);
|
||||
return false;
|
||||
}
|
||||
|
||||
*pmodulename = modulename;
|
||||
*pargs = args;
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initialize a domain structure
|
||||
* @param[in] mem_ctx memory context for the result
|
||||
|
Loading…
Reference in New Issue
Block a user