s3-lsa: Fix typo and use right pdb interface
authorSumit Bose <sbose@redhat.com>
Fri, 3 Jun 2011 13:31:40 +0000 (15:31 +0200)
committerGünther Deschner <gd@samba.org>
Wed, 31 Aug 2011 09:34:25 +0000 (11:34 +0200)
Signed-off-by: Günther Deschner <gd@samba.org>
source3/rpc_server/lsa/srv_lsa_nt.c

index 2843162f094d9a8c3132d713fbd204664d102100..02da5e3b42cb3b61c8e2c9a7d8fdb17f57845e92 100644 (file)
@@ -1862,7 +1862,7 @@ NTSTATUS _lsa_CreateTrustedDomainEx2(struct pipes_struct *p,
                                          psd,
                                          r->out.trustdom_handle);
        if (!NT_STATUS_IS_OK(status)) {
-               pdb_del_trusteddom_pw(r->in.info->netbios_name.string);
+               pdb_del_trusted_domain(r->in.info->netbios_name.string);
                return NT_STATUS_OBJECT_NAME_NOT_FOUND;
        }