microsoft / service-fabric-issues

This repo is for the reporting of issues found with Azure Service Fabric.
168 stars 21 forks source link

Service Fabric User accounts 蠍欥⋧垙타軆펭磾괖꛿ffffffff #1658

Closed Chemlin closed 4 years ago

Chemlin commented 4 years ago

I have an on-premise installation of Service fabric and for some odd reason the user accounts have cryptic Chinese like characters.What could be causing this. I am running Windows Server 2016 Data Center.I know that on Azure the usernames appear proper like P_FSSUserffffffff.

Chemlin commented 4 years ago

@oanapl are you able to help on this one ?

oanapl commented 4 years ago

Which SF version are you using? The latest SF versions (7.0 CUx) should not create users at all. If you are on an older version and you still need to use NTML users, you should have FileStoreService GenerateV1CommonNameAccount settings false, so it doesn't create those names, but user-readable names. @JeongPyoHam can help.

JeongPyoHam commented 4 years ago

SF creates local user account in predefined name like P_FSSUser or in generated name. Names are generated when CommonName-based certificate is configured in FileStoreService section. For example, CommonName1Ntlmx509CommonName is set in cluster configuration. The Chinese letter is just visualization of the UI that does its best to find the character code from the locale. Service Fabric improved this in version 7.0 to prefix every account with "WF-" even in generated account names. Also, the letters in account name are chosen within printable ASCII range.