r19831: Big ldb_dn optimization and interfaces enhancement patch
[kamenim/samba.git] / source4 / param / secrets.c
index 876be607f1f1d1e2790227b63106417cb3d47918..a7eb9607de341a4bd0e77a4ce9027b818d41c80a 100644 (file)
@@ -141,7 +141,7 @@ struct dom_sid *secrets_get_domain_sid(TALLOC_CTX *mem_ctx,
        }
 
        ldb_ret = gendb_search(ldb, ldb,
-                              ldb_dn_explode(mem_ctx, SECRETS_PRIMARY_DOMAIN_DN), 
+                              ldb_dn_new(mem_ctx, ldb, SECRETS_PRIMARY_DOMAIN_DN), 
                               &msgs, attrs,
                               SECRETS_PRIMARY_DOMAIN_FILTER, domain);