Check for EAP credentials issue
-
Hello!
I want to check if
EAP
credentials are present (stored in the registry or not) when connecting to theEnterprise
wireless network from the imported profile using my program. I use this method:WlanSetProfileEapXmlUserData
for storing the user credentials. The imported profile only stores the wireless network xml data and not the username and password. So, what method fromWlan API
orQt API
should I use to verify that the user credentials are present for the specific wireless profile? I only need information. Thanks. -
@Cobra91151 said in Decode GUID issue:
How to convert it to get the QString?
What's wrong with QUuid::toByteArray() ?
-
Because I need to decode this data to make a comparison with some string data. Thanks.
-
@Cobra91151 You're aware that a QByteArray can be converted to a QString?
-
Yes, I know. The problem here is with the last parameter and comparison. I will fix it and reply. Thanks.
-
Ok. I updated my code. It only returns the
QString
representation of theGUID
not the the actual data from which it was created? Thanks. -
Since the uuid is properly defined I don't see why you can't remove '{' and '}'
-
I have changed it to:
QUuid testUuid("B8F9593C-8BB3-4F25-AB6B-FDFE299CEBAD");
but it still only returns theQString
representation of theGUID
. -
@Cobra91151 said in Decode GUID issue:
but it still only returns the QString representation of the GUID.
What representation do you expect/want? Please clarify your problem so that we can understand what your real problem is.
-
Ok. I will clarify it. I got this
GUID
from the registry path:Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WlanSvc\Profiles\{B8F9593C-8BB3-4F25-AB6B-FDFE299CEBAD}
It is created when connecting to the Enterprise wireless network. The reason to decode it: when I export the wlan profile, delete it and import it to the program, then it fails to connect using the imported profile because the user credentials are missing. So, I want to add checks for this issue and for example to display the dialog to enter the user credentials in such case. Thanks.
-
It looks like you don't understand what a UUID is. It's more or less a random number - there is nothing to decode in any way.
-
So, there is not way to decode the
GUID
? It is created from the profile name + something else by Microsoft. So, it does contain some information. The reason I know that because when removing thisGUID
and connect to the same wireless network on the same interface, then it creates the sameGUID
. Thanks. -
@Cobra91151 said in Decode GUID issue:
So, it does contain some information.
No. See https://en.wikipedia.org/wiki/Universally_unique_identifier
-
Ok. So how they generate the same
GUID
for the wireless profile on the same interface (wlan card) twice? If it is unique random numbers, then it should be different each time. What is the pattern for thisGUID
:{B8F9593C-8BB3-4F25-AB6B-FDFE299CEBAD}
? Thanks. -
@Cobra91151 said in Decode GUID issue:
So how they generate the same GUID for the wireless profile on the same interface (wlan card) twice?
If this is really the case then you have to ask the vendor.
-
Is there any
Qt API
to check for the user enterprise credentials are present or not in the system for the stored wireless profile? Thanks. -
I have updated my question, so it will contain the proper information regarding this issue.
-
Hello!
I have fixed the issue by checking for
wlan_notification_acm_network_available
code, from the MS docs (https://docs.microsoft.com/en-us/previous-versions/windows/desktop/legacy/ms706902(v=vs.85)):The
wlan_notification_acm_network_available
notification is sent when all of the following conditions occur:
The wireless service finds connectable networks after a scan
The interface is in the disconnected state;
There is no compatible auto-connect profile that the wireless service can use to connect.After a while when connecting to EAP profile without the user credentials it gets
wlan_notification_acm_network_available
code. Now the application intercepts it and send a notification to enter the user credentials. The issue is resolved.