summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRafal Szczesniak <mimir@samba.org>2006-11-29 22:10:15 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:28:40 -0500
commit50821ebea329e2a2b719aca153d4af6cb2bf7f79 (patch)
treea7368d6a3678e7fe4348e063ee00995fac58d19f
parent853418653091a102be7201c455d7dcc6497187df (diff)
downloadsamba-50821ebea329e2a2b719aca153d4af6cb2bf7f79.tar.gz
samba-50821ebea329e2a2b719aca153d4af6cb2bf7f79.tar.bz2
samba-50821ebea329e2a2b719aca153d4af6cb2bf7f79.zip
r19956: remove unused function
rafal (This used to be commit 2b60090ca664bd99f6332ddd3541a22f89c74aab)
-rw-r--r--source4/libnet/libnet_user.c58
1 files changed, 0 insertions, 58 deletions
diff --git a/source4/libnet/libnet_user.c b/source4/libnet/libnet_user.c
index b215b1d8ae..e855fc2635 100644
--- a/source4/libnet/libnet_user.c
+++ b/source4/libnet/libnet_user.c
@@ -31,64 +31,6 @@
#include "libcli/security/security.h"
-/**
- * Verify, before actually doing anything with user accounts, whether
- * required domain is already opened and thus ready for operation.
- * If it is not, or if the opened domain is not the one requested, open
- * the requested domain.
- */
-static struct composite_context* domain_opened(struct libnet_context *ctx,
- const char *domain_name,
- struct composite_context *parent_ctx,
- struct libnet_DomainOpen *domain_open,
- void (*continue_fn)(struct composite_context*),
- void (*monitor)(struct monitor_msg*))
-{
- struct composite_context *domopen_req;
-
- if (domain_name == NULL) {
- /*
- * Try to guess the domain name from credentials,
- * if it's not been explicitly specified.
- */
-
- if (policy_handle_empty(&ctx->samr.handle)) {
- domain_open->in.domain_name = cli_credentials_get_domain(ctx->cred);
- domain_open->in.access_mask = SEC_FLAG_MAXIMUM_ALLOWED;
-
- } else {
- composite_error(parent_ctx, NT_STATUS_INVALID_PARAMETER);
- return parent_ctx;
- }
-
- } else {
- /*
- * The domain name has been specified, so check whether the same
- * domain is already opened. If it is - just return NULL. Start
- * opening a new domain otherwise.
- */
-
- if (policy_handle_empty(&ctx->samr.handle) ||
- !strequal(domain_name, ctx->samr.name)) {
- domain_open->in.domain_name = domain_name;
- domain_open->in.access_mask = SEC_FLAG_MAXIMUM_ALLOWED;
-
- } else {
- /* domain has already been opened and it's the same domain
- as requested */
- return NULL;
- }
- }
-
- /* send request to open the domain */
- domopen_req = libnet_DomainOpen_send(ctx, domain_open, monitor);
- if (composite_nomem(domopen_req, parent_ctx)) return parent_ctx;
-
- composite_continue(parent_ctx, domopen_req, continue_fn, parent_ctx);
- return parent_ctx;
-}
-
-
struct create_user_state {
struct libnet_CreateUser r;
struct libnet_DomainOpen domain_open;