locked
MprAdminGetPDCServer function fails on Windows Server 2008 RRS feed

  • Question

  • The function MprAdminGetPDCServer does not return a valid RAS server name on Windows Server 2008 (SP 1). If the function is called with a valid domain name on a Windows Server 2008 Primary Domain Controller, i.e.

     

     MprAdminGetPDCServer("test.local", NULL, pRasServer)
     
    it returns NO_ERROR and the parameter pRasServer is filled with "\\server.test.".

     

    The domain consists only of one PDC, "server.test.local". The same problem occurs in a subdomain, where also the suffix of the domain name is missing, i.e. "\\server.sub.test.".

     

    On a Windows Server 2000, 2003 and 2003 R2 the function returns the RAS server correctly, eg. "\\server.test.local".

     

    Has anyone an idea, what is going wrong?

     

    Thanks in advance.

    Wednesday, November 12, 2008 10:01 AM

All replies

  •  

    Hi,

    You may want to visit the links below which might be helpful for you –

    http://msdn.microsoft.com/en-us/library/aa374570.aspx

    http://msdn.microsoft.com/en-us/library/aa446719(VS.85).aspx

     

    Hope above helps.

    Thanks.

    Thursday, November 13, 2008 12:12 AM
  • Well, we did already check the available documentation carefully. We think it's either a bug in the API or something changed in Windows Server 2008 and the change is not documented.

     

    Is this forum the right place for our problem?

    Monday, November 17, 2008 9:11 AM
  • Here the solution.

    The function now limits the returned server name to the maximum length of Netbios names (UNCLEN or 17). Passing the Netbios name as first parameter, the function returns the Netbios RAS server name, that can be translated into the DNS format with the IADsNameTranslate Interface.

    Thursday, February 5, 2009 12:20 PM