Question about gecos for each server

View: New views
1 Messages — Rating Filter:   Alert me  

Question about gecos for each server

by BigDaddy434 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi everybody,
hopefully this is the correct location to post my question:

ok, my ldap is up and running. everything works fine.
i'm currently storing 20 users and use ldap only for central authentication purposes on several FreeBSD servers.
what i want to achieve next is, that for every individual server the servername and the user are displayed in the gecos field on each server, meaning when i type "getent passwd" on server-1 i'd like to get something like this

user-1:*:5000:1500:server-1 user-1:/home/wosystem:/usr/local/bin/bash

but at the same time i'd like to get following output on server-2

user-1:*:5000:1500:server-2 user-1:/home/wosystem:/usr/local/bin/bash

my question now is whether this behaviour is possible at all and if so, how do i achieve this ?

Thanks in advance for your help.

mfg
David