s3-winbindd: remove unused fill_domain_username()
authorGünther Deschner <gd@samba.org>
Tue, 8 May 2018 09:19:42 +0000 (11:19 +0200)
committerKarolin Seeger <kseeger@samba.org>
Wed, 20 Jun 2018 07:22:24 +0000 (09:22 +0200)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=13437

Guenther

Signed-off-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
(cherry picked from commit b24d4eb7afad82afc3a9bab65e1d799edc4b5172)

source3/winbindd/winbindd_proto.h
source3/winbindd/winbindd_util.c

index 95f24d2c27948a384b62e5ad82f4f2c7445dff99..85cd50b8ed77d0f85f626c6a447742ce6c346210 100644 (file)
@@ -485,7 +485,6 @@ bool canonicalize_username(fstring username_inout,
                           fstring namespace,
                           fstring domain,
                           fstring user);
-void fill_domain_username(fstring name, const char *domain, const char *user, bool can_assume);
 char *fill_domain_username_talloc(TALLOC_CTX *ctx,
                                  const char *domain,
                                  const char *user,
index c2ec164e143d463ab23780afecd76e6f5b0a548c..aa633419c9ae8c5f35c18e6ba403fd1e0483067b 100644 (file)
@@ -1650,26 +1650,6 @@ bool canonicalize_username(fstring username_inout,
 
     We always canonicalize as UPPERCASE DOMAIN, lowercase username.
 */
-void fill_domain_username(fstring name, const char *domain, const char *user, bool can_assume)
-{
-       fstring tmp_user;
-
-       if (lp_server_role() == ROLE_ACTIVE_DIRECTORY_DC) {
-               can_assume = false;
-       }
-
-       fstrcpy(tmp_user, user);
-       (void)strlower_m(tmp_user);
-
-       if (can_assume && assume_domain(domain)) {
-               strlcpy(name, tmp_user, sizeof(fstring));
-       } else {
-               slprintf(name, sizeof(fstring) - 1, "%s%c%s",
-                        domain, *lp_winbind_separator(),
-                        tmp_user);
-       }
-}
-
 /**
  * talloc version of fill_domain_username()
  * return NULL on talloc failure.