We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ca6279e commit 88ece70Copy full SHA for 88ece70
src/uk/ac/swansea/eduroamcat/WifiConfigAPI18.java
@@ -237,9 +237,12 @@ else if (aAuth.getInnerNonEAPType()==0) {
237
238
//just identity for TLS
239
if (aAuth.getOuterEAPType()==13) {
240
- if (userName.length()==0) userName=aAuth.getClientPrivateKeySubjectCN();
241
- enterpriseConfig.setIdentity(userName);
242
- debug("Using Username:"+userName);
+ if (userName!=null)
+ if (userName.length()==0) if ( aAuth.getClientPrivateKeySubjectCN() != null && aAuth.getClientPrivateKeySubjectCN().length()>0) {
+ userName = aAuth.getClientPrivateKeySubjectCN();
243
+ enterpriseConfig.setIdentity(userName);
244
+ debug("Using Username:" + userName);
245
+ }
246
}
247
248
selectedConfig.enterpriseConfig=enterpriseConfig;
0 commit comments