ShellBasedUnixGroupsMapping (Hadoop 0.20.2+737 API)
Date: 2010-10-11

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.hadoop.security
Class ShellBasedUnixGroupsMapping

    java.lang.Object
      org.apache.hadoop.security.ShellBasedUnixGroupsMapping

    public class ShellBasedUnixGroupsMapping

extends Object

A simple shell-based implementation of `GroupMappingServiceProvider` that exec's the `groups` shell command to fetch the group memberships of a given user.

Constructor Summary
`ShellBasedUnixGroupsMapping()`

Method Summary
`List<String>` | `getGroups(String user)` Get all various group memberships of a given user.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### ShellBasedUnixGroupsMapping

    public ShellBasedUnixGroupsMapping()

Method Detail

### getGroups

    public List<String> getGroups(String user)
                           throws IOException

  Get all various group memberships of a given user. Returns EMPTY list in case of non-existing user

  Parameters:
    `user` - User's name
  Returns:
    group memberships of user
  Throws:
    `IOException`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2009 The Apache Software Foundation