Getting user's domain name



I'm having some strange problems with a VB.NET application that I support.


The application currently uses SystemInformation.UserName() and
SystemInformation.UserDomainName() to determine who is logged in, and what
network domain they are logged into.


And for our environment here (logged into a domain), it seems to work just
fine.


However, we have some German users (with a slightly different operating
system - basic Windows XP english vs Windows XP german with something called
the CAT client on it) that aren't getting the domain correctly, despite
being logged into the same domain as we are in the states.


When they run the application, it reports their domain as their computer
name, and not the domain.


I checked their system environment variables (manually, from a CMD window),
and even that confirmed that they were on the domain. But it's still not
reporting that to SystemInformation.UserDomainName()


I also tried the UserName/UserDomainName properties of the Environment
object, and got the same (incorrect) results.


Has anyone else dealt with anything like this? If so, what do I need to do
to get the correct domain?


Thanks!
-Scott


.



Relevant Pages

  • Re: Getting users domain name
    ... >> system - basic Windows XP english vs Windows XP german with something ... >> When they run the application, it reports their domain as their computer ... >> I checked their system environment variables (manually, ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Getting users domain name
    ... >> system - basic Windows XP english vs Windows XP german with something ... >> When they run the application, it reports their domain as their computer ... >> I checked their system environment variables (manually, ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Getting users domain name
    ... >> system - basic Windows XP english vs Windows XP german with something ... >> When they run the application, it reports their domain as their computer ... >> I checked their system environment variables (manually, ...
    (microsoft.public.dotnet.languages.vb)
  • Getting users domain name
    ... system - basic Windows XP english vs Windows XP german with something called ... it reports their domain as their computer ... I checked their system environment variables, ...
    (microsoft.public.dotnet.languages.vb)
  • Re: nss_ldap using sasl with gssapi. Kerberos credentials cache problem[Scanned]
    ... First get a Windows 200x environment with the RFC2307 extensions added to the Schema. ... Next assign all of your *real* Unix users with AD accounts - make the user names conform to the Posix rules (Windows samAccountName) i.e. 8 characters starting with a letter, ... A further enhancement would be to try to access the directory using this file if readable, and if that fails or if the file is not readable then use the KRB5CCNAME environment variable if set and if that fails use the users credentials cache if that exists. ...
    (Fedora)