summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2012-02-23 14:46:45 -0800
committerJeremy Allison <jra@samba.org>2012-02-24 09:25:30 -0800
commit0e6213b1aeb0243dc5f1e2d989a621a76dc621aa (patch)
treef131083e1c79db5d15f323f25e88b5443fcff766
parent61953ab35a59611e307d684a5f8dfa165e95053d (diff)
downloadsamba-0e6213b1aeb0243dc5f1e2d989a621a76dc621aa.tar.gz
samba-0e6213b1aeb0243dc5f1e2d989a621a76dc621aa.tar.bz2
samba-0e6213b1aeb0243dc5f1e2d989a621a76dc621aa.zip
Remove unused function.
-rw-r--r--source3/utils/net_util.c21
1 files changed, 0 insertions, 21 deletions
diff --git a/source3/utils/net_util.c b/source3/utils/net_util.c
index d0f2dd7241..4c818f2f18 100644
--- a/source3/utils/net_util.c
+++ b/source3/utils/net_util.c
@@ -220,27 +220,6 @@ NTSTATUS connect_to_ipc_anonymous(struct net_context *c,
}
}
-/****************************************************************************
- Return malloced user@realm for krb5 login.
-****************************************************************************/
-
-static char *get_user_and_realm(const char *username)
-{
- char *user_and_realm = NULL;
-
- if (!username) {
- return NULL;
- }
- if (strchr_m(username, '@')) {
- user_and_realm = SMB_STRDUP(username);
- } else {
- if (asprintf(&user_and_realm, "%s@%s", username, lp_realm()) == -1) {
- user_and_realm = NULL;
- }
- }
- return user_and_realm;
-}
-
/**
* Connect a server and open a given pipe
*