Any views expressed within media held on this service are those of the contributors, should not be taken as approved or endorsed by the University, and do not necessarily reflect the views of the University in respect of any particular issue.

Computing Systems

Computing Systems

Informatics Computing Staff jottings

Looking up DICE user/group information

Users of DICE machines may have noticed that system utilities such as
getent and finger are no longer returning a full list of Informatics users.

We use sssd (System Security Service Daemon) on DICE to cache LDAP
data, such as user and group information. For finger to work with
anything other than usernames, it requires the sssd “enumerate”
option. This enumerates, and caches, the entire LDAP user and group
directory locally. The man page (sssd.conf(5)) recommends against
doing this, “especially in large environments” (although it doesn’t
specify what “large” is). This has always worked for us, and so we
have enabled this option previously.

The version of sssd on Scientific Linux 7.3 has unfortunately proved
unreliable with enumerate enabled, to the extent of rendering a
machine unusable. Subsequent releases and proposed bug-fixes have not
effectively resolved the problem and so we have had to disable
enumerate across DICE machines.

We have produced some local utilities to help replace the lost
functionality caused by the system changes described above.

finger-dice is a wrapper utility around the system finger command and
can be used to find out details about users given only part of their
name (e.g. surname).

getent-dice database (where database is one of passwd, group,
netgroup) will produce a full list, although note that it does not
return information on system users or groups.

dice-user-info is a general utility for finding out contact
information for people in Informatics. It takes a single argument and
matches against name, location and telephone number.

All of these utilities have man pages.

5 replies to “Looking up DICE user/group information”

  1. sterratt says:

    Goodness – I’d quite forgotten .plan files!

    I’ve just tried the commands, but I’m getting errors on bonnington. Maybe I need to reboot?
    106 $ dice-user-info AT
    {‘desc’: ‘Connect error’}
    107 $ finger-dice Sterratt
    {‘desc’: ‘Connect error’}

  2. toby says:

    Hi David, that is strange … it works OK for me on bonnington. I’ll contact you offline, if you don’t mind helping me debug.

  3. steedman says:

    Thanks for this—it is really useful

  4. s1620208 says:

    Hi,

    Is this command supposed to work?

    `getent-dice netgroup –name=s1620208`

    It doesn’t seem to be returning the list of netgroups associated with any given user.

  5. toby says:

    Hi there,

    That isn’t how getent-dice (or getent) is designed to work.

    getent netgroup <netgroup>will return the members of <netgroup>, but not what netgroups any given user belongs to.

    However getent-dice does support eumeration of netgroups (which getent doesn’t, even when sssd enumeration is on), so something like this would give you the information you want…

    getent-dice netgroup|grep s1620208|cut -d’ ‘ -f1

    Toby

Leave a reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

css.php

Report this page

To report inappropriate content on this page, please use the form below. Upon receiving your report, we will be in touch as per the Take Down Policy of the service.

Please note that personal data collected through this form is used and stored for the purposes of processing this report and communication with you.

If you are unable to report a concern about content via this form please contact the Service Owner.

Please enter an email address you wish to be contacted on. Please describe the unacceptable content in sufficient detail to allow us to locate it, and why you consider it to be unacceptable.
By submitting this report, you accept that it is accurate and that fraudulent or nuisance complaints may result in action by the University.

  Cancel