From 2b1a50c2e537f690acd8eff1d0cf3102104144d3 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sun, 11 Apr 2010 22:38:33 +0200 Subject: s3: Move sanitize_username to lib/util_str.c --- source3/auth/auth_util.c | 8 -------- 1 file changed, 8 deletions(-) (limited to 'source3/auth') diff --git a/source3/auth/auth_util.c b/source3/auth/auth_util.c index f71ed90687..2cb02f4033 100644 --- a/source3/auth/auth_util.c +++ b/source3/auth/auth_util.c @@ -493,14 +493,6 @@ bool make_user_info_guest(struct auth_usersupplied_info **user_info) return NT_STATUS_IS_OK(nt_status) ? True : False; } -static char *sanitize_username(TALLOC_CTX *mem_ctx, const char *username) -{ - fstring tmp; - - alpha_strcpy(tmp, username, ". _-$", sizeof(tmp)); - return talloc_strdup(mem_ctx, tmp); -} - /*************************************************************************** Is the incoming username our own machine account ? If so, the connection is almost certainly from winbindd. -- cgit