Remove direct caller of secrets_fetch_trusted_domain_password().
[samba.git] / source / passdb / lookup_sid.c
index c7ffe5f1c819446a888c034f3e53e7d13f90e7a1..f5b03ffff06bcd74fa7c1bf454f29214c6e8aaf3 100644 (file)
@@ -191,7 +191,7 @@ bool lookup_name(TALLOC_CTX *mem_ctx,
               this, tested an XP workstation in a NT domain -- vl */
 
        if ((flags & LOOKUP_NAME_REMOTE) && IS_DC &&
-           (secrets_fetch_trusted_domain_password(name, NULL, &sid, NULL)))
+           (pdb_get_trusteddom_pw(name, NULL, &sid, NULL)))
        {
                /* Swap domain and name */
                tmp = name; name = domain; domain = tmp;