View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0005034 | JEDI Code Library | JclSysInfo | public | 2009-11-23 14:13 | 2009-12-08 22:29 |
Reporter | HeikoAdams | Assigned To | outchy | ||
Priority | normal | Severity | major | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Platform | Desktop Workstation | OS | Windows 7 | OS Version | |
Product Version | Version 2.1 | ||||
Target Version | Fixed in Version | Version 2.2 | |||
Summary | 0005034: Result of GetDomainName is not reliable | ||||
Description | The result of GetDomainName is not reliable if the current username is used on domain- and local-user-account. In this case it is possible that GetDomainName return the workstation-name as domain-name. | ||||
Additional Information | I've attached a modified version of JclSysInfo.pas in which GetDomainName no longer calls GetUserDomainName but calls LookupAccountSid. My modifications are marked with "//091123 HA" | ||||
Tags | Jcl, JclSysInfo | ||||
Fixed in GIT commit | |||||
Fixed in SVN revision | 3088 | ||||
IDE version | BDS 2006 | ||||
2009-11-23 14:13
|
JclSysInfo.pas (202,498 bytes) |
|
(posted by the reporter in the JCL newsgroups) I've found a solution on google groups[1] which uses LookupAccountSID and seems to work fine. [1] http://www.google.com/url?url=http://groups.google.de/g/e1a7fef6/t/5a51c6cbf2dd97d3/d/25f699351222a88e%3Fhl%3Dde%26ie%3DUTF-8%26oe%3Dutf-8%26q%3Ddelphi%2BLookupAccountSid%2325f699351222a88e&ei=uIMKS_e6AongQv7V5eIC&sa=t&ct=res&cd=3&source=groups&usg=AFQjCNHbRfIcRAogA_mlMlYxjuA8ew1G-w |
|
Your patch is applied in revision 3088. Thanks for you help. |
|
The Patch works fine in my apps since 2009-11-23 and I didn't get any negative feedback yet. |
Date Modified | Username | Field | Change |
---|---|---|---|
2009-11-23 14:13 | HeikoAdams | New Issue | |
2009-11-23 14:13 | HeikoAdams | File Added: JclSysInfo.pas | |
2009-11-23 14:13 | HeikoAdams | IDE version | => BDS 2006 |
2009-11-23 14:13 | HeikoAdams | Tag Attached: Jcl | |
2009-11-23 14:13 | HeikoAdams | Tag Attached: JclSysInfo | |
2009-11-23 20:43 | outchy | Note Added: 0016899 | |
2009-11-25 22:49 | outchy | Note Added: 0016909 | |
2009-11-25 22:49 | outchy | Assigned To | => outchy |
2009-11-25 22:49 | outchy | Status | new => feedback |
2009-11-26 10:11 | HeikoAdams | Note Added: 0016912 | |
2009-12-08 22:29 | outchy | Fixed in revision | => 3088 |
2009-12-08 22:29 | outchy | Status | feedback => resolved |
2009-12-08 22:29 | outchy | Fixed in Version | => Version 2.2 (Subversion repository/Daily zips) |
2009-12-08 22:29 | outchy | Resolution | open => fixed |
2010-01-06 14:40 | outchy | Relationship added | parent of 0005092 |