Unix Id from Window Login ID [message #353480] |
Tue, 14 October 2008 00:48 |
pandey.rohit
Messages: 1 Registered: October 2008 Location: India
|
Junior Member |
|
|
Hello All,
My Problem is -> How can we get UNIX id from open mail authentication (Windows ID) in UNIX.
In following command we are using domain name, which may change in your reference.
As, if we use following command.
ypcat passwd | grep rohitp | cut -d: -f5 | cut -d, -f1
=> we get Windows Login ID of rohitp
Rohit Pandey
NOTE : "passwd" is domain name
But if we reverse this
ypcat passwd | grep "Rohit Pandey" | cut -d: -f 1
=> we get multiple UNIX id
flashweb
sramweb
ftmtrn21
nvmioweb
ftmweb
rohitp
ndlfweb
smtweb
wits
tcdweb
nvmpmweb
eclweb
nvmweb
Nvmsiweb
So how i get this rohitp from this list or using other set of command. don't want to use pattern matching kind of command beacuse we don't have any idea about Windows Login Name n UNIX ID .
Regards
Rohit
|
|
|
|