r12169: Remove an unused function
authorVolker Lendecke <vlendec@samba.org>
Sat, 10 Dec 2005 23:29:39 +0000 (23:29 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 16:05:47 +0000 (11:05 -0500)
(This used to be commit 209e4f8793fe9375fc6af1aedb5bd1fe57193bbc)

source3/lib/util_sid.c

index 92bc2fb89311b84c0ed8cd80f823c11a39c95b8a..b94be474a9ee9902dcc25d6440c39c3046b316af 100644 (file)
@@ -156,41 +156,6 @@ const char *get_global_sam_name(void)
        return global_myname();
 }
 
-/**************************************************************************
- Splits a name of format \DOMAIN\name or name into its two components.
- Sets the DOMAIN name to global_myname() if it has not been specified.
-***************************************************************************/
-
-void split_domain_name(const char *fullname, char *domain, char *name)
-{
-       pstring full_name;
-       const char *sep;
-       char *p;
-
-       sep = lp_winbind_separator();
-
-       *domain = *name = '\0';
-
-       if (fullname[0] == sep[0] || fullname[0] == '\\')
-               fullname++;
-
-       pstrcpy(full_name, fullname);
-       p = strchr_m(full_name+1, '\\');
-       if (!p) p = strchr_m(full_name+1, sep[0]);
-
-       if (p != NULL) {
-               *p = 0;
-               fstrcpy(domain, full_name);
-               fstrcpy(name, p+1);
-       } else {
-               fstrcpy(domain, get_global_sam_name());
-               fstrcpy(name, full_name);
-       }
-
-       DEBUG(10,("split_domain_name:name '%s' split into domain :'%s' and user :'%s'\n",
-                       fullname, domain, name));
-}
-
 /*****************************************************************
  Convert a SID to an ascii string.
 *****************************************************************/