0

In the past we used winbind to integrate our RedHat servers with the Active Directory, we switched to using realmd and sssd. winbind provides a tool wbinfo to query user/group properties.

e.g. wbinfo --uid-info id

Does sssd provide a similar tool ?

I installed sssd-tools but that seems to be a collection of tools to add/delete/modify users and groups.

I need to translate a uid provided by smbstatus into a username

2

probably getent for user information en good old id:

$ getent passwd user2
user2:*:1076200005:1076200005:ipa user:/home/user2:/bin/sh
$ id user2
uid=1076200005(user2) gid=1076200005(user2) groups=1076200005(user2)

Used against a ipa server, no kerberos trusts with AD, but should work the same.

  • Thanks, I tested it and both getent passwd uid and id uid work – carl verbiest Aug 5 '16 at 11:13

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.