Search for an AD user using PBIS and userid

Let’s say I have a user id in Linux 234234234 and I need to check which user that represents in Active Directory.

All I need is:

pbis enum-users | grep -B 5 -A 5 234234234

where:

enum-users: returns all users

grep -B and -A: returns 5 lines before and after the found search string

Sources:

  1. https://stackoverflow.com/questions/9081/grep-a-file-but-show-several-surrounding-lines
  2. https://github.com/BeyondTrust/pbis-open/issues/11

About SoCRaT

Research Support and Infrastructure Engineer, OSS & Linux Geek
This entry was posted in Linux, Uncategorized and tagged , , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s