RE: User account management and information functions usage with trusted domains
From: Rhett Gong [MSFT] (v-raygon_at_online.microsoft.com)
Date: 11/15/05
- Next message: Rhett Gong [MSFT]: "RE: INTERACTIVE group missing after SSPI auth"
- Previous message: Jeffrey Tan[MSFT]: "Re: Diff b/w LUID and SID"
- In reply to: Sami J. Lehtinen: "User account management and information functions usage with trusted domains"
- Next in thread: Sami J. Lehtinen: "Re: User account management and information functions usage with trusted domains"
- Reply: Sami J. Lehtinen: "Re: User account management and information functions usage with trusted domains"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Tue, 15 Nov 2005 07:34:58 GMT
Hello Sami,
Based on my understanding, you would like to use NetUserGetInfo(), NetUserGetGroups() and NetUserGetLocalGroups() for user information to do authentication across
domain, but fails with the first call to DsGetDcName() and the error is ERROR_NO_SUCH_DOMAIN.
If you make sure you have successfully configured SJL2K3D and SJL2KD trusted each other, you can use following call from sjlvpcws2003 to discover SJL2K3D's dc.
DWORD DsGetDcName(
LPCTSTR ComputerName, // null
LPCTSTR DomainName, // SJL2K3D
//.....
ULONG Flags, // you may use DS_AVOID_SELF|DS_FORCE_REDISCOVERY
//.....
)
In my test env, it works fine for me. Please test it and let me know your result.
In addition, since you want to authenticate a user again a domain, I would like to recommend you use LogonUser, since this function is made for authentication directly and
easy to use.
Thanks,
Rhett Gong [MSFT]
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
http://support.microsoft.com/default.aspx?scid=/servicedesks/msdn/nospam.asp&SD=msdn
This posting is provided "AS IS" with no warranties and confers no rights.
- Next message: Rhett Gong [MSFT]: "RE: INTERACTIVE group missing after SSPI auth"
- Previous message: Jeffrey Tan[MSFT]: "Re: Diff b/w LUID and SID"
- In reply to: Sami J. Lehtinen: "User account management and information functions usage with trusted domains"
- Next in thread: Sami J. Lehtinen: "Re: User account management and information functions usage with trusted domains"
- Reply: Sami J. Lehtinen: "Re: User account management and information functions usage with trusted domains"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|