![]() |
SSH/Console login require full FQDN only, Want to change it to username or sAMACCOUNTNAME
Hello and thanks for having me.
I have been working on this problem for the last 2 week and not getting anywhere. Current I have a bunch of centos/redhat vm that I have built that are Domain join. Allowed users can long in but required to log in with their FQDN (username@domain.local). This is fine and all up until now. Due to some policy change I will need to setup 2 factor using radius. The radius server is all set and 2 factor is all set. The problem I am having is that it has issue with the FQDN. I need to somehow convert fqdn login to using username without the @domain.local. Any suggestion will be helpful. I am thinking I am missing something in either the sssd.config or/and nsswitch.conf Thanks |
Quote:
It's possible to work without specifying the username, Code:
ssh somedomain.com |
you can define hosts aliases in ~/.ssh/config:
Code:
Host yourshortcuthere |
Quote:
So, to do what the OP is asking, the "Host yourshortcuthere" would be the userid? (using the OPs example values...) Code:
Host username I suppose one could make the shortcuts username1, username2, etc. [Assumption that since there is "a bunch of" of VMs, there may be several remote hosts for each user] Then Code:
ssh username |
sorry, i realise now that my explanation fell a little short.
yes, for each unique "yourshortcuthere" defined, i can then use ssh like this: Code:
ssh yourshortcuthere it may not be an exact solution to op's problem. |
Quote:
Isnt there something or somewhat using SSsD.conf or nsswitch.conf to allow both form or tell it accept and search ad? |
ssh does not require the "USER@HOST" syntax, it is only the most convenient usage. There is also the usage
Code:
ssh -l USER hostname I would dive into the man pages and documentation, check logs, run some tests, and see if I can tell what is really going on here. |
Quote:
I checked with centos forum but nothing so far on their end either. I should open a ticket with redhat to see if they have any suggestion. |
I once saw a historic Unix OS from ~1974, and the entire internet was in /etc/hosts, which was 200kb, and dns didn't exist then. These days dns looks after the internet, but you still have name --> fqdn functionality in /etc/hosts Just copy an existing line with info in the same order, i.e.
<IPV4-address> <FQDN> <alias> |
Quote:
All I had to do was this in sssd.conf Code:
use_fully_qualified_names = False Code:
use_fully_qualified_names = True |
Quote:
maybe a picture can help. |
All times are GMT -5. The time now is 07:15 AM. |