Re: Creating and verifying Domain trust programatically
From: Steven L Umbach (n9rou_at_nospam-comcast.net)
Date: 07/06/05
- Next message: Steven L Umbach: "Re: Creating and verifying Domain trust programatically"
- Previous message: Devesh Sarwate: "Creating and verifying Domain trust programatically"
- In reply to: Devesh Sarwate: "Creating and verifying Domain trust programatically"
- Next in thread: Steven L Umbach: "Re: Creating and verifying Domain trust programatically"
- Reply: Steven L Umbach: "Re: Creating and verifying Domain trust programatically"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Wed, 6 Jul 2005 01:13:35 -0500
I am not a programmer but possibly you could use the tool nltest to do what
you need. The links below explain more and may help point you in the right
direction. --- Steve
http://support.microsoft.com/?kbid=228477
http://www.microsoft.com/technet/prodtechnol/windowsserver2003/library/TechRef/ea7f8494-ee1e-4d99-b28f-8f2fd8a72df2.mspx
http://www.microsoft.com/technet/prodtechnol/windowsserver2003/library/TechRef/c694f7f1-e05a-474c-b02b-19a7575ed860.mspx
"Devesh Sarwate" <Devesh.Sarwate@gmail.com> wrote in message
news:OCR4Y%23cgFHA.3360@TK2MSFTNGP10.phx.gbl...
> Hi All,
> I need to implement the creation & verification of domain trusts
> programatically. I am currently using the LSA APIs
> (LsaQueryTrustedDomainInfoByName and LsaCreateTrustedDomainEx) for this
> purpose.
>
> In some cases I do not have the credentials for one of the domains to
> create the trust. In this case I would want to first verify if the trust
> is already in place between the two domains and if the trust is broken
> then I create one side of trust myself and ask the administrator for the
> other domain to create the other part of the trust.
>
> The problem is that for using the Lsa APIs to get the existing trust I
> need credentials for both the domains. Is there any way sueshot way of
> programatically validating domain trusts between two domains without
> having the credentials for one of the domains.
>
> This ought to be possible as the Domains and trusts MMC snapin does just
> this when I click on the validate button on trust properties page.
>
> Can some one explain what the click on the validate button does
> internally.
>
> Thanks
> Devesh
>
- Next message: Steven L Umbach: "Re: Creating and verifying Domain trust programatically"
- Previous message: Devesh Sarwate: "Creating and verifying Domain trust programatically"
- In reply to: Devesh Sarwate: "Creating and verifying Domain trust programatically"
- Next in thread: Steven L Umbach: "Re: Creating and verifying Domain trust programatically"
- Reply: Steven L Umbach: "Re: Creating and verifying Domain trust programatically"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]